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

Nick Bright nick.bright at valnet.net
Wed Oct 12 20:29:11 CEST 2011


On 10/11/2011 6:07 PM, Mark Sapiro wrote:
> On 10/10/2011 5:40 PM, Nick Bright wrote:
>>
[...]
>> 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.
>
[...]
>

Thank you for your reply, I appreciate you taking the time to look at my 
question.

I've commented out VIRTUAL_MAILMAN_LOCAL_DOMAIN completely from 
mm_cfg.py, and reran genaliases.

It's created a /etc/mailman/virtual-mailman contents of:

# STANZA START: testlist
# CREATED: Wed Oct 12 13:16:32 2011
testlist at valnet.net              testlist
testlist-admin at valnet.net        testlist-admin
testlist-bounces at valnet.net      testlist-bounces
testlist-confirm at valnet.net      testlist-confirm
testlist-join at valnet.net         testlist-join
testlist-leave at valnet.net        testlist-leave
testlist-owner at valnet.net        testlist-owner
testlist-request at valnet.net      testlist-request
testlist-subscribe at valnet.net    testlist-subscribe
testlist-unsubscribe at valnet.net  testlist-unsubscribe
# STANZA END: testlist

and /etc/mailman/aliases contents of:

# STANZA START: testlist
# CREATED: Wed Oct 12 13:16:32 2011
testlist:             "|/usr/lib/mailman/mail/mailman post testlist"
testlist-admin:       "|/usr/lib/mailman/mail/mailman admin testlist"
testlist-bounces:     "|/usr/lib/mailman/mail/mailman bounces testlist"
testlist-confirm:     "|/usr/lib/mailman/mail/mailman confirm testlist"
testlist-join:        "|/usr/lib/mailman/mail/mailman join testlist"
testlist-leave:       "|/usr/lib/mailman/mail/mailman leave testlist"
testlist-owner:       "|/usr/lib/mailman/mail/mailman owner testlist"
testlist-request:     "|/usr/lib/mailman/mail/mailman request testlist"
testlist-subscribe:   "|/usr/lib/mailman/mail/mailman subscribe testlist"
testlist-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe testlist"
# STANZA END: testlist

But still, when I send a message to testlist at valnet.net a bounce is 
generated as:

<testlist at valnet.net>: unknown user: "testlist at valnet.net"

with an associated postfix log entry of:

Oct 12 13:17:22 mail postfix/virtual[30579]: 7B1FC416DB: 
to=<testlist at valnet.net>, relay=virtual, delay=0.06, 
delays=0.03/0/0/0.03, dsn=5.1.1, status=bounced (unknown user: 
"testlist at valnet.net")

Identical behavior was observed when changing 
VIRTUAL_MAILMAN_LOCAL_DOMAIN to 'localhost'.

The problem seems, to me, to be that the mail isn't making it to the 
"local" delivery agent; but I am new to postfix and mailman so I'm not 
really certain of how to make that happen.

Thanks in advance for any further advice,

  - Nick




More information about the Mailman-Users mailing list