Postfix+ tpop3d + clamsmtp

by : ogeb ( ogb@indofreebsd.or.id ) 
PERHATIAN:
1. Jangan pernah mencoba ini jika anda tidak tau apa yang anda lakukan.
2. Jangan pula mencoba ini jika anda tidak tau apa itu FeeBSD .
3. siapkan rokok + kopi secukup nya jika anda perokok berat , karena proses ini akan memakan waktu.
4. Tulisan ini di dedikasikan untuk kemajuan freebsd di indonesia.
5. Dipersilahkan mengcopy atau memeperbanyak tulisan ini tanpa seijin saya demi kemajuan freebsd di Indonesia.
Berikut ini langkah langkah membuat mail server :
login : ogeb
pass :* * * *
FreeBSD 5.4-STABLE (INDOFREEBSD) #3: Thu Oct 20 19:56:53 UTC 2005
$ sudo su
Disable sendmail melalui rc.conf
#pico /etc/rc.conf
sendmail_enable=”NONE”
lalu save
Install postfix
#cd /usr/ports/mail/postfix
#make ; make install ; make clean
Install Clamav
#cd /usr/ports/security/clamav
#make ; make install ; make clean
Install clamsmtp
#cd /usr/ports/security/clamsmtp #make ; make install ; make clean
Install tpop3d
#cd /usr/ports/mail/tpop3d #make ; make install ; make clean
tahap selanjut nya adalah mengkonfigurasi yang telah kita install tadi
#mv /usr/local/etc/postfix/main.cf /usr/local/etc/postfix/main.cf.default #pico /usr/local/etc/postfix/main.cf
-----isi file main.cf-----
myhostname = mail.indofreebsd.or.id
mydomain = indofreebsd.or.id
mydestination = $myhostname, localhost.$mydomain
inetinterfaces =192.168.1.5,203.130.195.1
mynetworks = 127.0.0.0/8,192.168.1.0/24,203.130.195.1/29,222.124.1.1/29
alias
maps = hash:/usr/local/etc/postfix/aliases
aliasdatabase = hash:/usr/local/etc/postfix/aliases
bounce
queuelifetime = 1d
maximal
queuelifetime = 1d
notify
classes = 2bounce, bounce, delay, policy, protocol, resource, software
daemondirectory = /usr/local/libexec/postfix
command
directory = /usr/local/sbin
messagesizelimit = 502400000
mailboxsizelimit = 502400000
smtpdhelorequired = yes
disablevrfycommand = yes
strictrfc821envelopes = yes
smtpdetrnrestriction = reject
smtpdrecipientrestrictions =
rejectunknownsenderdomain
reject
nonfqdnsender
rejectunauthpipelining
rejectmultirecipientbounce,
check
recipientaccess hash:/usr/local/etc/postfix/recipientaccess
permitmynetworks
reject
unauthdestination
reject
rblclient sbl-xbl.spamhaus.org
reject
rblclient list.dsbl.org
reject
rblclient dnsbl.sorbs.net
reject
rblclient bl.spamcop.net
reject
rhsblclient blackhole.securitysage.com
reject
rhsblsender blackhole.securitysage.com
smtpd
restrictionclasses =
mime
headerchecks = regexp:/usr/local/etc/postfix/mimeheaderchecks
header
checks = regexp:/usr/local/etc/postfix/headerchecks
body
checks = regexp:/usr/local/etc/postfix/bodychecks
mail
owner = postfix
smtpdbanner = $myhostname INDOFREEBSD MAIL SERVER
content
filter = scan:127.0.0.1:10025
receiveoverrideoptions = noaddressmappings
readmedirectory = no
sample
directory = /usr/local/etc/postfix
sendmailpath = /usr/local/sbin/sendmail
html
directory = no
setgidgroup = maildrop
manpage
directory = /usr/local/man
newaliasespath = /usr/local/bin/newaliases
mailq
path = /usr/local/bin/mailq
queuedirectory = /var/spool/postfix
unknown
localrecipientreject_code = 450
-isi file main.cf-
lalu save


kemudian edit master.cf untuk dukungan clamav
#pico /usr/local/etc/postfix/master.cf
—————-tambahkan ini ke master.cf—————
#AV scan filter (used by contentfilter)
scan unix – - n – 16 smtp
-o smtp
sendxforwardcommand=yes
#For injecting mail back into postfix from the filter
127.0.0.1:10026 inet n – n – 16 smtpd
-o contentfilter=
-o receive
overrideoptions=nounknownrecipientchecks,noheaderbodychecks
-o smtpd
helorestrictions=
-o smtpd
clientrestrictions=
-o smtpd
senderrestrictions=
-o smtpd
recipientrestrictions=permitmynetworks,reject
-o mynetworksstyle=host
-o smtpd
authorizedxforwardhosts=127.0.0.0/8
—————-tambahkan ini ke master.cf—————
tahap selanjutnya adalah mengkonfigurasi clamav
#pico pico /usr/local/etc/clamd.conf
————————isi file clamd.conf—————————-
LogFile /tmp/clamd.log
LogFileUnlock
LogFileMaxSize 2M
LogTime
LogClean
LogSyslog
LogFacility LOG_MAIL
LogVerbose
PidFile /www/tmp/clamd.pid
TemporaryDirectory /www/tmp
LocalSocket /www/tmp/clamd
FixStaleSocket
MaxConnectionQueueLength 30
StreamMaxLength 26M
MaxThreads 20
FollowDirectorySymlinks
FollowFileSymlinks
User clamav qscand
ScanOLE2
ScanMail
ScanRAR
ArchiveMaxFileSize 25M
ArchiveMaxCompressionRatio 300
ArchiveBlockMax
————————isi file clamd.conf—————————-
tahap selanjutnya adalah mengkonfigurasi clamsmtp
#pico /usr/local/etc/clamsmtpd.conf
——————-isi file clamsmtpd.conf————————
OutAddress: 127.0.0.1:10026
Listen: 127.0.0.1:10025
ClamAddress: /www/tmp/clamd
Header: X-Virus-Scanned: INDOFREEBSD MAIL Anti Virus
TempDirectory: /www/tmp
Quarantine: on
User: clamav
——————-isi file clamsmtpd.conf————————
tahap selanjutnya jalankan satu persatu aplikasi yang kita install tadi
#cd /usr/local/etc/rc.d
#ln -s /usr/local/sbin/postfix postfix.sh #pico /etc/rc.conf
——————-tambahkan ini pada rc.conf——-
clamsmtpdenable=”YES”
clamav
freshclamenable=”YES”
clamav
clamdenable=”YES”
tpop3d
enable=”YES”
——————-tambahkan ini pada rc.conf——-
#./tpop3d.sh start
#./clamav-clamd.sh start
#./clamav-freshclam.sh start
#postfix start
semua tahapan telah selesai silahkan mempergunakan email anda

Related

Email Server 4074235118953897206

Posting Komentar

emo-but-icon

Follow Us

Hot in week

Recent

Comments

Side Ads

Text Widget

Connect Us

item