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.

My end goal is to let postfix handle the address verification, while another process handles the rejection. A spamassassin plugin (or another bit of software) could query the address_verify_map (or mail logs) and then act accordingly.

Comments?

DO NOT bounce mail after you've accepted it. Any after-queue content_filter MUST NOT reject mail. This causes backscatter and will get you blacklisted.

Seems like I've seen some milters that do address verification, maybe some of those integrate with SpamAssassin.


--
Noel Jones

Reply via email to