 |
Linode Forum Linode Community Forums
|
| Author |
Message |
amelandri
Joined: 14 Dec 2011
Posts: 3
Location: Faenza, Italy
|
| Posted: Thu Dec 15, 2011 3:35 am Post subject: MailMan on subdomain and problem sending mail to main domain |
|
|
Hello everyone,
I setup Mailman with Postfix on Debian 6 using the Linone Library tutorial on a subdomain (lists.melandri.net) while the main domain (melandri.net) is configured to manage emails using Google Apps.
The setup is working fine except for sending mailing list messages to main domain email address.
Example: i set up the mailing list mylist@lists.melandri.net and messages cannot be delivered to email address with domain @melandri.net.
Looking at mailman logs i found this in smtp-failure
Code: delivery to xxx@melandri.net failed with code 550: 5.1.1 <xxx@melandri.net>: Recipient address rejected: User unknown in local recipient table
These are my MX entries:
Code:
@ MX 1 ASPMX.L.GOOGLE.COM.
@ MX 5 ALT1.ASPMX.L.GOOGLE.COM.
@ MX 5 ALT2.ASPMX.L.GOOGLE.COM.
@ MX 10 ASPMX2.GOOGLEMAIL.COM.
@ MX 10 ASPMX3.GOOGLEMAIL.COM.
@ MX 10 lists.melandri.net.
Any help is appreciated :)
Thanks in advance,
Alessandro |
|
| Back to top |
|
hoopycat
Joined: 30 Aug 2008
Posts: 1294
Location: Rochester, New York
|
| Posted: Thu Dec 15, 2011 6:58 am Post subject: |
|
|
Is there any mention of "melandri.net" (without lists.* or any other hostname under melandri.net) in the system's hostname, /etc/hosts, reverse DNS, Postfix configuration, or any maps the Postfix configuration refers to? It sounds like Postfix thinks it handles mail for melandri.net.
Also, you probably don't want that MX record for melandri.net -> lists.melandri.net. |
|
| Back to top |
|
amelandri
Joined: 14 Dec 2011
Posts: 3
Location: Faenza, Italy
|
| Posted: Thu Dec 15, 2011 7:48 am Post subject: |
|
|
Thanks for the reply
In my hosts file I have this entry
Code: xxx.xxx.xxx.xxx myhostname.melandri.net myhostname
In /etc/postfix/main.cf I have
Code:
myhostname = myhostname.melandri.net
...
mydestination = melandri.net, myhostname.melandri.net, localhost.melandri.net, localhost
...
relay_domains = $mydestination, lists.melandri.net
What do you mean whe you say "Also, you probably don't want that MX record for melandri.net -> lists.melandri.net.". Isn't correct?
Sorry for the dumb question but it's my first DNS configuration :)
Thanks again, |
|
| Back to top |
|
Stever
Joined: 07 Dec 2007
Posts: 337
Location: NC, USA
|
| Posted: Thu Dec 15, 2011 12:18 pm Post subject: |
|
|
amelandri wrote: Code: mydestination = melandri.net, myhostname.melandri.net, localhost.melandri.net, localhost
You have told postfix that it should receive mail for melandri.net, but in fact you want that mail to go to google - remove melandri.net from mydestination.
Quote:
What do you mean whe you say "Also, you probably don't want that MX record for melandri.net -> lists.melandri.net.". Isn't correct?
MX records specify hosts that receive mail for the given domain - you are telling senders that they should send mail destined for anyone@melandri.net to the host lists.melandri.net, which doesn't appear to be what you actually want. |
|
| Back to top |
|
amelandri
Joined: 14 Dec 2011
Posts: 3
Location: Faenza, Italy
|
| Posted: Fri Dec 16, 2011 2:46 am Post subject: |
|
|
Thank you both for the help! I followed your suggestions and now it works.
Thank you again :) |
|
| Back to top |
|
| |
|