Lindsay Haisley writes:
Thus spake Lindsay Haisley on Fri, Feb 03, 2006 at 10:32:08AM CSTThus spake Sam Varshavchik on Wed, Feb 01, 2006 at 08:25:11PM CST > Lindsay Haisley writes:> > >I would like to be able to have courier return a temporary (4xx) error to> >corresponding servers with a custom failure message for one and only one> >address. There seem to be lots of ways to generate a permanent (5xx) > >error, > >or to generate a 4xx error for the entire server, but I can't find that > >will> >generate a 4xx error for a single address, plus allow me to customze the > >error message. Is there any way to do this?> > No, I don't think there is a way to do this.Yes there is. Dave Platt pointed me to the solution: > Set up a .mailfilters/rcptfilter-WHATEVER script file for this ID.> > Have it simply do an > > echo "451 fee fie foe fam, I smell the blood of SMTP spam"> EXITCODE=100 I was thinking that _any_ EXITCODE from rcptfilter other than 0 or 99 returned a 5xx error, however apparently this isn't the case. The above code quotes the echoed string directly to the SMTP dialog without prefixing any other error code, so whatever the number is at the beginning of this string will be the error returned by the SMTP session.Sam, you're working too hard! You're trying to do the work of a whole development team <grin!>. This has actually been possible for quite a while. In submit.C, function getrcpts(...):
I interpreted your initial question as asking whether a specific _sender_ address can be handled in this manner.
pgpu62AfYfhul.pgp
Description: PGP signature
