Error: Postfix - do not list domain in BOTH mydestination and virtual_mailbox_domains

You see the following error in your mail log:

Feb 24 21:42:39 mail postfix/trivial-rewrite[1896]: warning: do not list domain in BOTH mydestination and virtual_mailbox_domains



You have in the resource (for example a MySQL database) referenced in the virtual_mailbox_domains directive in /etc/postfix/ AND in the mydestination line (also in /etc/postfix/! This doesn't work. You can list either in virtual_mailbox_domains or in mydestination, but not in both.

Please correct this and restart Postfix:

/etc/init.d/postfix restart

Share this page:

4 Comment(s)

Add comment


From: Christopher Thomas at: 2012-07-23 17:40:19

you mention that to solve the problem, you need to make both different, but never went far enough, nobody knows how to fix the problem, just that there is a problem. the error message already explained the problem, therefore in order to be a "howto" we need to know "howto" fix it.

From: at: 2013-12-05 06:00:09

That would depend on how the server is set up.  There is no one-size-fits all solution.  It's different for every configuration.

From: Anonymous at: 2013-12-06 06:46:43

In my case, at least, removing from mydestination cleared things up. On my server, mydestination is just localhost, localhost.localdomain

From: Anonymous at: 2014-07-16 20:27:57

GREAT SOLUTION, works for me.