[Mailman-Users] Integrating mailman with postfix, using virtual domains

Mark Sapiro mark at msapiro.net
Wed Oct 12 01:07:17 CEST 2011


On 10/10/2011 5:40 PM, Nick Bright wrote:
> 
> I've followed the mailman documentation for integrating mailman with
> postfix, according to
> http://www.list.org/mailman-install/postfix-virtual.html as well as
> various mailing list posts on this list.
> 
> Note that I am attempting to configure a virtual_mailbox_domain with
> mailman (not a virtual_alias_domain).
> 
> mm_cfg.py contains:
> 
> POSTFIX_STYLE_VIRTUAL_DOMAINS = ['valnet.net']
> MTA = 'Postfix'
> DEFAULT_URL_HOST   = 'mail.valnet.net'
> DEFAULT_EMAIL_HOST = 'valnet.net'
> VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'valnet.net'


The above line is wrong. Normally you shouldn't need to specify
VIRTUAL_MAILMAN_LOCAL_DOMAIN at all, but if it is specified, it should
be something like 'localhost' or 'some.other.postfix.local.domain'. It
must not be the list domain because if it is it will result in
virtual-mailman mappings like

testlist at valnet.net    testlist at valnet.net

which tell Postfix to map the virtual domain address testlist at valnet.net
to the address testlist at valnet.net which is the same address and doesn't
tell Postfix what real address to actually deliver to.


[...]
> Unfortunately, when I send an email to testlist at valnet.net I receive a
> bounce back of:
> 
> <testlist at valnet.net>: unknown user: "testlist at valnet.net"
> 
> With an associated postfix log entry of:
> 
> Oct 10 19:22:47 mail postfix/virtual[22090]: DBF7241F5F:
> to=<testlist at valnet.net>, relay=virtual, delay=0.39,
> delays=0.36/0/0/0.03, dsn=5.1.1, status=bounced (unknown user:
> "testlist at valnet.net")


Because you are mapping testlist at valnet.net to testlist at valnet.net
instead of to testlist or testlist at localhost


> When I test the alias maps I see:
> 
> [root at mail postfix]# postmap -q testlist at valnet.net
> hash:/etc/mailman/virtual-mailman
> testlist


This is the puzzling part as it says that the mapping in virtual-mailman
is to testlist and not to testlist at valnet.net, so it should be working ???

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