do not list domain example.com in BOTH mydestination
Getting a few of these lines in my Postfix log every day:````
Sep 13 06:53:32 lixxx-yyy postfix/trivial-rewrite: warning: do not list domain example.com in BOTH mydestination and virtualmailboxdomains
In my postfix config (main.cf) I have:```` mydestination = localhost
And in the mysql table for my virtual domains:
I.e. I do not have "localhost" listed here as the error message says? It is due to that postfix resolves "localhost" to "example.com"? Can I remove the mydestination-line from the postfix config?
I'm confused by your configuration. Are you trying to send e-mail from @lixxx-yy.members.linode.com? Are you also trying to send e-mail from example.com?
You shouldn't need example.com at all, as it's just an example. You should probably remove it, and that would most likely resolve this issue. I'd also consider using an actual domain to send e-mail.
After editing main.cf, have you restarted Postfix so the new settings take effect?
The value of mydestination is being set somewhere else. Use the command postconf | grep mydest to see what Postfix is actually using for the value. If it's not just "localhost" then there may be a second line somewhere in main.cf setting a different value. Deleting the mydestination line(s) from main.cf will cause it to assume the default value, not a blank one.
(I am assuming you aren't really using example.com - if you are, you have bigger problems. Obscuring your real domain/host name makes it harder for us to help you. Note that neither
I think the issue may be localhost resolves example.com (example.com is the fqdn…)
mydestination = localhost proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $sender_bcc_maps $recipient_bcc_maps $smtp_generic_maps $lmtp_generic_maps relay_domains = $mydestination
You could put "mydestination =" in main.cf to blank out the setting completely, but that might break things like cron that expect to send local mail to root.
Sorry, that's about as far as I can reach on this one.