It seems my smtpd exchange server is still unhappy even with this last
solution. I'm getting:
"550 5.7.1 Client does not have permissions to send as this sender (in
reply to end of DATA command))"

This follows your suggestion to put this in /etc/postfix/sender_canonical:

/./ [email protected]

Perhaps I should give procmail a try? I'm not sure it can rewrite the
header or not as required by our smtpd exchange server, but I suppose
I should try?

--mike


On Mon, Jun 6, 2011 at 8:14 PM, Wietse Venema <[email protected]> wrote:
>> Looks like you want to replace all senders in outbound email by your own
>> email address. In that case it is sufficient to do this:
>>
>> /etc/postfix/main.cf:
>>
>> sender_canonical_maps = pcre:/etc/postfix/sender_canonical
>> sender_canonical_classes = envelope_sender
>>
>> /etc/postfix/sender_canonical:
>>
>> /./ your-email-address-here-without-backslashes-garbage
>
> The problem with this is that it also replaces the sender on inbound
> email, that is, if affects mail that you receive, and mail that
> you send out.
>
> The alternative, smtp_generic_maps, chanes outbound mail only, but
> it has a worse problem: it updates From, To: and so on. There
> currently is no option to apply smtp_generic_maps to the sender
> only.
>
>        Wietse
>

Reply via email to