Page 1 of 1

[Solved ]not receiving mails when root@domain.com

Posted: 15 Feb 2021 14:30
by Sephiroth
Hi

I'm in the middle of transitioning from efa 3 to efa 4.
What I'm having trouble is, when in the email address has 'root' in it, like root@domain.com.
I tried other addrsses like acc1@domain.com, or acc2@domain2.com and everythign wors finde, except when 'root' is the recepient.
It is working normally on my efa3, so I dunno where to look for a fix, as we still need this email address...

Regards

Re: not receiving mails when root@domain.com

Posted: 15 Feb 2021 15:08
by shawniverson
root has a canonical map in postfix to handle local root. You can change this behavior by removing the canonical map entries under /etc/postfix

Re: not receiving mails when root@domain.com

Posted: 15 Feb 2021 16:24
by Sephiroth
Thanks for the quick reply!
So, I've deleted the entry in recipient_canonical & sender_canonical. replaced root with postmaster in main.cf and then restarted.
Still having the issue, am I tinkering in the wrong files?

Re: not receiving mails when root@domain.com

Posted: 15 Feb 2021 16:43
by shawniverson
You might have to postmap those two files and reload postfix

Code: Select all

sudo postmap /etc/postfix/recipient_canonical
sudo postmap /etc/postfix/sender_canonical

Re: not receiving mails when root@domain.com

Posted: 15 Feb 2021 18:10
by Sephiroth
That fixed it! :D