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: Ben Finney (benbenfinney.id.au)
Date: Fri Jul 15 2005 - 20:15:16 CDT


On 15-Jul-2005, Wietse Venema wrote:
> I suggest that you report the result of a few relevant
> tests with the postmap command.
>
> > virtual_alias_maps = hash:$config_directory/virtual regexp:$config_directory/map-regexp/virtual-mailman
>
> 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
$
=====

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

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

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

> For the regexp table you'd merely have to run the full address:

=====
$ postmap -q mailman-postwhitetree.org regexp:/etc/postfix/aliases-mailman
$
=====

The regexp table is currently a null-op (all entries commented out) to
avoid complicating matters until I can get aliases to external
commands at all.

> This will clarify where the lookups fail, or where the succeed in
> the wrong map.

Thanks for helping me continue diagnosis. Further ideas appreciated.

--
 \ "All my life I've had one dream: to achieve my many goals." -- |
  `\ Homer, _The Simpsons_ |
_o__) |
Ben Finney <benbenfinney.id.au>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iEYEARECAAYFAkLYX6QACgkQt6wuUb1BcUtntwCglBi5uMGPiLhENqOgktaUTAEq
VP8AoKfhzAhgZrPH2lkJYuqFu54n7bj5
=vrYk
-----END PGP SIGNATURE-----