Linode Forum
https://forum.linode.com/

MailMan on subdomain and problem sending mail to main domain
https://forum.linode.com/viewtopic.php?f=11&t=8195
Page 1 of 1

Author:  amelandri [ Thu Dec 15, 2011 4: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

Author:  hoopycat [ Thu Dec 15, 2011 7: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.

Author:  amelandri [ Thu Dec 15, 2011 8: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,

Author:  Stever [ Thu Dec 15, 2011 1: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.

Author:  amelandri [ Fri Dec 16, 2011 3:46 am ]
Post subject: 

Thank you both for the help! I followed your suggestions and now it works.

Thank you again :)

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/