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 me...

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

COMMENTS

Name

Application Support,19,database server,1,Desktop/XWindow,1,DNS Server,2,Email Server,3,Firewall,1,FTP Server,2,General,2,IPFilter,1,Kernel,2,Networking,8,Proxy Server,4,Security,6,Tips and Trick,5,Web Server,2,
ltr
item
IndoFreeBSD: Postfix+ tpop3d + clamsmtp
Postfix+ tpop3d + clamsmtp
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxjwrr3lS8GiqpoC9C7HhsKTnw7HXD5eBQVlxQIr5bCNfKjTnoxtNSso27pyRsLncpWtcxhy-IhtPY_1qnBoOk-Af8W4HLErMfeBUS9IZDjORPt-CJW7EIAJYS5gS_SY4RFvBTw058vU_l/s1600/Postfix_logo.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxjwrr3lS8GiqpoC9C7HhsKTnw7HXD5eBQVlxQIr5bCNfKjTnoxtNSso27pyRsLncpWtcxhy-IhtPY_1qnBoOk-Af8W4HLErMfeBUS9IZDjORPt-CJW7EIAJYS5gS_SY4RFvBTw058vU_l/s72-c/Postfix_logo.png
IndoFreeBSD
https://www.indofreebsd.or.id/2015/02/postfix-tpop3d-clamsmtp.html
https://www.indofreebsd.or.id/
http://www.indofreebsd.or.id/
http://www.indofreebsd.or.id/2015/02/postfix-tpop3d-clamsmtp.html
true
1901051463523757307
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content