On Sun, Feb 8, 2009 at 1:24 AM, Ask Bjørn Hansen <a...@develooper.com> wrote: > > > > Look in data_respond in lib/Qpsmtpd/SMTP.pm -- it would be pretty easy to > add. Look for the line that says "$in_header = 0;" > > I'm not sure it'd be useful though, because the only way you can avoid > receiving the data anyway at that point would be just dropping the > connection -- and well behaved mailers will just try and try again after > that.
Not true. Advenge smtpd version 1 had a "receive and ignore" state where it politely absorbed and threw out data until the trailing dot before issuing the 450. Tarpitting could happen, or at least lowering of priority. Another possibility, for per-recipient filtering stuff, is to closely examine the beginning of a message, in case your magic phrases aren't restricted to headers (such as subject) -- "In 2005, Ellen MacArthur became the fastest person to sail round the globe, but little was made of Nigel Irens, who engineered her trimaran." -- James Dyson