Sendmail and procmail

Here’s my procmail recipe:

:0

  • ^(TO|CC).*rt-help
    | “/opt/rt3/bin/rt-mailgate --queue General --action correspond --url http://rh-colab/

Here’s my procmail log:

procmail: [1409] Fri Jan 30 12:41:22 2004
procmail: Assigning “INCLUDERC=/home/rt-help/Procmail/rc.testing”
procmail: Match on “^(TO|CC).*rt-help”
procmail: Executing “/opt/rt3/bin/rt-mailgate --queue General --action correspond --url http://helpdesk/
/opt/rt3/bin/rt-mailgate --queue General --action correspond --url http://helpdesk/: /opt/rt3/bin/rt-mailgate --queue General --action correspond --url http://helpdesk/: No such file or directory
procmail: Error while writing to “/opt/rt3/bin/rt-mailgate --queue General --action correspond --url http://helpdesk/
procmail: Assigning “LASTFOLDER=/opt/rt3/bin/rt-mailgate --queue General --action correspond --url http://helpdesk/
procmail: Locking “/var/spool/mail/rt-help.lock”
procmail: Assigning “LASTFOLDER=/var/spool/mail/rt-help”
procmail: Opening “/var/spool/mail/rt-help”
procmail: Acquiring kernel-lock
procmail: Unlocking “/var/spool/mail/rt-help.lock”
procmail: Notified comsat: “rt-help@991:/var/spool/mail/rt-help”

From mmethe@ci.keene.nh.us Fri Jan 30 12:41:22 2004
Folder: /var/spool/mail/rt-help

What’s going on here? What have I done wrong? All I want to do is forward email to rt-help to rt-mailgate for processing. Do I need to mess with /etc/aliases at all? Running on Fedora by the way…

Thanks

mwm

/opt/rt3/bin/rt-mailgate --queue General --action correspond --url http://helpdesk/: /opt/rt3/bin/rt-mailgate --queue General --action correspond --url http://helpdesk/: No such file or directory

What’s going on here? What have I done wrong?

did you read the error? “no such file or directory” implies you got
the path wrong.

seph

Michael Methe wrote:

Here’s my procmail recipe:

:0

  • ^(TO|CC).*rt-help

I’d recommend to use this line:

  • ^TO_rt-help

| “/opt/rt3/bin/rt-mailgate --queue General --action correspond --url
http://rh-colab/

/opt/rt3/bin/rt-mailgate --queue General --action correspond --url
http://helpdesk/: /opt/rt3/bin/rt-mailgate --queue General --action
correspond --url http://helpdesk/: No such file or directory

You told procmail to execute a script named “/opt/rt3/bin/rt-mailgate
–queue General …” Leave away the double quotes!

Fabian