On 03/12/2012 06:05 PM, Janne H wrote:
Hello.
I've setup a null client (from the postfix doc) to use a sender rewrite with
sender_canonical_maps to send mail from serv...@foo.bar through a mailgateway.
And before finishing of the mailgateway config, I got a bounce back. So how can
I fix the null client to accept but drop all bounce/rejects?
The servers were playing ping-pong back and forth with bounce mails :(
A null client does not receive mail, so whatever else is going on, you
are not using JUST a null client.
The solution is simple: the MAIL FROM: address should be set by the null
client to a working mailbox, or, if the MTA does not allow the null
client to set a deviating sender, the MAIL FROM address should be
mangled by the MTA (using smtp_generic_maps, for instance) to such a
mailbox address. This way, Return-Path: will be correctly set to deliver
bounces.
The From: header can and should use the address you originally intended,
of course.
Refer to RFC 5321 section 4.4, Trace information, for more details.
--
J.