OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Aliases and command pipes

From: Michael Monnerie (michael.monnerieit-management.at)
Date: Wed Apr 26 2006 - 05:27:53 CDT


On Dienstag, 25. April 2006 20:02 Richard Secor wrote:
> That's what I meant... and I already read that page.
> And I have
> allow_mail_to_commands = alias,foward,include
> in my main.cf as well.

I have postconf|grep allow_mail_to
allow_mail_to_commands = alias, forward
allow_mail_to_files = alias, forward

and when I try in virtual:
test2mydomain.com |"/bin/date >>/tmp/lager"
testmydomain.com test_mydomain_com

Then Mail to test2mydomain.com gets translated to
to=<|/bin/date >>/tmp/lagergoelsen.net>
and bounces.

Instead, I use testmydomain.com to an alias, and that to /etc/aliases
test_mydomain_com: "|/tmp/test.sh"

then it works. I'd appreciate a way to do it directly from virtual.

mfg zmi
--
// Michael Monnerie, Ing.BSc ----- http://it-management.at
// Tel: 0660/4156531 .network.your.ideas.
// PGP Key: "lynx -source http://zmi.at/zmi3.asc | gpg --import"
// Fingerprint: 44A3 C1EC B71E C71A B4C2 9AA6 C818 847C 55CB A4EE
// Keyserver: www.keyserver.net Key-ID: 0x55CBA4EE

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

iD8DBQBET0sqyBiEfFXLpO4RAiscAKCwMzRiw0xNu1SfYRC+iBmE+1816QCeO17O
c5WqZvaliZHmyyUhy1MS5Ic=
=GNXX
-----END PGP SIGNATURE-----