Jason Wohlford wrote:
On Nov 21, 2008, at 4:37 PM, Noel Jones wrote:
Jason Wohlford wrote:
On Nov 15, 2008, at 1:36 PM, Noel Jones wrote:
Jason Wohlford wrote:
Is there any way to perform an address verification on a message
and then add a header to the message? I'd like to let postfix do
address verification and then report the result to spamassassin.
Suggestions?
Cheers,
Jason
Postfix doesn't have a mechanism to record the results of the
address probe in the received message.
Your best alternative may be a sender verification add-on for
SpamAssassin; google around for that. Sometimes also called sender
call back.
Or you could use a postfix policy service with this feature - but
you might have to write your own or modify an existing one.
I see it is possible to set the unverified_recipient_reject_code to
250. Does this mean postfix will do address verification and then let
the original message pass?
If an address probe returns a 550 status, postfix will still accept
the mail. If the probe fails (couldn't contact the sender's MX)
postfix will still defer the mail with a 450 error.
I'm not following. I know I've done verification before and it
definitely rejects mail. Would you be so kind as to elaborate?
You were discussing using 250 as the
unverified_recipeint_reject_code. If the result of the probe
is 550 (well, 5xx really, meaning mail not accepted), then
with unverified_recipient_reject_code=250 the mail will be
accepted anyway. However, if the probe fails (eg. could not
contact the MX server), the mail will not be accepted, it will
be deferred.
http://www.postfix.org/postconf.5.html#unverified_recipient_reject_code
Postfix 2.6 (still in development)introduces a setting to
accept mail regardless of the result of the verification probe.
http://www.postfix.org/postconf.5.html#unverified_recipient_defer_code
But regardless, if you want to evaluate the results of the
verification outside of postfix, you really need to do the
verification probes outside of postfix.
--
Noel Jones