Hi all, I have defined header_checks test. Question why it works if I' testing it locally and doesn't work when I do my test via smtp?
this is simple definition in/etc/postfix/ /^Received:/ IGNORE !/^To: [0-9]+@/ WARN # any message to non-digital accounts should be dropped example of good work: I did it from the same host where postfix works: postfix]# echo test | mail 1...@mydomain.com log file entries: postfix/pickup[7519]: 37347481CE: uid=0 from=<root> postfix/cleanup[7525]: 37347481CE: message-id=<20090811004031.3734748...@mydomain.com> postfix/nqmgr[7520]: 37347481CE: from=<r...@mydomain.com>, size=187, nrcpt=1 (queue active) postfix/local[7527]: 37347481CE: to=<ta...@mydomain.com>, orig_to=<1...@mydomain.com>, relay=local, delay=1, status=sent (mailbox) postfix]# echo test | mail ta...@mydomain.com postfix/pickup[7519]: 86E27481CE: uid=0 from=<root> postfix/cleanup[7532]: 86E27481CE: warning: header To: ta...@mydomain.com from local; from=<r...@mydomain.com> to=<ta...@mydomain.com>: some errors postfix/cleanup[7532]: 86E27481CE: message-id=<20090811004225.86e2748...@mydomain.com> postfix/nqmgr[7520]: 86E27481CE: from=<r...@mydomain.com>, size=189, nrcpt=1 (queue active) postfix/local[7533]: 86E27481CE: to=<ta...@mydomain.com>, relay=local, delay=0, status=sent (mailbox) not successful example: did it from other host test]# telnet 192.168.11.129 25 Trying 192.168.11.129... Connected to 192.168.11.129. Escape character is '^]'. 220 mydomain.com ESMTP Postfix helo taphy 250 mydomain.com mail from: t...@do.test 250 Ok rcpt to: ta...@mydomain.com 250 Ok data 354 End data with <CR><LF>.<CR><LF> test . 250 Ok: queued as 54B33481CE quit 221 Bye Connection closed by foreign host. logfile entries (nothing was done at all by header_checks..): postfix/smtpd[7540]: connect from unknown[192.168.11.1] postfix/smtpd[7540]: 54B33481CE: client=unknown[192.168.11.1] postfix/cleanup[7542]: 54B33481CE: message-id=<20090811005124.54b3348...@mydomain.com> postfix/nqmgr[7520]: 54B33481CE: from=<t...@do.test>, size=169, nrcpt=1 (queue active) postfix/local[7544]: 54B33481CE: to=<ta...@mydomain.com>, relay=local, delay=13, status=sent (mailbox) postfix/smtpd[7540]: disconnect from unknown[192.168.11.1] Many thanks in advance for any suggestions -- View this message in context: http://www.nabble.com/header_checks-usage-tp24910095p24910095.html Sent from the Postfix mailing list archive at Nabble.com.