I've just started using Postfix, and it's functioning well (everything comes in and goes out fine, and I'm not an open relay).
I have a issue which, although not a showstopper, is causing me some irritation:
Any mail sent from the mail host itself to local users on the machine has its 'To: ' rewritten with the full domain name, instead of just with the local hostname.
The setup is as follows:
My receiving (external) domain is 'davidstark.name'
The external name of the mail host is 'mail.davidstark.name'
The real hostname of the mail host is 'atlas.homenet'
So, if I send an email (just using 'mail') from root to, say, jim with:
echo "Hello jim" | mail -s "Message for jim" jim
on the mailhost (atlas), 'jim' gets an email 'To: email@example.com', instead of 'To: firstname.lastname@example.org'
I'd like local mail to remain in its normal user@hostname for for the purpose of filtering cron and administration emails out from external email.
Does anyone know how to stop local -> local mail from having it's To: field rewritten?