So, envelope callbacks work great:
mail from: foobar@???
250 OK
rcpt to: me@???
550-Verification failed for <foobar@???>
550-Called: 64.4.55.135
550-Sent: RCPT TO:<foobar@???>
550-Response: 552 Requested mail action aborted: exceeded storage allocation
550 Sender verify failed
However, header callbacks doesn't seem to output great error messages.
First I tried:
354 Enter message, ending with "." on a line by itself
From: merlin@???
To: me@???
test
.
550 Administrative prohibition
Mmmh, it's not blacklisted, gsafsdf.merlins.org is just a bad domain.
Ok, so I added a message error, like this:
deny !verify = header_sender/callout=90s
message = Header sender couldn't be verified
but now:
From: foobar@???
To: merlin@???
test
.
550 Header sender couldn't be verified
even though exim knows the reason for the failure:
SMTP<< 552 Requested mail action aborted: exceeded storage allocation
SMTP>> QUIT
deny: condition test succeeded
SMTP>> 550 Header sender couldn't be verified
For header syntax checking, same thing:
From: merlin <merlin@va
To: merlin
.
550 Administrative prohibition
but the code knows the real reason:
H=nat-hdqt.vasoftware.com [198.186.202.17]:56631 F=<user@???> rejected after DATA: '>' missing at end of address: failing address in "From" header is: merlin <merlin@va
If I need to have an error message that gives a better error (header sender
domain not in DNS or callback to header sender failed, remote mail server
said: foo, or what syntax checking failed), would that be code hacking?
Thanks
Marc
--
Microsoft is to operating systems & security ....
.... what McDonalds is to gourmet cooking
Home page:
http://marc.merlins.org/ | Finger marc_f@??? for PGP key