Patton, Matthew [Contractor]:
> > Why send mail as user@myhostname, when the named host will never
> > ever receive email? 
> 
> Because I need to retain FROM what host it originated. If I see
> an email from root@domain I have no idea which host it came from.
> The emails are cron scripts and the like, not user-generated email.
> If 'origin' only affected the FROM and left the TO naked as was
> specified on the command-line, I'd be happy as a clam.

Postfix does not support 'bare' addresses, because they are ambiguous,
especially when folks like you want them to mean different things
for a sender or recipent. Not gonna happen.

You could however do this on the end systems:

/etc/postfix/main.cf:
    myorigin = $myhostname
    virtual_alias_maps = inline:{@$myhostname=@example.com}

/etc/postfix/main.cf:
    myorigin = $myhostname
    recipient_canonical_maps = inline:{@$myhostname=@example.com}

Both will use bare-sen...@host.example.com as sender, and
bare-recipi...@example.com as recipient.

The second form will also rewrite recipients in the message header.

        Wietse

Reply via email to