View Single Post
  #27 (permalink)  
Old 12-06-2006, 07:13 AM
tdi tdi is offline
Active Member
 
Posts: 32
Default

Postgrey ZIMBRA 4.0.4/Centos 4.4

1. Install postgrey

Code:
yum install postgrey
2. Prepare environment for it

Code:
mkdir /opt/zimbra/postfix/spool/postgrey/ && chown postgrey:postfix /opt/zimra/postfix/spool/postgrey
3. Change the init script

Code:
DBPATH=/opt/zimbra/postfix/spool/postgrey
SOCKET=$DBPATH/socket
OPTIONS="--inet=10023 --dbdir=/opt/zimbra/postfix/spool/postgrey"
On centos, postgrey initially uses unix socket, adding --inet=10023 will make it run on port 10023.

run it:

Code:
/etc/init.d/postgrey start
and check:

Code:
telnet localhost 10023
or
Code:
netstat -anpt | grep 10023
4. Change zimbra's postfix

Code:
vim /opt/zimba/conf/postfix_recipient_restrictions.cf
and add one line:

Code:
check_policy_service inet:127.0.0.1:10023
5. Restart zimbra's postfix

Code:
/opt/zimbra/postfix/sbin/postfix reload
6. Check wheather it works

Send email from some other email account and see in logs:

Dec 6 14:59:41 ra postfix/smtpd[7585]: NOQUEUE: reject: RCPT from some.domain.com[1.2.3.4]: 450 <foo@yourdomain.com>: Recipient address rejected: Greylisted, see http://isg.ee.ethz.ch/tools/postgrey...main.com.html; from=<foo@bar.com> to=<foo@yourdomain.com> proto=ESMTP helo=<some.hello.com>


Additional info. Greylisting is a good idea, it one of the solutions that save the machine and a bandwidth (the connection is rejected on SMTP session evel)
__________________
----
My company:
VOIP Integrations, Asterisk AGI Integrations
Reply With Quote