> Perhaps I've missed a point, but ...
>
> I am using sender callouts on one of my secondary MXes but apparently
> invalid addresses still go through, like this one below.
> This message is then passed to my primary MX, failed, then a bounce
> cannot be sent to the originator ;-)
>
> Return-path: <6k9kv0t244@???>
> Received: from longonot.wananchi.com ([62.8.64.2])
> by ns2.wananchi.com with esmtp (Exim 4.14 #9 (FreeBSD))
> id 19CXMQ-000COp-Tg
> for <jtt@???>; Mon, 05 May 2003 07:13:54 +0300
> Received: from 12-243-61-195.client.attbi.com ([12.243.61.195])
> by longonot.wananchi.com with smtp (Exim 4.14)
> id 19CXLP-0005Iq-N0
> for jtt@???; Mon, 05 May 2003 07:12:52 +0300
> Received: from kzhk.cygy.com ([91.250.69.160]) by 12-243-61-195.client.attbi.com with ESMTP id DEA690DFA9C; Sun, 23 Feb 2003
> 13:57:
> 09 +0500
> Message-ID: <zcd53g$811-2q2@???>
> From: "Earl Kiser" <6k9kv0t244@???>
> To: jtt@???
> Subject: Attn: NORTON SYSTEMWORKS 2003 CLEARANCE SALE! lu
> Date: Sun, 23 Feb 03 13:57:09 GMT
> X-Priority: 1
> X-MSMail-Priority: High
> X-Mailer: MIME-tools 5.503 (Entity 5.501)
> MIME-Version: 1.0
> Content-Type: multipart/alternative;
> boundary="__.AC1F99__"
>
> My callout config:
On which machine? longonot.wananchi.com or mail.wananchi.com?
> check_recipient:
>
> accept hosts = :
>
> accept hosts = +relay_from_hosts
>
> accept domains = +local_domains
> local_parts = postmaster
>
> accept hosts = 127.0.0.1/8
>
> deny message = Unroutable sender address
> log_message = Unroutable sender address while callout verify
> !verify = sender/callout=defer_ok,random,20s
>
> ...
>
> accept
>
> Where could my mistake???
I'd say you need to put the callout just after the accept for hosts = :