Nat Sakimura writes:

If the lookup fails, have the external program generate a:

| echo "550 User unknown"

Do you mean that I should just generate

"550 user unknown" ?

No, you should generate

| echo "550 User unknown" ; exit 1

The above instruction, when placed in a .courier file, results in a bounce due to a non-zero exit code.

When you invoke a program via "||", its output is parsed as if it were read from a .courier file.


The smtp session is as follows: It does not seem to work.
What am i doing wrong?

Connected to localhost.
Escape character is '^]'.
220 vrenpo.com ESMTP
helo kitty
250-vrenpo.com Ok.
250-AUTH LOGIN
250-AUTH=LOGIN X-NETSCAPE-HAS-BUGS
250-STARTTLS
250-XVERP=Courier
250-XEXDATA
250-XSECURITY=NONE,STARTTLS
250-PIPELINING
250-8BITMIME
250-SIZE
250 DSN
mail from:<[EMAIL PROTECTED]>
250 Ok.
rcpt to:<[EMAIL PROTECTED]>
250 Ok.
rset
250 Ok
quit
221 Bye.

You will never get a rejection at this point. Delivery instructions for a recipient are processed only when actually delivering the message. The message will always be accepted, and then bounced during delivery.


Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to