procmail
[Top] [All Lists]

can't duplicate configuration

2002-08-06 09:55:24
Hi, dear users of procmail!

I am not master of procmail, that's why I have
got a real trouble.

The task is simple: when we get the message to
webmaster(_at_)hqmovies(_dot_)com with the size greater then 40Kb
then send the reply "The message exceeds the limit of 40K"
with the first several lines of the original letter.

That what I have developed in /etc/procmailrc:

:0 bhi
* ^To:(_dot_)*webmaster(_at_)hqmovies(_dot_)com
* > 40960
* !^FROM_DAEMON
* !^X-Loop: admin(_at_)intervelopers(_dot_)com
# That comes in one line
| head -100 | (formail -rk -I"From: Mail Delivery System <Mailer-Daemon(_at_)intervelopers(_dot_)com>" -I"Subject: Returned mail: The message exceeds the limit of 40K" -A"X-Loop: admin(_at_)intervelopers(_dot_)com"; echo "... the rest of the message is cut ...") | $SENDMAIL -it

The action is quite difficult, but it works. I have used "i" flag
cause "head -100" closes the pipe earlier then procmail sends the message.
This is the only rule in rc file. I do use procmail v3.14 1999/11/22.

Then I have moved rc file to the other server (running procmail v3.21 
2001/06/29)
and it suddenly stopped working! I mean it works, but in the wrong way:
- when the small messages arrive, they are delivered ok
- when the large message arrives, it is not delivered (that's ok), but
  the reply is not send either.

I tried to simplify the action to:
formail -rk -I"From: Mail Delivery System <Mailer-Daemon(_at_)intervelopers(_dot_)com>" -I"Subject: Returned mail: The message exceeds the limit of 40K" -A"X-Loop: admin(_at_)intervelopers(_dot_)com" | $SENDMAIL -it

but that doesn't work too.

That is the logfile messages:
=== small message is ok ===
procmail: Match on "^To:(_dot_)*webmaster(_at_)hqmovies(_dot_)com"
procmail: No match on "> 40960"
procmail: Assigning "PATH=/usr/local/apache/sites/hqmovies.com/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin"
From dma_k(_at_)mail(_dot_)ru  Tue Aug  6 11:17:15 2002
 Subject: (no subject)
  Folder: /var/spool/mail/vhosthq  1022
=== large message is gone ===
procmail: Match on "^To:(_dot_)*webmaster(_at_)hqmovies(_dot_)com"
procmail: Match on "> 40960"
procmail: Match on ! "(^(Mailing-List:|Precedence:.*(junk|bulk|list)|To: Multiple recipients of |(((Resent-)?(From|Sender)|X-Envelope-From):|>?From )([^>]*[^((_dot_)%(_at_)a-z0-9])?(Post(ma?(st(e?r)?|n)|office)|(send)?Mail(er)?|daemon|m(mdf|ajordomo)|n?uucp|LIST(SERV|proc)|NETSERV|o(wner|ps)|r(e(quest|sponse)|oot)|b(ounce|bs\.smtp)|echo|mirror|s(erv(ices?|er)|mtp(error)?|ystem)|A(dmin(istrator)?|MMGR|utoanswer))(([^).!:a-z0-9][-_a-z0-9]*)?[%@> ][^<)]*(\(.*\).*)?)?$([^>]|$)))"
procmail: Match on ! "^X-Loop: admin(_at_)intervelopers(_dot_)com"
procmail: Executing " formail -rk -I"From: Mail Delivery System <Mailer-Daemon(_at_)intervelopers(_dot_)com>" -I"Subject: Returned mail: The message exceeds the limit of 40K" -A"X-Loop: admin(_at_)intervelopers(_dot_)com" | $SENDMAIL -it" procmail: Assigning "LASTFOLDER= formail -rk -I"From: Mail Delivery System <Mailer-Daemon(_at_)intervelopers(_dot_)com>" -I"Subject: Returned mail: The message exceeds the limit of 40K" -A"X-Loop: admin(_at_)intervelopers(_dot_)com" | $SENDMAIL -it" procmail: Notified comsat: "vhosthq@:/ formail -rk -I"From: Mail Delivery System <Mailer-Daemon(_at_)intervelopers(_dot_)com>" -I"Subject: Returned mail: The message exceeds the limit of 40K" -A"X-Loop: admin(_at_)intervelopers(_dot_)com" | $SENDMAIL -it"
From 520039074546-0001(_at_)t-online(_dot_)de  Tue Aug  6 11:23:37 2002
 Subject: These passwords work very short time!
  Folder:  formail -rk -I"From: Mail Delivery System <Mailer-Daemon(_at_)int  
124178

How can I increase debug level or trace? What can
be the reason of such behavior?

Thank you a lot.

Bye.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • can't duplicate configuration, Dmitry Katsubo <=