-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Greetings.
I looked around and couldn't find any answer to this, hopefully it's
something obvious I missed.
I have procmail setup as a local delivery agent from sendmail.
In /etc/procmailrc I setup DEFAULT to go to a users $HOME/Maildir/
Everything works fine.
If I then have a user who is over quota, I want it to bounce the
message right away, so I added a 'EXITCODE=73' to the /etc/procmailrc
after the default delivery. That also works and bounces the message,
but it tries to write the Maildir/tmp/ file 2 times, resulting in the
error message being duplicated.
ie, the bounce from a over quota user is:
----- The following addresses had permanent fatal errors -----
test(_at_)example(_dot_)com
(reason: can't create (user) output file)
----- Transcript of session follows -----
procmail: Quota exceeded while writing
"/home/test/Maildir/tmp/1048621959.11753_0.example.com"
procmail: Quota exceeded while writing
"/home/test/Maildir/tmp/1048621959.11753_1.example.com"
550 5.0.0 test(_at_)example(_dot_)com(_dot_) Can't create output
My /etc/procmailrc:
- - --cut--
PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin
MAILDIR=$HOME
DEFAULT=$MAILDIR/Maildir/
:0
${DEFAULT}
EXITCODE=73
- - --cut--
My procmail version:
procmail v3.22 2001/09/10
Why is it trying 2 times?
I tried unsetting ORGMAIL and setting ORGMAIL to /dev/null, and
neither seemed to matter.
It's the same pid, so both times it's the same procmail invocation...
Any ideas?
kevin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iD8DBQE+hI5z3imCezTjY0ERAgxxAJ9PyzNXCKq5QDw24JA9B2ehlS0OyACgjhvq
PrYBeq+jAUSnfW8dhRC3kIE=
=qAtR
-----END PGP SIGNATURE-----
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail