[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Postfix - run script from email



On 07/12/13 22:36, Gregory Nowak wrote:
> 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
> 
> 

Thnks, Greg; this looks useful. I'm not familiar with maildrop, but
shall investigate. One problem is that all email users are virtual; no
home directories, and they pick up mail via imap.

Cheers

-- 
Tony van der Hoff        | mailto:tony@vanderhoff.org
Buckinghamshire, England |


Reply to: