procmail
[Top] [All Lists]

Problem with mail sent from a local server

2006-03-17 00:34:12
Hi 

We are running procmail v3.21 and we have only the one /etc/procmailrc script. 
We
use procmail to grab any mail coming into a specific account and then send that 
mail
to a a program which strips information out of the mail and feeds that 
information into
our database. At present we have the web application (Bugzilla) on another 
linux server (dbtest)
while our mailserver is on our main server (Lin2). At present everything works 
fine. We are
in the process of moving Bugzilla to our main server and we are having problems 
that
seem to be related to Procmail.

1)When a bug is reported in Bugzilla an email is sent to an account on our main 
server.
2)Procmail does its thing and the script is correctly run
3)The local program does its thing.

However when Bugzilla sends mail to the account from the test version running 
on Lin2,
which is also our mailserver we have problems.

Step 1 happens fine and the Email is sent correctly to the account it should be.
Step 2 appears to run but the local program does not run.

Nothing has changed in the procmailrc.

The header in Email from dbtest shows the mail is from apache(_at_)dbtest with 
the appropriate
information showing the mail path taken to get to the Sendmail on Lin2. The 
header in Email
from Lin2 shows the email is coming from apache.

Here is our procmailrc

:0 c
| ( \
        ## Randomize a temp filename then write new message to it; \
        FILENAME=`/bin/echo /var/spool/mail_tmp/procmail.$$-$RANDOM`; \
        cat - > $FILENAME; \
        /usr/local/bin/process_mail $FILENAME $LOGNAME >> 
/var/log/procmail_errs 2>&1; \
  )


Here is how procmail gets called in our sendmail.cf

Mlocal,         P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhnu9, 
S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,
                T=DNS/RFC822/X-Unix,
                A=procmail -t -Y -a $h -d $u


The files in /var/spool/mail_tmp are being produced correctly when mail is 
received from
either machine. I have tried just running the process_mail script with the file 
from the
/var/spool/mail_tmp directory and it runs fine for mail from either address. 
The script does
not appear to be getting called when the mail is from the local server.

Does anyone have any clues what I could look for? Does anyone have an idea of a 
better way to
achieve this result?


Regards,
Richard Luckhurst                      
Programmer
Exodus Systems - Sydney, Australia.
rluckhurst(_at_)resmaster(_dot_)com
Tel: (+612) 4751-9633
Fax: (+612) 4751-9644
Web: www.resmaster.com 
=================================================
Exodus Systems - Smarter Systems, Better Business
=================================================


____________________________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>
  • Problem with mail sent from a local server, Richard Luckhurst <=