Postfix. Запуск программы по письму.
У sendmail-а для запуска программы по письму, можно в /etc/mail/aliases прописать строки такого вида
spam: "|/usr/local/bin/sa-learn --spam" not-spam: "|/usr/local/bin/sa-learn --ham" Как эту задачу можно реализовать в postfix? |
Цитата:
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. |
Время: 22:48. |
Время: 22:48.
© OSzone.net 2001-