nano /etc/system_filter.exim

=======================================


#For blocking all incoming and outgoing .win emails
if first_delivery
and ("$h_to:, $h_cc:" contains ".win")
or ("$h_from:" contains ".win")
then
seen finish
endif

=======================================

DONE!

directadmin de spamassassin secili ve aktif olmasina ragmen spam olarak isaretledigi mesajlari silmiyor?

1- nano /usr/local/directadmin/data/templates/filter_base


# Exim Filter

# created by |NAME|, version |VERSION|
# Do not modify this file as any changes will be
# overwritten when the user makes a change.
# (data is only written to this file, not read)

|*if BLOCKLEVEL|
if
$h_X-Spam-Level: contains "|BLOCKLEVEL|"
then
seen finish
endif
|*endif|

|SPAMFILTERS|

if error_message then finish endif

|WORDFILTERS|

|ADULTFILTERS|

#end filter

2-
echo "action=rewrite&value=filter" >> /usr/local/directadmin/data/task.queue

Mount LVM-based volumes from loopback full disk images

TURKCESI FULL EGLENCE!!!

Background:

1- .raw uzantili kvm disk imajimiz var.
bu dosya aslinda bildigin .img dosyasi
icinde sanal makinamizin diski var malum
ancak sanal disk imaji icinde makina diskimiz LVM
buyur buradan yak.
Bu LVM yi nasil aktif edipde disk imajimizi sistemimize mount edicezde
icinden 3 5 tane dosya alacagiz?

2- su link harika sekilde anlatmis

http://www.thegibson.org/blog/archives/467

3- kisaca soyle yapiyoruz

a- once bize lvm offset numarasi lazim ki onu uygun sekilde mount edelim
mount the whole disk image loopback: losetup /dev/loop0 sda.img

b- durumuna bakalim
fdisk -u -l /dev/loop0

Disk /dev/loop0: 250 GB, 250056737280 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488392065 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/loop0p1 * 63 401624 200781 83 Linux
/dev/loop0p2 401625 488392064 243987187 8e Linux LVM

c- bize lazim olan lvm bolumu start nosu 401625
her sektor 512 byte
o zaman 401625×512= 205632000 offset numarasi

d- losetup -d /dev/loop0 diyip bundan kurtulalim sev sadece lvm nin oldugu yeri lopplayalim
losetup /dev/loop0 sda.img -o205632000

e- lvm pvscan
diyip pvmize baktiktan sonra
lvm vgchange -ay
diyip aktif edelim
lvm lvs diyip mapper durumuna bakalim

f- ve mount edelim
mount /dev/mapper/VolGroup00-LogVol00 /eben1

gibi

Hoppacik
LVM nin te amina sokim bu arada…
Sevemedim gitti bunca yildir. Hep sorun hep sorun..
Getirdigi pek cok avantaj var ama bir sorun cikinca islem yapmasi tam eziyet…

1) SELL A BRANDED MONTHLY LICENSE FOR $20/mo.
2) SELL A $200 BRANDED OWNED LICENSE – IT’S YOUR VEHICLE TO ADVERTISE FOR FREE
3) DON’T TRY TO INCLUDE SO MANY MODULES WITH XXX! GIVE DEVELOPERS A CHANCE TO DEVELOP FOR IT SO THAT YOU CAN HAVE AN ECOSYSTEM AROUND YOUR PLATFORM
4) MAKE IT EASY FOR DESIGNERS TO CREATE TEMPLATES
5) NEXT TIME YOU WANT TO DO CRAZY THINGS WITH PRICING MAKE AN ANNOUNCEMENT FIRST
6) DON’T LOCK DOWN YOUR FORUMS AND TRY TO HIDE – KEEP COMMUNICATIONS OPEN AND BUILD A STRONG COMMUNITY AROUND YOUR PRODUCT – AND KEEP A LINE OF COMMUNICATIONS OPEN FOR POTENTIAL CUSTOMERS
7) YOUR BEHIND THE 8 BALL RIGHT NOW, SO LEARN FROM THIS LESSON, AND LEARN WELL: THE MORE PEOPLE CAN AFFORD YOUR SOFTWARE, THE FURTHER IT WILL SPREAD AND IN TURN YOU WILL MAKE MORE MONEY!

If you think you might have a spammer, check your /etc/virtual/usage directory for a larger than normal filesize.
Any authenticated sends will show up with this command:

cd /var/log/exim
grep ‘A=login:’ mainlog* | less
which will show all emails sent from your server which used smtp-authentication. This is useful to find any email accounts who’s passwords may have been compromised (guessed), or simply just abusive Users.

——-

