OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Alias to commands (Mailman virtual aliases)

From: Magnus Bäck (magnusdsek.lth.se)
Date: Sat Jul 16 2005 - 06:10:32 CDT


On Saturday, July 16, 2005 at 03:15 CEST,
     Ben Finney <benbenfinney.id.au> wrote:

> On 15-Jul-2005, Wietse Venema wrote:
>
> > For the hash table (which comes first) you'd need to do all
> > the lookups that are documented in virtual(5)
> >
> > postmap -q userdomain hash:/somewhere/virtual
> > postmap -q user hash:/somewhere/virtual
> > postmap -q domain hash:/somewhere/virtual
>
> Results:
>
> =====
> $ postmap -q mailman-postwhitetree.org hash:/etc/aliases
> $ postmap -q mailman-post hash:/etc/aliases
> "|formail -I\"X-Post: $EXTENSION\" |mail bignose"
> $ postmap -q whitetree.org hash:/etc/aliases
> $
> =====

That's the local alias table, which isn't what was asked for.

> So presumably that means the 'mailman-post' alias *should* deliver to
> an external command.

Yes, if the message reaches local(8).

> > (the second is needed only when domain is listed in $myorigin
> > or $mydestination).
>
> I should probably take it out, since it's also in my virtual maps
> (which is how the default delivery address is found, I guess):
>
> =====
> $ postmap -q whitetree.org hash:/etc/postfix/virtual
> bignosepolar.local
> =====

This will cause messages to mailman-postwhitetree.org to be redirected
to bignosepolar.local, which is why it won't reach Mailman.

> That's a question for a different thread though, and none of the
> aliases I'm trying are in the virtual domain table.

Virtual aliases apply to all recipient addresses.

[...]

--
Magnus Bäck
magnusdsek.lth.se