procmail
[Top] [All Lists]

Re: return mail into queue

2006-09-21 01:29:47

On Thu, 21 Sep 2006, Mikhail Mednikov wrote:

Hi!
at first - sorry for my english..

I use procmail for one task - i need forward the certain letter on other
address. Fields FROM, TO and SUBJECT are analyzed

I use postfix, procmailrc (v3.15.2), clamav+amavisd.
The problem consists that the letter "jams" inside of a chain...

=================================================================
some configs..

/etc/postfix/master.cf
--------------------------
smtp          inet    n       -       n       -       -       smtpd
              -o content_filter=smtp-amavis:[127.0.0.1]:10024

smtp-amavis   unix    -       -       n       -       3       smtp
              -o smtp_data_done_timeout=1200
              -o smtp_send_xforward_command=yes

127.0.0.1:10025       inet    n       -       n       -       -       smtpd
              -o content_filter=procmail:filter

procmail      unix    -       n       n       -       1       pipe
              flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc
${sender} ${recipient}



/etc/procmailrc
----------------------------
LOGFILE=/var/log/procmail.log
VERBOSE=on

# one thing only.... :(
:0
* ^From:(_dot_)*megafon(_at_)UralskyGSM\(_dot_)com(_dot_)*
* ^To:(_dot_)*addr-one(_at_)some\(_dot_)site\(_dot_)ru(_dot_)*
* ^Subject:.*Invoice.*
! addr-two(_at_)some\(_dot_)site\(_dot_)ru

========================================================

in this case - ALL mail checks and "jammed" into...


        Yes.. into...? (:-)  Please, show us the procmail's log.
        To make it sinple comment out the LOGFILE= line and try
        to run the script from commandline.

Bye,
  Udi




in postfix log i see something like this -

Sep 20 14:47:24 proxy postfix/pipe[26450]: 52E96285:
to=<someaddr(_at_)some(_dot_)site(_dot_)ru>, relay=procmail, delay=0, 
status=deferred
(temporary failure)

If i add into /etc/procmailrc another action at end -

:0
| /usr/sbin/sendmail -i -r "$RECIPIENT" -f "$SENDER" -- "$@"

i get mail back to user... i mean user1(_at_)somenet1(_dot_)ru send mail to
user2(_at_)somenet2(_dot_)ru and delivery end successful, but user get mail 
back to
user1(_at_)somenet1(_dot_)ru - look like what user1(_at_)somenet1(_dot_)ru 
send mail to
yourself :)

Please, show me - what i doing wrong... :(
why mail not return to queue to next step...

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail






************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer 
viruses.
************************************************************************************




____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>