How to make qmail to feed email into shell command?
Posted
by Nopik
on Server Fault
See other posts from Server Fault
or by Nopik
Published on 2010-04-12T11:48:57Z
Indexed on
2010/04/12
11:53 UTC
Read the original article
Hit count: 255
qmail
Hi, I have some server running qmail, with many users/domains configured via plesk. I would like to get emails from specified address delivered to one of my users being feed to shell command, as addition to normal delivery. So, basically, I have some shell script, and I'd like qmail to invoke my script with the email, and the continued with delivery as usual.
If necessary, I can do recipient/sender filterind on script side, though it could be more efficient and cleaner, if qmail would feed only correct emails to my script.
Anyway, how to accomplish that?
© Server Fault or respective owner