Solved Postfix - Multiple sender domain

I have a FreeBSD12 machine with postfix enabled. If I send mail from it using mail(1) or php, mails are sent ok but appear from user@server.domain.com.domain.com making it impossible to reply to (without editing).

In maillog I see lines like:
Code:
postfix/qmgr[63465]: C0BA8119A915: from=<bsd@server.domain.com.domain.com>, size=782, nrcpt=1 (queue active)
I have experimented with append_dot_domain in main.cf but it didn't make no difference.

If I specifically set the sender, for instance in muttrc, it appears ok.
 
Yes, myorigin has been set to:
$mydomain
server
server.example.com
and also not configured at all (#). All variants produce the same results....
 
Got it working. The /etc/mail/mailer.conf did point to sendmail.
Note to self:
- Do not mix sendmail and postfix.
- After installing postfix, check mailer.conf.
 
Back
Top