Procmail Does Not Work Between Midnight And Sunrise.

General discussions and other topics.
5 posts Page 1 of 1
by nhdesign » Fri Jan 27, 2017 6:35 am
Good Morning,

My procmail is working intermittently between midnight and
sunrise. Sometimes from midnight to 04:00, sometimes as late as
08:00. I noticed the behavior a few months ago, I don't know how
long it has been happening. So, I inserted the line in my
crontab to run a test.

I have had the line in my .procmailrc forever, first, before
anything else. When procmail is working I, do not, get the test
emails in my mailbox, but they do go into my backup. When
procmail is down the the test emails appear in my mailbox but not
the backup.

From .procmailrc

:0 c
$HOME/ztrash.procmail/mail_backup_procmail/cur

From crontab
0 * * * * echo `date`| $MAILX -s "sonic backup_procmail - `date +\%A' '\%Y\%m\%d-\%H\%M`" [email protected]

Thanks,
Vic
by gkeller » Fri Jan 27, 2017 6:12 pm
I am definitely seeing some issues in the logs matching the time frame you specify. I tracked it as far as an error from procmail not being able to write to your $HOME/ztrash.procmail/mail_backup_procmail/ files. Since we are talking about at regular window of time, I would see if perhaps there is a cronjob running that might be causing this behavior.
Grant Keller
Sonic.net System Operations
by nhdesign » Mon Jan 30, 2017 4:47 am
I have been checking my crontab and cannot find anything, but, I
noticed it worked all night 1/29 Saturday. Looking back I
discovered it worked all hours on these dates:

1/29 Saturday
1/20 Friday

If you do not see anything on those dates, perhaps you would like
to review my crontab? I could mail a copy to you. I save it to
a file every time I change it.

--
Vic
by kgc » Mon Jan 30, 2017 10:00 am
Vic, Grant and I did review your crontab and procmail rules and logs Friday afternoon. While we didn't find anything obvious you have a lot of sutff going on there - including lots of jobs which move around your email. It is highly suspicious to us that one of these jobs is having an unintended consequence.
Kelsey Cummings
System Architect, Sonic.net, Inc.
by nhdesign » Mon Jan 30, 2017 1:27 pm
Ok, thanks, I will keep looking. I will disable one thing at a time until the behavior changes.

Thanks,
Vic
5 posts Page 1 of 1