[Mailman-Users] using hash for aliases. distribution email bounced back with errors

Mark Sapiro mark at msapiro.net
Sat Jun 15 01:28:02 EDT 2019


On 6/14/19 2:21 PM, Christian Stalberg via Mailman-Users wrote:
> Installing mailman 2.1.20 on a working postfix-dovecot-mysql mail server.
> Trying to use hash for Mailman aliases.
> 
> In /etc/postfix/main.cf, I have
> 
> alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases


Good.


> I ran 'newlist mailman at command line.' This is the aliases file contents. 
> 


snipped but looks good.


> I ran bin/genaliases.


Which wasn't necessary (yet) because creating the list did everything
that genaliases did.


 I then subscribed some email addresses to the mailman
> list and sent a test distribution email which was bounced back with errors
> as follows:
> 
> This is the mail system at host naturalintelligence.us.
> 
> I'm sorry to have to inform you that your message could not be delivered to
> one or more recipients. It's attached below.
> 
> For further assistance, please send mail to postmaster.
> 
> If you do so, please include this problem report. You can delete your own
> text from the attached returned message.
> 
>                    The mail system
> 
> <mailman at naturalintelligence.us> (expanded from
>     <mailman at lists.naturalintelligence.us>): host
>     naturalintelligence.us[private/dovecot-lmtp] said: 550 5.1.1
>     <mailman at naturalintelligence.us> User doesn't exist:
>     mailman at naturalintelligence.us (in reply to RCPT TO command)


Is lists.naturalintelligence.us in mydestination or is it a virtual domain?

If the latter, you need to put

POSTFIX_VIRTUAL_DOMAINS = ['lists.naturalintelligence.us']

in mm_cfg.py and run genaliases again and add

virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman

to Postfix.


> <post at naturalintelligence.us> (expanded from
>     <mailman at lists.naturalintelligence.us>): host
>     naturalintelligence.us[private/dovecot-lmtp] said: 550 5.1.1
>     <post at naturalintelligence.us> User doesn't exist:
>     post at naturalintelligence.us (in reply to RCPT TO command)
> 
> <|/var/lib/mailman/mail/mailman at naturalintelligence.us> (expanded from
>     <mailman at lists.naturalintelligence.us>): host
>     naturalintelligence.us[private/dovecot-lmtp] said: 550 5.1.1
>     <|/var/lib/mailman/mail/mailman at naturalintelligence.us> User doesn't
> exist:
>     |/var/lib/mailman/mail/mailman at naturalintelligence.us (in reply to RCPT
> TO
>     command)


The Dovecot LDA does not understand the aliases. You may have
lists.naturalintelligence.us defined as a virtual domain for Dovecot.
This won't work.

This is really a Postfix issue, but we will try to help further if you
post the output from `postconf -n`.

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