2009/9/3 Henri Shustak <henri.shus...@gmail.com>:
> However, I am now concerned that I have made some mistakes with regards the
> setup of the postfix configuration.
>
> I updated the system (with apt-get) and I guess this updated the version of
> postfix I was running. I figured everything was running correctly. However,
> when I recently went to configure a mailing list by adding various lines
> similar to the following :
>
> maillistn...@domain.com:              "|/var/lib/mailman/mail/mailman post
> maillistname"
>
> into the /etc/alias file and then going to run the postalias command on this
> file to update the .db file. the following error was reported :
>
> postalias: warning: /etc/aliases, line XXX: name must be local
>
> for every line which contained the above syntax.

/etc/aliases is only good for local names - basically: system accounts.

One solution to this is a set of virtual aliases that point to local
aliases, something like (this is just an example, I can't remember the
usual mailman syntax):

virtual_alias_maps: (note that this is postmap'd not postalias'd, so
there's no colons)

listn...@example.com       listname
listname-ad...@example.com     listname-admin
etc..

Then in /etc/aliases:

listname: "|/var/lib/mailman/mail/mailman post listname"
listname-admin: "|/var/lib/mailman/mail/mailman admin listname"


A cleaner solution might be to use mailman's "virtual domain" support.
It's been a while since I've looked at it, but this should be the
right page:
http://www.gnu.org/software/mailman/mailman-install/postfix-virtual.html

If memory serves, it leaves all the alias-handling to mailman, which is a boon.

Reply via email to