Mail stopped going to procmail ?????

My procmail was working perfectly an hour ago.
i made a copy of my .procmailrc and started editing it..
i never even touched the existing one that is in use.

now mail stopped being delivered to procmail... my maillog says "Message accepted for delivery". and nothing gets added to my procmail log.

i tried fixing permissions .. nothing
restarted sendmai .. nothing..

any ideas?
Oliver Weichhold [ Do, 01 September 2005 18:43 ] [ ID #947742 ]

Re: Mail stopped going to procmail ?????

Le Thu, 01 Sep 2005 12:43:36 -0400, DC a écrit :

>
>
>
> My procmail was working perfectly an hour ago.
> i made a copy of my .procmailrc and started editing it..
> i never even touched the existing one that is in use.
>
> now mail stopped being delivered to procmail... my maillog says "Message accepted for delivery". and nothing gets added to my procmail log.
>
> i tried fixing permissions .. nothing
> restarted sendmai .. nothing..
>
> any ideas?

Mmm... quickly
did you check the disk room ? (df -m)
especially /tmp and /var ?
anything funny in /var/log/[syslog|messages|debug] ?

And first question last ;-) What was it you were doing
while you 'didn't touch anything' last hour ?-)
Loki Harfagr [ Do, 01 September 2005 19:43 ] [ ID #947754 ]

Re: Mail stopped going to procmail ?????

On Thu, 01 Sep 2005 19:43:53 +0200, Loki Harfagr <loki [at] DarkDesign.free.fr> wrote:

>Le Thu, 01 Sep 2005 12:43:36 -0400, DC a écrit :
>
>>
>>
>>
>> My procmail was working perfectly an hour ago.
>> i made a copy of my .procmailrc and started editing it..
>> i never even touched the existing one that is in use.
>>
>> now mail stopped being delivered to procmail... my maillog says "Message accepted for delivery". and nothing gets added to my procmail log.
>>
>> i tried fixing permissions .. nothing
>> restarted sendmai .. nothing..
>>
>> any ideas?
>
>Mmm... quickly
>did you check the disk room ? (df -m)
>especially /tmp and /var ?
>anything funny in /var/log/[syslog|messages|debug] ?
>
>And first question last ;-) What was it you were doing
>while you 'didn't touch anything' last hour ?-)


Funny you should say that..
Yesterday it just started working again the same second that i changed my hostname. (mail was being rejected untill i made it match my MX
record). That must have been a coincidence cause its happening again.

to answer your question "What was it you were doing while you 'didn't touch anything' last hour?".. and a very good question i might add.
I made a change in my procmail script... i changed this
##################
* ^Subject: PM-Rule*
{
LOG="Matched a PM Rule $NL"
:0 c
!catchall [at] example.com

}
##################
To
##################
:0
* ^Subject: PM-Rule*
{
LOG="Matched a PM Rule $NL"
:0 c
!catchall [at] example.com

LOG = "Log in MySQL $NL"
:0
* X-DR-TO:\/.*
|bounce_to_mysql.php $MATCH >> /home/mailsort/dblog

}
#################3

I have since rolled back to known working .procmailrc, as that one caused an infinate loop (for other reasons... its a pretty long
procmailrc.)


However... all my mail problems aside... mail being delivered to user mailsort, is no longer going to procmail. instead its going
/var/spool/mail/mailsort.

How can i fix this/?????
Oliver Weichhold [ Fr, 02 September 2005 22:45 ] [ ID #949437 ]

Re: Mail stopped going to procmail ?????

Le Fri, 02 Sep 2005 16:45:34 -0400, DC a écrit :

> On Thu, 01 Sep 2005 19:43:53 +0200, Loki Harfagr <loki [at] DarkDesign.free.fr> wrote:
>
>>Le Thu, 01 Sep 2005 12:43:36 -0400, DC a écrit :
>>
>>>
>>>
>>>
>>> My procmail was working perfectly an hour ago.
>>> i made a copy of my .procmailrc and started editing it..
>>> i never even touched the existing one that is in use.
>>>
>>> now mail stopped being delivered to procmail... my maillog says "Message accepted for delivery". and nothing gets added to my procmail log.
>>>
>>> i tried fixing permissions .. nothing
>>> restarted sendmai .. nothing..
>>>
>>> any ideas?
>>
>>Mmm... quickly
>>did you check the disk room ? (df -m)
>>especially /tmp and /var ?
>>anything funny in /var/log/[syslog|messages|debug] ?
>>
>>And first question last ;-) What was it you were doing
>>while you 'didn't touch anything' last hour ?-)
>
>
> Funny you should say that..

Experience ;-)

> Yesterday it just started working again the same second that i changed my hostname. (mail was being rejected untill i made it match my MX
> record). That must have been a coincidence cause its happening again.
>
> to answer your question "What was it you were doing while you 'didn't touch anything' last hour?".. and a very good question i might add.
> I made a change in my procmail script... i changed this
....

Ha ha !-)

> I have since rolled back to known working .procmailrc, as that one
caused an infinate loop (for other reasons... its a pretty long
> procmailrc.)

Yes, they can be a pita to refine after some time.

> However... all my mail problems aside... mail being delivered to user
> mailsort, is no longer going to procmail. instead its going
> /var/spool/mail/mailsort.
>
> How can i fix this/?????


Well, another idea would be that you touched something in the sendmail
configuration, most probably in the mailertable or something with virtual
domains or users ?
Or did you diddle with your aliases files ?

If it is not that or if it is but you can't find out maybe you could
try and post your question in the comp.mail.sendmail group ?
(they are mostly nice, helpful and overtalented :-)
Loki Harfagr [ Mo, 05 September 2005 14:31 ] [ ID #952689 ]
Linux » comp.unix.shell » Mail stopped going to procmail ?????

Vorheriges Thema: Capitalising file names - is this possible with sed?
Nächstes Thema: escape sequences in string variables