Home > Linux, LOL > Mail Server

Mail Server

Beberapa hal yang harus diperhatikan dalam instalasi mailserver qmail+tcpserver+sqwebmail+vpopmail :
1.file /etc/hosts.allow
root@boyo#[31]$ cat /etc/hosts.allow
tcp-env: 222.69.150. : setenv = RELAYCLIENT
tcp-env: 222.69.151. : setenv = RELAYCLIENT
tcp-env: 222.69.128. : setenv = RELAYCLIENT
tcp-env: 127.0.0.1 : setenv = RELAYCLIENT
# End of hosts.allow.

2. delete /var/qmail/rcpthosts (biar ‘almost’ open relay)

3. cek bit .qmail-* gak boleh eksekutable
4 cek bit yang lain dengan script ini [ati-ati lo] :
root@boyo#[32]$ cat ~/vpopmail-recover
#!/bin/bash
cd ~vpopmail/domains
chownd -R vpopmail.vchkpw *
for a in $(ls -l | grep drw | awk ‘{print $9}’)
do
cd $a
for b in $(ls -l | grep drw | awk ‘{print $9}’)
do
cd $b
pwd
chmod 777 $(pwd)
chmod og-w $(pwd)
chmod 777 $(pwd)/Maildir
chmod og-w $(pwd)/Maildir
chmod 0755 $(pwd)/Maildir/cur
chmod 0755 $(pwd)/Maildir/new
chmod 0755 $(pwd)/Maildir/tmp
cd ../
done
cd ../
done
exit

5. To start smtp in fast mode :
dhadhank@boyo#[4]$ cat /etc/rc.d/rc.qmail-smtpd
env – PATH=”/var/qmail/bin:/usr/local/bin” tcpserver -H -R -l0 -x /etc/tcp.smtp.cdb -u1003 -g102 0 smtp /var/qmail/bin/qmail-smtpd &

6. To start Vpopmail
dhadhank@boyo#[5]$ cat /etc/rc.d/rc.vpopmail
env – PATH=”/var/qmail/bin:/usr/local/bin” tcpserver -H -R -l0 -u1011 -g105 0 pop-3 /var/qmail/bin/qmail-popup mail.bukuweb.com /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir &

7. To start Qmail
dhadhank@boyo#[6]$ cat /etc/rc.d/rc.local
echo “Starting Qmail as SMTP …………………………………..”
sleep 1
csh -cf ‘/var/qmail/rc &’

8. cd /var/qmail/control/
dhadhank@boyo#[10]$ ls -l
total 24
-rw-r–r– 1 root root 17 Oct 24 02:08 defaultdomain
-rw-r–r– 1 root root 22 Oct 24 02:22 locals
-rw-r–r– 1 root root 22 Oct 24 02:23 me
-rw-r–r– 1 root root 17 Oct 24 02:24 plusdomain
-rwxrwxrwx 1 root root 152 Oct 24 02:17 virtualdomains

dhadhank@boyo#[12]$ cat defaultdomain
bukuweb.com

dhadhank@boyo#[13]$ cat locals
mail.bukuweb.com

dhadhank@boyo#[14]$ cat me
mail.bukuweb.com

dhadhank@boyo#[16]$ cat virtualdomains
bukuweb.com:bukuweb.com
noc.bukuweb.com:noc.bukuweb.com

9. dhadhank@boyo#[8]$ cat /etc/tcp.smtp
222.69.150.:allow,RELAYCLIENT=””
222.69.151.:allow,RELAYCLIENT=””
222.69.128.3:allow,RELAYCLIENT=””
222.69.130.:allow,RELAYCLIENT=””
127.:allow,RELAYCLIENT=””

10. thx to suhu buzet

Notes :
Pernah di uji cobakan dengan slackware 8.0. Untuk distro/OS lain mungkin akan berbeda.

Sumber : http;//buku.web.id

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: