I need to pipe email to a script. I found an earlier thread from 2004 which referenced this same problem http://www.interworx.com/forums/archive/index.php/t-237.html but I’m still stuck. From what I understand I need to create a file in:
/var/vpopmail/domains/mydomain.com
The filename should be: .qmail-myemail
And the contents should be:
|/usr/local/someprogram
However, this doesn’t seem to trigger the program when sending an email to myemail@mydomain.com
I have not setup an alias or a mailbox with this email address. The permissions on ‘someprogram’ are 777 and the permissions and owner on .qmail-myemail are:
-rw-r–r-- 1 vpopmail mydomain 64 Feb 3 13:13 .qmail-myemail
I’ve restarted qmail… Any ideas what I’m doing wrong?
I’d appreciate your assistance.
Thanks,
Cliff.