Lloyd Zusman writes:

Given a local mail filter controlled by instructions in the
$HOME/.mailfilters/rcptfilter file (see "man localmailfilter"), I'd
sometimes
like  the error response for message that are rejected to be set
to something other than the default, which is ...

  571 Delivery not authorized, message refused.

While in most cases, I don't mind this message, for certain rejects,
I'd like to override this default and replace it with my own, ad hoc
message.

Is there a way to do this?

Use the echo statement in rcptfilter to produce a custom error message.

Attachment: pgpihGSGiVsuv.pgp
Description: PGP signature

Reply via email to