saravanan ganapathy schreef:
I configured procmail as MDA for sendmail.
My .procmail.rc looks like
ITYM: .procmailrc
(so without the embedded dot)
SHELL = /bin/bash
LOGFILE = /home/test/pm.log
LOGABSTRACT = "all"
VERBOSE = "on"
:0 c
|/bin/bash /home/test/ftp.sh
I would change that to:
SHELL = '/bin/sh'
LOGFILE = 'pm.log' # will reside in $HOME
LOGABSTRACT = 'all'
VERBOSE = 'on'
:0 c
|/bin/bash $HOME/ftp.sh
(mark also the different meaning of single and double quotes)
If you put a line
#!/bin/bash
on top of ~test/ftp.sh, and do a
chmod 700 ~test/ftp.sh
then this would be sufficient:
:0c
|ftp.sh
I want to call the script after the mail delivery.
Please tell us why. The way it is now, seems OK to me.
Two procmails are running: one to call the script and one to deliver to
$DEFAULT.
Maybe you mean something like this:
SHELL = '/bin/sh'
LOGFILE = "$HOME/pm.log"
LOGABSTRACT = 'all'
VERBOSE = 'on'
:0c:
$DEFAULT
DEFAULT = "|$HOME/ftp.sh"
but that does about the same as the original (the forks are just
swapped).
(untested)
--
Grtz, Ruud
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail