Ricardo Kleemann writes:

Ok, maybe I'm just not doing something right. In my /etc/courier/maildroprc I run a script which checks for some conditions, and in the case of errors, it asserts EXITCODE=77 and prints out a message. It seems that this is generating a bounce?

Yes, it is.

I'm attaching one of the messages (DSN) that was being generated back to the sender...

Maybe even though I asserted EXITCODE=77, but did not print out the code on the message (like 550), that could be the problem?

No, it won't make any difference.

You should avoid, as much as possible, bouncing mail from your local mailbox's mail filter. Courier has many filtering options that reject mail before it gets accepted; they are preferred for that reason -- no bounce gets generated, Courier simply refuses to accept mail.

If you must filter out unwanted mail through a local mail filter, consider just discarding the mail, without generating a bounce, or diverting it to a separate folder.

Attachment: pgpbxyCYXLSzr.pgp
Description: PGP signature

Reply via email to