Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mailman with Multiple Domains




I'm trying to configure Mailman on Tiger server to run with the multiple domains that are hosted on the server.

I found some references to adding the virtual domains into the MM configuration file, but I'm still unable to send to the correct email address. When I created the lists, the proper email addresses were indicated in the welcome email.
Does "unable to send" mean that you get a bounce message from Postfix when you send a message to email@hidden?
What I get is a bounce message telling me that the mailbox for the mailing list doesn't exist. It looks like this (truncated)

<email@hidden>: host /var/imap/socket/lmtp[/var/imap/socket/lmtp] said:
    550-Mailbox unknown.  Either there is no mailbox associated with this
    550-name or you do not have authorization to see it. 550 5.1.1 User unknown
    (in reply to RCPT TO command)
Reporting-MTA: dns; mail.pinataperspective.com
X-Postfix-Queue-ID: B98A874890
X-Postfix-Sender: rfc822; email@hidden
Arrival-Date: Sun, 25 Feb 2007 22:12:59 -0800 (PST)

If I send to email@hidden then the list works. If I send to email@hidden (the correct domain), it doesn't work.

If your message gets to lmtp, the Cyrus mail delivery agent, then your mail aliases aren't working.  As I said, check your mailman virtual aliases file at:

/var/mailman/data/virtual-mailman

Did you run genaliases and restart Postfix?
Check that astropups.com is showing up in both the source and the binary file like so:

grep astropups /var/mailman/data/virtual-mailman
grep astropups /var/mailman/data/virtual-mailman.db

If it's not in the latter, then Postfix doesn't know about it and you need to run postmap to rebuild it.

In any case, what I have done is add these lines to the mm_cfg.py file (per a couple of postings I found on line).

POSTFIX_STYLE_VIRTUAL_DOMAINS = [domain.com]
add_virtualhost('www.domain.com', 'mail.domain.com)
You're on the right track.  Make sure that you list all of the virtual domains that you want to have a mailing list for in the POSTFIX_STYLE_VIRTUAL_DOMAINS variable.

This is what the mm_cfg.py file looks like (in the "your settings" section):

MTA = 'Postfix'
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['astropups.com']
DEFAULT_EMAIL_HOST = 'mail.pinataperspective.com'
DEFAULT_URL_HOST = 'www.pinataperspective.com'
add_virtualhost('www.astropups.com','mail.astropups.com')

I checked the main.cf Postfix file and the virtual domains are showing up there. I'm stumped.

In order for Mailman to receive mail, Postfix needs to know about the virtual domains AND the list aliases at those virtual domains, or it will continue to try deliver mail to your list addresses like they're local users.

Any suggestions?
Once you've added those lines, Mailman knows about it, but you have to get Postfix's head in the same space.  To regenerate the mailing list virtual-domain aliases, run:
# /usr/share/mailman/bin/genaliases
And then restart Postfix with:
# postfix reload

These are stored in /var/mailman/data/virtual-mailman; make sure your new mailing list shows up in there after running the above commands.

Your message has been un-top-posted, so we can all follow along the thread of the conversation. :-)


- Fred.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden

References: 
 >Re: Mailman with Multiple Domains (From: Fred Alger <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.