Hi list I am using postfix 2.5.5 on debian lenny.I installed it via apt-get
I have set up two postfix smtpd instances, the first one listens on 0.0.0.0:25 the second one listens on 127.0.0.1:10026 The postfix:25 accepts mails from the INTERNET,checks that if the recipient is "@special.com", if so, it forwards the mail to postfix:10026,and do header_checks on postfix:10026 This is my conf: [r...@postfix]# more /etc/postfix/main.cf smtpd_recipient_restrictions = permit_mynetworks, check_recipient_access pcre:/etc/postfix/recipient_access.txt, permit_sasl_authenticated, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_hostname, check_policy_service inet:127.0.0.1:60000 [r...@postfix]# more recipient_access.txt /special.com/ FILTER smtp:[127.0.0.1]:10026 [r...@postfix]# more master.cf 127.0.0.1:10026 inet n - n - - smtpd -o header_checks=pcre:/etc/postfix/header_checks.txt -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o receive_override_options=no_unknown_recipient_checks [r...@postfix]# more header_checks.txt /Subject:(.*)/ REPLACE Subject:[haha] $1 The problem is that header_checks doesn't work on postfix:10026, the mail subject wasn't modified. Any hints is appreciated This is the log: Apr 4 00:19:40 debian postfix/smtpd[8195]: connect from unknown[199.178.143.21] Apr 4 00:19:41 debian postfix/smtpd[8195]: NOQUEUE: filter: RCPT from unknown[199.178.143.21]: <assist...@special.com>: Recipient address triggers FILTER smtp:[127.0.0.1]:10026; from=<sos...@sosogh.com> to=<assist...@special.com> proto=ESMTP helo=<20090131-1825> Apr 4 00:19:41 debian postfix/smtpd[8195]: 164831E0C0: client=unknown[199.178.143.21], sasl_method=LOGIN, sasl_username=sos...@sosogh.com Apr 4 00:19:41 debian postfix/cleanup[8200]: 164831E0C0: message-id=<200904040019243122...@sosogh.com> Apr 4 00:19:41 debian postfix/qmgr[8169]: 164831E0C0: from=<sos...@sosogh.com>, size=740, nrcpt=1 (queue active) Apr 4 00:19:41 debian postfix/smtpd[8202]: connect from localhost[127.0.0.1] Apr 4 00:19:41 debian postfix/smtpd[8202]: 9A9B91E0C2: client=localhost[127.0.0.1] Apr 4 00:19:41 debian postfix/cleanup[8200]: 9A9B91E0C2: message-id=<200904040019243122...@sosogh.com> Apr 4 00:19:41 debian postfix/smtpd[8195]: disconnect from unknown[199.178.143.21] Apr 4 00:19:41 debian postfix/smtpd[8202]: disconnect from localhost[127.0.0.1] Apr 4 00:19:41 debian postfix/qmgr[8169]: 9A9B91E0C2: from=<sos...@sosogh.com>, size=927, nrcpt=1 (queue active) Apr 4 00:19:41 debian postfix/smtp[8201]: 164831E0C0: to=<assist...@special.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.7, delays=0.58/0/0/0.12, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 9A9B91E0C2) Apr 4 00:19:41 debian postfix/qmgr[8169]: 164831E0C0: removed Apr 4 00:19:41 debian postfix/smtp[8203]: 9A9B91E0C2: to=<assist...@special.com>, relay=mail.special.com[55.68.5.1]:25, delay=0.17, delays=0.11/0.01/0.03/0.03, dsn=2.0.0, status=sent (250 Mail OK queued as AQAAfx+AsAHMNNZJqTa9Cg==.24149S2) Thank you -------------- sosogh 2009-04-04