[Mailman-Users] virtual domain and alias_maps

Mark Sapiro mark at msapiro.net
Fri Aug 16 19:31:30 CEST 2013

On 08/16/2013 01:17 AM, Dr Michael Daly wrote:
> So I reconfigured postfix with:
> alias_maps = hash:/etc/aliases, hash:/etc/mailman/aliases
>  (I know someone said above this wasn't needed)

And that was bad advice. It is needed. See below.

> virtual_alias_maps = hash:/etc/postfix/virtual,
>  hash:/etc/mailman/virtual-mailman
> So, now, at least email sent to the list server address
> (discuss at cpddomain.org.au) seems to reach the mailserver, but the maillog
> shows its rejected as an unknown user:
> to=<discuss at main-domain.au>, orig_to=<discuss at cpddomain.org.au>,
> relay=local, delay=0.09, delays=0.08/0.01/0/0.01, dsn=5.1.1,
> status=bounced (unknown user: "discuss")
> Where 'discuss at cpddomain' is the list-server email address given in the
> welcome email, but which seems to be reconfigured as an email addressed to
> the main (non-virtual) domain on the system

That is as it should be except for the ultimate 'unknown user' which I
don't fully understand.

> I don't have a specific entry in my vmailbox file for
> discuss at cpddomain.org.au...I didn't think that was needed

It's not.

> The other anomaly is that the relevant alias entries appear both in
> /etc/mailman/aliases:

This is as it should be.

> # STANZA START: discuss
> # CREATED: Fri Aug 16 16:38:08 2013
> discuss:             "|/usr/lib/mailman/mail/mailman post discuss"
> discuss-admin:       "|/usr/lib/mailman/mail/mailman admin discuss"
> discuss-bounces:     "|/usr/lib/mailman/mail/mailman bounces discuss"
> discuss-confirm:     "|/usr/lib/mailman/mail/mailman confirm discuss"
> discuss-join:        "|/usr/lib/mailman/mail/mailman join discuss"
> discuss-leave:       "|/usr/lib/mailman/mail/mailman leave discuss"
> discuss-owner:       "|/usr/lib/mailman/mail/mailman owner discuss"
> discuss-request:     "|/usr/lib/mailman/mail/mailman request discuss"
> discuss-subscribe:   "|/usr/lib/mailman/mail/mailman subscribe discuss"
> discuss-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe discuss"
> # STANZA END: discuss

The above are the aliases that cause mail to the local addresses
'discuss' and 'discuss-*' to be appropriately piped to Mailman.

> and in /etc/mailman/virtual-mailman:
> # STANZA START: discuss
> # CREATED: Fri Aug 16 16:38:08 2013
> discuss at cpddomain.org.au              discuss
> discuss-admin at cpddomain.org.au        discuss-admin
> discuss-bounces at cpddomain.org.au      discuss-bounces
> discuss-confirm at cpddomain.org.au      discuss-confirm
> discuss-join at cpddomain.org.au         discuss-join
> discuss-leave at cpddomain.org.au        discuss-leave
> discuss-owner at cpddomain.org.au        discuss-owner
> discuss-request at cpddomain.org.au      discuss-request
> discuss-subscribe at cpddomain.org.au    discuss-subscribe
> discuss-unsubscribe at cpddomain.org.au  discuss-unsubscribe
> # STANZA END: discuss

These are virtual mappings that map virtual addresses like
discuss(-*)@cpddomain.org.au to local addresses discuss(-*). This part
is working correctly per the part of the log message that says
"to=<discuss at main-domain.au>, orig_to=<discuss at cpddomain.org.au>,",
however the part that says "relay=local, ... status=bounced (unknown
user: "discuss")" is saying that for some reason, the alias

discuss:             "|/usr/lib/mailman/mail/mailman post discuss"

is not being processed by Postfix even though the message is being
handled by the 'local' transport.

What are the ownership and permissions on /etc/mailman/aliases.db. Is
the time stamp of this as recent as that on /etc/mailman/aliases? Are
there any Postfix log entries related to /etc/mailman/aliases?

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