cd /var/log/exim
eximstats mainlog > stats.txt
less stats.txt

———

Here are some useful exim commands. They’re useful if you have an overloaded queue and need to clear it out, or find out why the messagse are being piled up.

exim -M id #Try to send the message with id id

exim -qf #Tell exim to process the entire queue again
exim -qff #same as qf, but it will flush the frozen messages

exim -Mvl id #view the message log for message id
exim -Mvh id #view message id’s headers
exim -Mvb id #view message id’s body
exim -Mrm id #remove message id from the queue
exim -Mg id #fail and send a bounce to the sender
exim -bp | exiqsumm #Print summary of the messages in the queue
exiwhat #show what exim is doing right now
exim -bpc #show number of messages in the queue
exim -bp #print list of messages in the queue
The manual way to remove the entire queue is as follows

cd /var/spool
mv exim exim.old
mkdir -p exim/input
mkdir -p exim/msglog
mkdir -p exim/db
chown -R mail:mail exim
Then restart exim.

———-

once imap clienti kuralim bu script ile:


#!/bin/sh
# Script for PHP-IMAP installation. 0.1b
# Written by Martynas Bendorius (smtalk)

CWD=`pwd`
OS=`uname`

#Is it a 64-bit OS?
B64=0

B64COUNT=`uname -m | grep -c 64`
if [ "$B64COUNT" -eq 1 ]; then
B64=1
LD_LIBRARY_PATH=/lib64:/usr/lib64:/usr/local/lib64:/lib:/usr/lib:/usr/local/lib
export LD_LIBRARY_PATH
fi

if [ ! -e /usr/include/krb5.h ] && [ -e /etc/redhat-release ]; then
echo "Installing krb5-devel"
yum -y install krb5-devel
fi

VERSION=2006k
URL="ftp://ftp.cac.washington.edu/imap/old/imap-${VERSION}.tar.Z"
FILENAME=imap-${VERSION}
TARBALL=${FILENAME}.tar.Z

echo "Downloading ${TARBALL}..."
wget -O ${TARBALL} ${URL}
tar xzf ${TARBALL}
cd ${FILENAME}

echo "Installing ${FILENAME}..."

if [ ${OS} = "FreeBSD" ]; then
if [ ${B64} -eq 0 ]; then
make bsf
else
make bsf EXTRACFLAGS=-fPIC
fi
else
perl -pi -e 's#SSLDIR=/usr/local/ssl#SSLDIR=/etc/pki/tls#' src/osdep/unix/Makefile
perl -pi -e 's#SSLINCLUDE=\$\(SSLDIR\)/include#SSLINCLUDE=/usr/include/openssl#' src/osdep/unix/Makefile
perl -pi -e 's#SSLLIB=\$\(SSLDIR\)/lib#SSLLIB=/usr/lib/openssl#' src/osdep/unix/Makefile
if [ ${B64} -eq 0 ]; then
make slx
else
make slx EXTRACFLAGS=-fPIC
fi
fi

echo "Copying files to /usr/local/php-imap"
mkdir -p /usr/local/php-imap/include
mkdir -p /usr/local/php-imap/lib
chmod -R 077 /usr/local/php-imap
cp -f c-client/*.h /usr/local/php-imap/include/
cp -f c-client/*.c /usr/local/php-imap/lib/
cp -f c-client/c-client.a /usr/local/php-imap/lib/libc-client.a
cd ..
rm -rf ${FILENAME}

exit 0;

sonra

/usr/local/directadmin/custombuild/configure altinda uygun satiri ekleyelim


--with-imap=/usr/local/php-imap \
--with-imap-ssl

sonra

./build php n

hatta birde php.info uygun yere atip bakalim

Tests using dd

Write:
dd if=/dev/zero of=/mnt/RAIDZ/temp.dat bs=2048k count=50k
51200+0 records in
51200+0 records out
107374182400 bytes transferred in 446.230088 secs (240625151 bytes/sec) –> Which is roughly 230MB/s if I am correct

Read:
dd if=/mnt/RAIDZ/temp.dat of=/dev/null bs=2048k count=50k
51200+0 records in
51200+0 records out
107374182400 bytes transferred in 650.708923 secs (165011080 bytes/sec) –> 157MB/s

 

http://www.numion.com/calculators/units.html

100GB dosya yaziyor okuyor

yukaridaki test benim degil

benim 8×750 ZFSTANK 354MB/s yazdi — Super bir rakam bence – ZFS mirror bu arada – Raid10 gibi dusunmek lazim

Okumasida su an test oluyor

sonuc: 119 MB/s

burda bir sikinti var. Arastiralim bakalim nedendir..