Your mail to sales has been delivered to root! Did you set up any forwarding rules? Is XXXX.com listed only in mydestination in /etc/postfix/main.cf, or also in the domains table in the MySQL database?

You cannot have a domain in mydestination that is in the domains table and vice versa.
If you want to use the domain for virtual email accounts, list it in the domains table; if you want to use it for "real" email accounts, put it in mydestination.

You cannot have a domain in mydestination that is in the domains table and vice versa.
If you want to use the domain for virtual email accounts, list it in the domains table; if you want to use it for "real" email accounts, put it in mydestination.

Click to expand...

To start, I want to apologise for hijacking this thread, but I think I have similar problems.
I keep getting a message in my /var/log/maillog saying:

Code:

Nov 14 23:22:05 aaa postfix/trivial-rewrite[3436]: warning: do not list domain aaa.bbb.com in BOTH mydestination and virtual_mailbox_domains

I want to remark that my server aaa.bbb.com should be mailserver for the domain aaa.bbb.com and is also named like that. I think this should not be causing my problems, but just wanted to let you know.

I have tried and tried and I think in my struggling to get it running I have also tried deleting the mydestination and haven't put it back afterwards.
So I've checked in the tutorial once again and indeed found the line where we should set mydestination. So I changed it to what the tut says. My output of postconf -e | grep mydestination now says:

Code:

mydestination = aaa.bbb.com, localhost, localhost.localdomain

What I've just come up with now, is that this doesn't change a thing because in the previous situation with an absent mydestination variable postfix would have taken its defaults, which is $myhostname which is also aaa.bbb.com After I changed it I restarted postfix.
For testing I delivered a message for this domain and I still get:

Code:

Nov 16 07:07:56 aaa postfix/trivial-rewrite[3081]: warning: do not list domain aaa.bbb.com in BOTH mydestination and virtual_mailbox_domains

Use another hostname for your server. The ideal way would be to get a "technical domain", i.e. a domain that you don't use for web hosting, FTP, etc., but only for naming your servers. That's how I do it.

I get it, have tried it today and found that this works, I have now labeled the postfix box to hostname.aaa.bbb.com.
Very much thanks for supporting me and thumbs up for the good howto you wrote..

falko said:

Use another hostname for your server. The ideal way would be to get a "technical domain", i.e. a domain that you don't use for web hosting, FTP, etc., but only for naming your servers. That's how I do it.