On Wed, Mar 19, 2014 at 3:03 PM, [email protected] <[email protected]> wrote:

> just don't switch to top-posting in the middle of a thread
>
> Am 19.03.2014 19:57, schrieb Drew Mazurek:
> > Rewriting the envelope sender address at the first hop out of the
> application seems to work best.  Next question:
> > is it possible to log what the address was before it gets rewritten?
>  Our mail.log now shows the new bounce
> > address, but for debugging purposes, it'd be nice to know what the
> address was before the envelope rewrite.
> >
> > On Wed, Mar 19, 2014 at 11:23 AM, Wietse Venema 
> > <[email protected]<mailto:
> [email protected]>> wrote:
> >
> >     Drew Mazurek:
> >     > I have an application that sends and receives email.  I don't want
> to have
> >     > it process bounces, though, so I'd like its dedicated Postfix
> relay to
> >     > forward all mailer-daemon messages to me rather than to the
> application.
> >
> >     Bounces are sent to the envelope sender address. On the Postfix
> relay,
> >     1) either rewrite the envelope sender address of outbound mail to
> "you".
> >     2) or rewrite the envelope recipient address of inbound mail to
> "you".
> >
> >     I suggest doing 2) with virtual_alias_maps
>
> normally you see queue-id's in every log as well as in message headers
> und you get them on the smtp client in the servers response that
> he has accepted a message too
>
> however, you need to provide your actual log records here from
> all invloved hops
>

Sorry about the top-posting... my bad. :-/

Here's are all the log entries for a single message:

% grep E7540258C6 mail.log
Mar 19 14:54:42 hostname postfix/smtpd[2870]: E7540258C6:
client=localhost[127.0.0.1]
Mar 19 14:54:42 hostname postfix/cleanup[2873]: E7540258C6: message-id=<[
[email protected]]>
Mar 19 14:54:42 hostname postfix/qmgr[1836]: E7540258C6: from=<
[email protected]>, size=4054, nrcpt=1 (queue active)
Mar 19 14:54:43 hostname postfix/smtp[2874]: E7540258C6: to=<[email protected]>,
relay=mx1.domain.com[x.y.z.a]:25, delay=0.08, delays=0.01/0.01/0.04/0.02,
dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 0767122497)
Mar 19 14:54:43 hostname postfix/qmgr[1836]: E7540258C6: removed

Config:

main.cf:

smtpd_banner = $myhostname ESMTP
biff = no
append_dot_mydomain = no
readme_directory = no
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
relayhost = domain.com
smtp_sasl_auth_enable=yes
smtp_sasl_password_maps=hash:/etc/postfix/password
smtp_sasl_security_options=
smtp_tls_security_level = encrypt
smtp_tls_note_starttls_offer = yes
inet_interfaces = loopback-only
local_transport=error:local delivery is disabled
sender_canonical_maps = hash:/etc/postfix/sender_map
sender_canonical_classes = envelope_sender

sender_map:

@domain.com    [email protected]

Thanks,
Drew

Reply via email to