[Mailman-Users] Mailman list sends but doesn't receive mail.

Mark Sapiro mark at msapiro.net
Wed Dec 8 17:13:20 CET 2010


JRC Groups wrote:
>
>###############################################
># Here's where we get the distributed defaults.
>
>from Defaults import *
>
>##################################################
># Put YOUR site-specific settings below this line.
>MTA = 'Postfix'
>DEFAULT_EMAIL_HOST = 'dentserv.main.private'
>DEFAULT_URL_HOST = 'dentserv.main.private'
>


Assuming that all your Mailman lists are/will be in the domain.com
domain and that mail will be sent to addresses like LIST at domain.com
and web access to mailman will be via URLs beginning
'http://www.domain.com/' (if this will be 'http://domain.com/', drop
the 'www.' below), change the above two lines to

DEFAULT_EMAIL_HOST = 'domain.com'
DEFAULT_URL_HOST = 'www.domain.com'

and add

VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)


The original error and your postconf -n post indicate that domain.com
is not local in Postfix. Thus you also need to add here

POSTFIX_STYLE_VIRTUAL_DOMAINS = ['domain.com']

After editing mm_cfg.py as above, run

sudo /usr/share/mailman/bin/withlist -l -a -r fix_url

followed by

sudo /usr/share/mailman/bin/genaliases

This should fix the mailman side of things, but I'm a bit confused.

I think this will create/update the files aliases. aliases.db,
virtual-mailman and virtual-mailman.db in the directory
/usr/share/mailman/data/.

My confusion is that your postconf -n had

alias_maps = hash:/etc/aliases,hash:/var/mailman/data/aliases

which says Mailman's aliases are in /var/mailman/data. This could be
incorrect, or /var/mailman/data/ or /var/mailman/data/aliases* could
be symlinks or Mailman might be configured with var-prefix =
/var/mailman which would put the aliases* and virtual-mailman* files
in /var/mailman/data/.

I will assume the latter which means you should add
hash:/var/mailman/data/virtual-mailman to virtual_alias_maps in
Postfix main.cf to make it

virtual_alias_maps = hash:/etc/postfix/virtual_users,
                     hash:/var/mailman/data/virtual-mailman

and then reload the Postfix service.

In any case, the hash:/var/mailman/data/aliases in alias_maps and
hash:/var/mailman/data/virtual-mailman in virtual_alias_maps should
point to the files updated by Mailman's genaliases above.

-- 
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