I'm betting this is a ridiculously stupid question. Here goes.
I'm setting up a very basic personal mail server on Slackware64 13.37 using postfix (obtained from slackbuilds.org). I can send mail to
user@mydomain.tld just fine from
anotheruser@remotedomain.tld using Outlook. Everything processes correctly.
However, when sending mail *from*
user@mydomain.tld using mutt on the mailserver,
anotheruser@remotedomain.tld receives the message fine, except that instead of the expected 'user@mydomain.tld', the sender is displayed as 'user@mail.example.net'.
Right now, /etc/postfix/mail.cf is minimal:
Code:
myorigin = mydomain.tld
myhostname = mail.mydomain.tld
relay_domains = mydomain.tld mail.mydomain.tld localhost.localdomain localhost
I can see that the @mail.example.net domain is being pulled as part of mail postfix/cleanup, as per /var/log/maillog:
Code:
Jul 11 23:15:33 mail postfix/pickup[7146]: DBC3F6F72030: uid=1000 from=<user>
Jul 11 23:15:33 mail postfix/cleanup[7155]: DBC3F6F72030: message-id=<20130711231533.GA7150@mail.example.net>
Jul 11 23:15:33 mail postfix/qmgr[7147]: DBC3F6F72030: from=<user@mydomain.tld>, size=497, nrcpt=1 (queue active)
Jul 11 23:15:35 mail postfix/smtp[7157]: DBC3F6F72030: to=<anotheruser@remotedomain.tld>, relay=mail.remotedomain.tld[xxx.xxx.xxx.xxx]:25, delay=1.6, delays=0.14/0/1.2/0.34, dsn=2.0.0, status=sent (250 ok: Message 4156662 accepted)
Jul 11 23:15:35 mail postfix/qmgr[7147]: DBC3F6F72030: removed
So, what am I missing here? Where is this being set, and why isn't the myorigin variable in main.cf not overriding it? Or *should* it be overriding it? Maybe my sendmail didn't build right? Perhaps mutt is misbehaving? It looks as if it has something to do with the message-id.
If this turns out to be something stupidly simple, please send me your address so I can send you a beer.