Показать полную графическую версию : Postfix. Запуск программы по письму.
BachiStil
29-10-2009, 12:10
У sendmail-а для запуска программы по письму, можно в /etc/mail/aliases прописать строки такого вида
spam: "|/usr/local/bin/sa-learn --spam"
not-spam: "|/usr/local/bin/sa-learn --ham"
Как эту задачу можно реализовать в postfix?
bozordzh
04-11-2009, 15:37
Как эту задачу можно реализовать в postfix? »
в постфиксе aliases работают так же как в шлимыле
http://www.postfix.org/aliases.5.html
|command Mail is piped into command. Commands that contain special characters, such as whitespace, should be enclosed between double quotes. See local(8) for details of delivery to command. When the command fails, a limited amount of command output is mailed back to the sender. The file /usr/include/sysexits.h defines the expected exit status codes. For example, use "|exit 67" to simu- late a "user unknown" error, and "|exit 0" to implement an expensive black hole.
© OSzone.net 2001-2012
vBulletin v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.