PDA

View Full Version : Question about qmail


ugh82
05-21-2007, 04:01 AM
Hi all,

If I want to pipe an email account to run a php script.
In sendmail I just addit to /etc/mail/aliases like
user: |"/etc/smrsh/lynx -post_data -source http://someurl.php"

but in qmail and siteworx how can I do this?
Any ideas?

thanks!

Justec
05-21-2007, 08:04 AM
/home/account/var/accountdomain.com/mail

In here there is a file .qmail-default which is the, well, the default delivery location.
To make one for a particular user you can create a .qmail- file with the name of the email without the @accountdomain.com part

So bob@accountdomain.com would be .qmail-bob
Stick your pipe code in there.

Not 100% sure if this will work, but its the only way I know.

ugh82
05-21-2007, 08:21 AM
Yes!!
Worked perfectly !

Thanks