return mail into queue

Mikhail Mednikov the.cuprum at
Thu Sep 21 09:34:45 CEST 2006

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..

smtp 		inet	n	-	n	-	-	smtpd
		-o content_filter=smtp-amavis:[]:10024

smtp-amavis	unix	-	-	n	-	3	smtp
		-o smtp_data_done_timeout=1200
		-o smtp_send_xforward_command=yes	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}


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


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

in postfix log i see something like this -

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

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

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

i get mail back to user... i mean user1 at send mail to 
user2 at and delivery end successful, but user get mail back to 
user1 at - look like what user1 at send mail to 
yourself :)

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

More information about the procmail mailing list