[Mailman-Users] Mailman and virtual mailhosting (postfix)
Mark Sapiro
mark at msapiro.net
Wed Jul 23 18:24:59 CEST 2008
Jens Meyer wrote:
> Hello Mark,
>
> thank you for your further reply.
>
> The problem are not the virtual hostnames or the "advertisements" of
> the listnames. My problem is the internal handling:
>
> Is it possible to change Mailman's internal usage (target for
> internal redirections) from @hostname.com to @mail.hostname.com
> (because @hostname.com is used for virtual emails on this server
> actually).
I do not understand your question. I think you do not understand
Mailman's processing.
Internally, Mailman uses only the list name. Mailman doesn't do
'internal redirections'
For incoming mail, the MTA handles mail according to its configuration,
but ultimately, for mail destined to Mailman, pipes the mail to
Mailman's wrapper to be posted to a list via a pipe like
"|/usr/local/mailman/mail/mailman post listname". Only the listname is
involved at this point. No domain is involved.
If you want mail to 'listname at hostname.com' to be handled as though it
were addressed to 'listname at mail.hostname.com' you have to do that in
Postfix, but I don't think that is your issue.
Answer these questions:
How do you want list mail to be addressed? I.e., to list@ what domain?
Is this domain a virtual domain in Postfix?
I think the answers are mail to list at hostname.com (not
list at mail.hostnamecom), and yes, hostname.com is a virtual domain in
Postfix.
If this is correct, you want something like
DEFAULT_EMAIL_HOST = 'hostname.com'
DEFAULT_URL_HOST = 'lists.hostname.com'
DEFAULT_URL_PATTERN = 'http://%s/mailman/'
MTA = 'Postfix'
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['hostname.com']
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
in mm_cfg.py, and in your Postfix configuration
alias_maps = ... hash:/path/to/mailman/data/aliases
and
virtual_alias_domains = ... hostname.com
and
virtual_alias_maps = ... hash:/path/to/mailman/data/virtual-mailman
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users
mailing list