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

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

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.

Thanks for the reply

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 anyone@melandri.net to the host lists.melandri.net, which doesn't appear to be what you actually want.

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

Thank you again :)

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct