rica...@americasnet.com writes:
Thank you folks that kindly responded to my question.
I had an additional question... The control file may have multiple 'r'
lines, meaning multiple local recipients. If I'm looping through the list
of recipients and delivery is ok for some but not for others, how can
that be done?
I mean, if I spit out a 500 error, won't that disallow delivery for ALL
recipients? Is it possible to selectively allow some recipients and
disallow others?
If you spit out a 500 error the sender will assume that all addresses got
rejected, no matter what you end up doing with the message itself. That's
how SMTP works.
There is a way to do this with local accounts, using the localmailfilter API
(which is a bit difficult to get right, and uses a completely different
filtering interface). But this uses a slightly modified SMTP result format
that only Courier properly understands, and reports on.
See http://www.courier-mta.org/draft-varshavchik-exdata-smtpext.txt for a
brief writeup. I identified this design flaw with SMTP over three years
ago. I wrote it up and floated this idea, but my impression was that nobody
else really cared about it, and the effort to push this through would simply
be not worth the agita.