[Mimedefang] md_check_against_smtp_server
Bill Maidment
bill at maidment.com.au
Mon Aug 2 03:41:19 EDT 2004
Hi
I'm trying to use md_check_against_smtp_server to check the email
recipient against valid users on another mail server.
The problem I have is that invalid recipients cause the incoming email
to continually bounce between my two mail servers. Valid recipients work
fine!
Any clues as to what I've missed/got wrong?
I have this in sendmail.mc on the other mail server. Could this be the
cause?
define(`SMART_HOST',`mail.maidment.com.au')
mimedefang-filter snippet and email sample follow:
#***********************************************************************
sub filter_recipient ($$$$$$$$$) {
my($recip, $sender, $ip, $host, $first, $helo,
$rcpt_mailer, $rcpt_host, $rcpt_addr) = @_;
return md_check_against_smtp_server($sender, $recip,
"mail.maidment.com.au",
"video.maidment.com.au");
}
>Date: Mon, 2 Aug 2004 15:15:07 +1000
>>From: Mail Delivery Subsystem <MAILER-DAEMON at maidment.com.au>
>>To: <SRS0=8uXdd7d2=KY=elgas.com.au=rudy.halim at maidment.com.au>
>>Subject: Returned mail: see transcript for details
>>Auto-Submitted: auto-generated (failure)
>>X-Spam-Score: -0.074 ()
BAYES_01,IS_A_BOUNCE,L_hR_NOREPLY,MY_BOUNDARY3,MY_MTPARENS
>>X-Scanned-By: MIMEDefang 2.42
>>X-Scanned-By: MIMEDefang 2.45
>>
>>The original message was received at Mon, 2 Aug 2004 15:13:33 +1000
>from mail.maidment.com.au [192.168.2.2]
>>
>> ----- The following addresses had permanent fatal errors -----
>><testing@[192.168.2.5]>
>> (reason: 554 5.4.6 Too many hops)
>> (expanded from: <testing@[192.168.2.5]>)
>>
>> ----- Transcript of session follows -----
>>554 5.4.6 Too many hops 26 (25 max): from
<SRS0=8uXdd7d2=KY=elgas.com.au=rudy.halim at maidment.com.au> via localhost,
to <testing@[192.168.2.5]>
>>Reporting-MTA: dns; video.maidment.com.au
>>Arrival-Date: Mon, 2 Aug 2004 15:13:33 +1000
>>
>>Final-Recipient: RFC822; testing@[192.168.2.5]
>>X-Actual-Recipient: RFC822; testing at mail.maidment.com.au
>>Action: failed
>>Status: 5.4.6
>>Diagnostic-Code: SMTP; 554 5.4.6 Too many hops
>>Last-Attempt-Date: Mon, 2 Aug 2004 15:15:07 +1000
>>Return-Path: <SRS0=8uXdd7d2=KY=elgas.com.au=rudy.halim at maidment.com.au>
>>Received: from mail.maidment.com.au (mail.maidment.com.au [192.168.2.2])
>> by video.maidment.com.au (8.13.0/8.13.0) with ESMTP id i725DXwF032594
>> for <testing@[192.168.2.5]>; Mon, 2 Aug 2004 15:13:33 +1000
>>Received: from video.maidment.com.au (video.maidment.com.au
[192.168.2.5])
>> by mail.maidment.com.au (8.13.0/8.13.0) with ESMTP id i725DRBR013005
>> for <testing at mail.maidment.com.au>; Mon, 2 Aug 2004 15:13:27 +1000
>>Received: from mail.maidment.com.au (mail.maidment.com.au [192.168.2.2])
>> by video.maidment.com.au (8.13.0/8.13.0) with ESMTP id i725DV5U032585
>> for <testing@[192.168.2.5]>; Mon, 2 Aug 2004 15:13:31 +1000
etc.......
More information about the MIMEDefang
mailing list