Re: Postfix - run script from email
On Sat, Dec 07, 2013 at 07:22:09AM -0800, David Guntner wrote:
> Look into Procmail, which might already be installed as the LDA for Postfix.
Maildrop should also work fine here if you prefer that. If your script
runs as a specific user, and that specific user doesn't get any other
mail, then a .forward file in that user's home directory could also be
used to pass mail to your script. If you want to use a .forward file,
then it would contain something like:
|/usr/local/bin/myscript
and the mail message would be passed to /usr/local/bin/myscript for
parsing. If the mails go to a virtual user, then you want to put a
file called .forward+virtualaddress in the virtual users directory
where virtualaddress is virtualaddress@example.com.
Greg
--
web site: http://www.gregn..net
gpg public key: http://www.gregn..net/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)
--
Free domains: http://www.eu.org/ or mail dns-manager@EU.org
Reply to: