Ok, I'm still trying to figure this out.  On the new, test account, i can get it to log so I just need to figure out the other two.  However, I recreated the same recipe on the test account and what I'm seeing in the log is the first part of the recipe only, it doesn't seem to do anything with the second part.

So this (adjusted for the test account):

LOGFILE=/var/log/procmail
VERBOSE=yes

:0
* !^X-Forwarded-For: kirash4@gmail.com mytest@pcigrafx.com
* !^X-Forwarded-For: kirash4@gmail.com mytest@pcraft.com
* !^From.*kirash4@gmail.com
* !^To.*mytest@papillon.pcraft.com
! kirash4@gmail.com

:0c
* ^X-Forwarded-For: kirash4@gmail.com mytest@pcigrafx.com
* ^X-Forwarded-For: kirash4@gmail.com mytest@pcraft.com
! salesdept@pcraft.com


Generates this in the log file when it first shows up and gets forwarded to GMail:

procmail: [7884] Wed Jan 23 16:02:10 2013
procmail: Match on ! "^X-Forwarded-For: kirash4@gmail.com mytest@pcigrafx.com"
procmail: Match on ! "^X-Forwarded-For: kirash4@gmail.com mytest@pcraft.com"
procmail: Match on ! "^From.*kirash4@gmail.com"
procmail: Match on ! "^To.*mytest@papillon.pcraft.com"
procmail: Assigning "LASTFOLDER=/usr/sbin/sendmail -oi kirash4@gmail.com"
procmail: Executing "/usr/sbin/sendmail,-oi,kirash4@gmail.com"
procmail: Notified comsat: "mytest@:/usr/sbin/sendmail -oi kirash4@gmail.com"
>From USER@DOMAIN.com  Wed Jan 23 16:02:10 2013
 Subject: This is a test message
  Folder: /usr/sbin/sendmail -oi kirash4@gmail.com                  3139


And when it comes back from GMail:

procmail: [7892] Wed Jan 23 16:02:18 2013
procmail: Match on ! "^X-Forwarded-For: kirash4@gmail.com mytest@pcigrafx.com"
procmail: No match on ! "^X-Forwarded-For: kirash4@gmail.com mytest@pcraft.com"
procmail: No match on "^X-Forwarded-For: kirash4@gmail.com mytest@pcigrafx.com"
procmail: Locking "/var/spool/mail/mytest.lock"
procmail: Assigning "LASTFOLDER=/var/spool/mail/mytest"
procmail: Opening "/var/spool/mail/mytest"
procmail: Acquiring kernel-lock
procmail: [7892] Wed Jan 23 16:02:19 2013
procmail: Unlocking "/var/spool/mail/mytest.lock"
procmail: Notified comsat: "mytest@78076490:/var/spool/mail/mytest"
From kirash4+caf_=mytest=pcraft.com@gmail.com  Wed Jan 23 16:02:18 2013
 Subject: This is a test message
  Folder: /var/spool/mail/mytest                                         5251



I see the matches and no matches, but I can't tell what's being done before the other.  Especially when it comes back.  When it returns, the message DOES end up in mytest's mailbox, however it never gets copied to the salesdept email address.  So somewhere it's failing.  And it doesn't matter which domain I use, it only seems to run the first part of the recipe.



On Wed, Jan 23, 2013 at 2:58 PM, Ashley M. Kirchner <ashley@pcraft.com> wrote:
Ok, well those recipes are working and logging to /var/log/procmail.

I don't understand why this one, which is a lot shorter and simpler, won't log.  Nor will it work properly.


On Wed, Jan 23, 2013 at 2:54 PM, Michael Schwendt <mschwendt@gmail.com> wrote:
On Wed, 23 Jan 2013 14:45:52 -0700, Ashley M. Kirchner wrote:

> a) selinux doesn't exist on this box
> b) doesn't matter where the log file is
>
> And related to a), I have two other accounts that are successfully logging
> to /var/log/procmail.  They dump custom messages.  The differences I see is
> that those recipes have this at the top, under the LOGFILE line:
> LOGABSTRACT=off
>
> And neither of them have an explicit 'VERBOSE=yes' (or 'on') line.

LOGABSTRACT is completely unrelated. It's documented in "man procmailrc"
in case you want to read up on what it does.

--
Fedora release 19 (Rawhide) - Linux 3.8.0-0.rc4.git1.1.fc19.x86_64
loadavg: 0.12 0.11 0.07
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org