procmailrc and deliver problem

James Miller jimm at simutronics.com
Mon Feb 24 14:41:42 EST 2003


Hello all.

I am still having trouble getting /usr/cyrus/bin/deliver to deliver mail
using .procmailrc.  I have no problem using deliver from the command line --
it's processed just fine and I can see the message in the user.admin
mailstore:
/usr/cyrus/bin/deliver -m user.admin -a admin < sample_mail.txt.

I'm really pulling my hair out over this.  Could someone please take a look
at my .procmailrc for errors?  Also is there a way to use .forward to send
the message?  I don't care what mechanism is used.. I just want _something_
to work.

.procmailrc (sample 1)
--------------
LOGFILE=/var/log/procmail.log
:0hfw
| /usr/bin/formail -I 'From '
:0 w
LOGNAME = $1
EXTENSION = $2
* EXTENSION ?? .
| /usr/cyrus/bin/deliver -a "$LOGNAME" -e -q -m "$EXTENSION" -- "$LOGNAME"
# If no Extension we try this
:0 wE
| /usr/cyrus/bin/deliver -a "$LOGNAME" -e -q -- "$LOGNAME"
# Whichever one we tried, failed
EXITCODE = $?
HOST
--------------

Here are the entries in /var/log/procmail.log for the following .procmailrc
:
Subject: RE: testing still
Folder: LOGNAME

I don't see anywhere in the log file /var/log/imapd.log that the message was
even seen/rejected.  In addition sendmail doesn't complain at all about the
'format' of the message:

Feb 24 13:30:54 mercury sendmail[28023]: h1OJUs8K028023:
from=<jimm at simutronics.com>, size=666, class=0, n
rcpts=1, msgid=<NDBBKABJBJCIJNAELLKECELIHNAA.jimm at simutronics.com>,
proto=SMTP, daemon=MTA, relay=NTAdmin.
simutronics.com [198.83.204.82]
Feb 24 13:30:54 mercury sendmail[28023]: h1OJUs8K028023: Milter add: header:
X-Spam-Status: No
Feb 24 13:30:54 mercury sendmail[28023]: h1OJUs8K028023: Milter add: header:
X-Scanned-By: MIMEDefang 2.28
 (www . roaringpenguin . com / mimedefang)
Feb 24 13:30:54 mercury sendmail[28025]: h1OJUs8K028023:
to=<admin at simutronics.com>, ctladdr=<jimm at simutro
nics.com> (696/100), delay=00:00:00, xdelay=00:00:00, mailer=local,
pri=30977, dsn=2.0.0, stat=Sent


--------------
--------------


I have also tried this procmailrc file (declaring LOGNAME & EXTENSION before
:0 w:)

.procmailrc (sample 2)
----------------------
LOGFILE=/var/log/procmail.log
:0hfw
| /usr/bin/formail -I 'From '

LOGNAME = $1
EXTENSION = $2
:0 w
* EXTENSION ?? .
| /usr/cyrus/bin/deliver -a "$LOGNAME" -e -q -m "$EXTENSION" -- "$LOGNAME"
# If no Extension we try this
:0 wE
| /usr/cyrus/bin/deliver -a "$LOGNAME" -e -q -- "$LOGNAME"
# Whichever one we tried, failed
EXITCODE = $?
HOST
---------------------

It listed these errors in /var/log/procmail.log
procmail: Program failure (65) of "/usr/cyrus/bin/deliver
Subject: stupid imap2
Folder /usr/cyrus/bin/deliver -a -e -q --

And the message was bounced back:
The original message was received at Mon, 24 Feb 2003 13:14:21 -0600
from NTAdmin.simutronics.com [198.83.204.82]

   ----- The following addresses had permanent fatal errors -----
<admin at simutronics.com>
    (reason: Data format error)

   ----- Transcript of session follows -----
501 5.6.0 Data format error





Regards,
Jim





More information about the Info-cyrus mailing list