I have a .cgi script that sendmail runs thru a .procmailrc file located in the users root Directory.
The contents of the .procmailrc file are:
:0c
|/usr/bin/perl /user/directory/cgi-bin/getmail.cgi
When sending mail from the localhost or from a "POP3" client, it functions fine.
If mail is sent from another server running Sendmail, it works fine.
However if mail is sent from another mail server (MTA) it hits the script and dies.
(Like Hotmail or Yahoo, or even from a sendmail server but thru a web-based interface (IMAP) client)
The script is owned by the user with perms. 700
The procmailrc file is owned by root with perms. 644 (For Sendmail 8:12.9)
I have even converted the script and functionality over to PHP,
(Which was the main objective to start with)
But that will not run at all.
:0c
|/usr/local/bin/php /user/directory/getmail.php > /dev/null
I cannot even get it to generate an error to tell me why it will not run.
Is there a reason that this works fine as a .cgi but not as PHP?
And why will it fail when another MTA sends mail to the user??
Am I missing something here?
Any thoughts or advice would be appreciated.
Thanks.
Seth
seth@vortexnetworks.com