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

Questions and answers about how to do stuff
Post Reply
Sephiroth
Posts: 25
Joined: 04 Jun 2014 13:47

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

Post 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
Last edited by Sephiroth on 15 Feb 2021 18:10, edited 1 time in total.
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: not receiving mails when root@domain.com

Post 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
Sephiroth
Posts: 25
Joined: 04 Jun 2014 13:47

Re: not receiving mails when root@domain.com

Post 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?
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: not receiving mails when root@domain.com

Post 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
Sephiroth
Posts: 25
Joined: 04 Jun 2014 13:47

Re: not receiving mails when root@domain.com

Post by Sephiroth »

That fixed it! :D
Post Reply