Peter H. Lemieux wrote:
mouss wrote:
Liam-PrintingAutomation wrote:

given what you posted, you sa seems to be ok. you now need to make sure your sendmail is actually calling procmail. try putting an error in your

You can tell procmail to log its actions by adding the following to the top of a procmailrc:

LOGFILE=/path/to/logfile
VERBOSE=yes

If this a .procmailrc in a user's home directory, point the log to a location to which that user has write privileges, e.g., /home/user/procmailog. If it's in /etc/procmailrc, it's probably better to write it to some place like /var/log/procmail.
OK, I added that to the top of /etc/procmailrc and it started logging:

[EMAIL PROTECTED] log]# cat procmail
procmail: [6329] Mon Mar 27 09:04:55 2006
procmail: Assigning "DROPPRIVS=yes"
procmail: Assuming identity of the recipient, VERBOSE=off
From [EMAIL PROTECTED]  Mon Mar 27 09:04:55 2006
Subject: $399 Dell desktop with 15" flat panel deal.
Folder: /var/mail/sue 32565
procmail: [6358] Mon Mar 27 09:05:52 2006
procmail: Assigning "DROPPRIVS=yes"
procmail: Assuming identity of the recipient, VERBOSE=off
From (anemailaddress)@FunniestStuff.net  Mon Mar 27 09:05:52 2006
Subject: Barbell accident.
Folder: /var/mail/merrilee 6130
procmail: [6373] Mon Mar 27 09:06:14 2006
procmail: Assigning "DROPPRIVS=yes"
procmail: Assuming identity of the recipient, VERBOSE=off
From [EMAIL PROTECTED]  Mon Mar 27 09:06:14 2006
Subject: Re: [IPCop-user] "Destination Host Unreachable" on Orange
Folder: /var/mail/liam 7497
[EMAIL PROTECTED] log]#


That's interesting! Don't know exactly what use I can make of it, but it proves that procmail is being used, no?
So, I don't understand. Procmailrc is being used and calling spamassassin:
[EMAIL PROTECTED] log]# cat /etc/procmailrc
LOGFILE=/var/log/procmail
VERBOSE=yes
DROPPRIVS=yes
:0fw
| /usr/bin/spamc
[EMAIL PROTECTED] log]#


and yet, the headers of the received e-mails don't show any Spamassassin additions. Not knowing exactly what it proves, I did what that earlier post suggested to try:
[EMAIL PROTECTED] log]# echo blahblah > /tmp/bug
[EMAIL PROTECTED] log]# cat /tmp/bug
blahblah
[EMAIL PROTECTED] log]#
and
[EMAIL PROTECTED] log]# logger -p mail.error -t bug bug
[EMAIL PROTECTED] log]# tail maillog
[..]
Mar 27 09:14:50 s75712 bug: bug
[..]


That's kinda cool.
So that appears to show that logging is working.
What else can I look into?

Thanks for the replies!!
-Liam

Reply via email to