|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
dbmail running scripts on emailsHello,
I was wondering if someone could help me out. I am trying to run a script every time I receive a email using dbmail. Paul J Stevens pointed me to this page http://www.dbmail.org/dokuwiki/doku.php/setup_postfix but I am still having problems. Right now I am running a simple test script to see it work. This is the content of the autoreply.rb script that I have placed in root (/), permissions are set to read, write, exec for everyone: #!/bin/sh touch /testfile I first created a users then I added the pipe command to the alias. This is the command I am using to set the alias: dbmail-users -x wiki@... -t "| /autoreply.rb" This is what the entry looks like in the db: 45 | wiki@... | | /autoreply.rb | 0 | This is the only error I see in the logs: Sep 29 00:33:20 me dbmail/lmtpd[6100]: Error:[delivery] pipe.c,send_mail(+188): sendmail error return value was [1] Thanks for your help. -- Guille http://twitter.com/guillec _______________________________________________ DBmail mailing list DBmail@... http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail |
|
|
Re: dbmail running scripts on emailsGuille Carlos wrote:
> This is the content of the autoreply.rb script that I have placed in > root (/), permissions are set to read, write, exec for everyone: > #!/bin/sh > touch /testfile What planet are you from? Don't install *anything* in /! Major culture shock :-) This is a permission problem. The postfix user is not allowed to create a file in /. Move the script to a safer location like /usr/local/bin, and have it touch a file in /tmp/ instead. -- ________________________________________________________________ Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlands________________________________http://www.nfg.nl _______________________________________________ DBmail mailing list DBmail@... http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail |
|
|
Re: dbmail running scripts on emailsAccording to my family I was born on Earth, which might actually explain a lot :)
Anyways thanks everything is rolling!!!! On Tue, Sep 29, 2009 at 5:42 AM, Paul J Stevens <paul@...> wrote:
-- Guille http://guillecarlos.com http://twitter.com/guillec http://awayfind.com/guille _______________________________________________ DBmail mailing list DBmail@... http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail |
| Free embeddable forum powered by Nabble | Forum Help |