MailMan on subdomain and problem sending mail to main domain
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
Looking at mailman logs i found this in smtp-failure
delivery to xxx@melandri.net failed with code 550: 5.1.1 <xxx@melandri.net>: Recipient address rejected: User unknown in local recipient table</xxx@melandri.net>
These are my MX entries:
@ 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
4 Replies
Also, you probably don't want that MX record for melandri.net -> lists.melandri.net.
In my hosts file I have this entry
xxx.xxx.xxx.xxx myhostname.melandri.net myhostname
In /etc/postfix/main.cf I have
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,
@amelandri:
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.
> 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
Thank you again