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 <[EMAIL PROTECTED]> >>To: <[EMAIL PROTECTED]> >>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 -----
>><[EMAIL PROTECTED]>
>>    (reason: 554 5.4.6 Too many hops)
>>    (expanded from: <[EMAIL PROTECTED]>)
>>
>>   ----- Transcript of session follows -----
>>554 5.4.6 Too many hops 26 (25 max): from

<[EMAIL PROTECTED]> via localhost,
to <[EMAIL PROTECTED]>

>>Reporting-MTA: dns; video.maidment.com.au
>>Arrival-Date: Mon, 2 Aug 2004 15:13:33 +1000
>>
>>Final-Recipient: RFC822; [EMAIL PROTECTED]
>>X-Actual-Recipient: RFC822; [EMAIL PROTECTED]
>>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: <[EMAIL PROTECTED]>
>>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 <[EMAIL PROTECTED]>; 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 <[EMAIL PROTECTED]>; 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 <[EMAIL PROTECTED]>; Mon, 2 Aug 2004 15:13:31 +1000



etc.......

_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to