Hi All,

I have a normal postfix setup with a external content filtering(amavis). I want 
to skip content filtering for some domains and send through a different IP.

In my main.cf I have

 smtpd_sender_restriction = 
         check_sender_access hash:/etc/postfix/access.cf

Where access.cf contains the below line

example.com       FILTER  csmtp:127.0.0.1

cstmp is a clone of smtp, and the corresponding entry in master.cf is

csmtp   unix    -       -       n       -       300     smtp -o 
smtp_bind_address=172.16.141.29


But when i try to send mail, I am getting connection refused error in logs.

Log entries are

Jan  2 03:20:18 postfix-test1 postfix/smtpd[29051]: NOQUEUE: filter: RCPT from 
unknown[172.16.134.61]: <us...@example.com>: Sender address triggers FILTER 
csmtp:127.0.0.1; from=<us...@example.com> to=<us...@domain.com> proto=SMTP
Jan  2 03:20:18 postfix-test1 postfix/smtpd[29051]: 9F0EA31F01EE: 
client=unknown[172.16.134.61]
Jan  2 03:20:30 postfix-test1 postfix/cleanup[29060]: 9F0EA31F01EE: 
message-id=<>
Jan  2 03:20:30 postfix-test1 postfix/qmgr[29048]: 9F0EA31F01EE: 
from=<us...@example.com>, size=192, nrcpt=1 (queue active)
Jan  2 03:20:30 postfix-test1 postfix/smtp[29063]: connect to 
127.0.0.1[127.0.0.1]:25: Connection refused
Jan  2 03:20:30 postfix-test1 postfix/smtp[29063]: 9F0EA31F01EE: 
to=<us...@domain.com>, relay=none, delay=22, delays=22/0/0/0, dsn=4.4.1, 
status=deferred connect to 127.0.0.1[127.0.0.1]:25: Connection refused)


Machine has 2 ips:  172.16.141.29 and 172.16.141.28


Regards,
Shameem


Reply via email to