| Linode Forum https://forum.linode.com/ |
|
| do not list domain example.com in BOTH mydestination https://forum.linode.com/viewtopic.php?f=11&t=11304 |
Page 1 of 1 |
| Author: | Webkungen [ Sat Sep 13, 2014 7:15 pm ] |
| Post subject: | do not list domain example.com in BOTH mydestination |
Hi! Getting a few of these lines in my Postfix log every day: Code: Sep 13 06:53:32 lixxx-yyy postfix/trivial-rewrite[18654]: warning: do not list domain example.com in BOTH mydestination and virtual_mailbox_domains In my postfix config (main.cf) I have: Code: mydestination = localhost And in the mysql table for my virtual domains: Code: example.com 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? Please advise, |
|
| Author: | drussell [ Sun Sep 14, 2014 4:16 am ] |
| Post subject: | Re: do not list domain example.com in BOTH mydestination |
Hello, 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. Thanks, Dave. |
|
| Author: | Vance [ Sun Sep 14, 2014 4:38 am ] |
| Post subject: | Re: do not list domain example.com in BOTH mydestination |
A couple possibilities: 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 mydestination nor virtual_mailbox_domains should have anything to do with sending mail, only how received mail is treated.) |
|
| Author: | Webkungen [ Sun Sep 14, 2014 10:07 am ] |
| Post subject: | Re: do not list domain example.com in BOTH mydestination |
Of course example.com was just an example, I'm using a real, other domain, which I'm sending ALL emails from. The box is used for sending email only, but has Dovecot configured to receive emails as well. Also using SPF, DKIM and Cluebringer (PolicyD). Just getting this error and don't know how to solve it. I've searched for mydestination before I wrote the original post and the line I've got is the only one. I think the issue may be localhost resolves example.com (example.com is the fqdn...) More suggestions? |
|
| Author: | Vance [ Sun Sep 14, 2014 6:44 pm ] |
| Post subject: | Re: do not list domain example.com in BOTH mydestination |
What does postconf | grep mydest show? As far as I know, Postfix shouldn't be expanding "localhost" to anything else, but I guess it's possible. |
|
| Author: | Webkungen [ Sun Sep 14, 2014 6:47 pm ] |
| Post subject: | Re: do not list domain example.com in BOTH mydestination |
It shows: Code: mydestination = localhost |
|
| Author: | Vance [ Wed Sep 17, 2014 12:02 am ] |
| Post subject: | Re: do not list domain example.com in BOTH mydestination |
Hmm. The only other place I can think of that Postfix might be pulling example.com from is /etc/hosts (if it's on the same line as localhost there). But I just tried it out on CentOS 7, and Postfix doesn't appear to do this. 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. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|