[Mimedefang] E-mail REJECT problem

Myth Guy mythhtpc at gmail.com
Wed Jul 23 09:45:05 EDT 2008


Thanks for the DISCARD tip.... I'll test and implement immediately.
Note that currently I am rejecting all the recipients.  Thats what is
so confusing...  Here follows a test from a blacklisted server
196.xx.xx.112.  Note all the recipients are rejected (I'm caching the
RBL result).

[root at test ~]# telnet relay.xxx.com 25
Trying 196.xx.xx.110...
Connected to relay.xxx.xom (196.21.xx.xx).
Escape character is '^]'.
220 relay.xxx.com ESMTP
EHLO xxx.com
250-relay.xxx.com Hello test.xxx.com [196.xx.xx.112], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 20485760
250-DSN
250-ETRN
250-AUTH LOGIN
250-DELIVERBY
250 HELP
MAIL FROM: test at test.xxx.com
250 2.1.0 test at test.xxx.com... Sender ok
RCPT TO: user at xxx.com
554 5.7.1 Connection Refused: Relay Server (196.xx.xx.112) blacklisted
RCPT TO: pop at xxx.com
554 5.7.1 Connection Refused: Relay Server (196.xx.xx.112) blacklisted
RCPT TO: aaa at xxx.com
554 5.7.1 Connection Refused: Relay Server (196.xx.xx.112) blacklisted
DATA
503 5.0.0 Need RCPT (recipient)



On Wed, Jul 23, 2008 at 3:30 PM, Kevin A. McGrail <kmcgrail at pccc.com> wrote:
>> Now I know one should not do RBL rejection in filter_recipient, since
>> the message will be rejected for every recipient (where a once off
>> rejection would have been far more efficient).
>
> No, this is the cruz of Stefen's point.
>
>
>      filter_recipient  must  return  a  two-to-five  element list whose
> interpretation is the same as for fil­
>      ter_sender.  Note, however, that if filter_recipient returns 'DISCARD',
> then the entire message  for  all
>      recipients is discarded.  (It doesn't really make sense, but that's how
> Milter works.)
>
> I believe you are returning REJECT therefore the rejection only applies to
> ONE recipient.  You need to keep looping and checking all recipients and I'm
> guessing that's where your logic error remains.
>
> Regards,
> KAM
> _______________________________________________
> NOTE: If there is a disclaimer or other legal boilerplate in the above
> message, it is NULL AND VOID.  You may ignore it.
>
> Visit http://www.mimedefang.org and http://www.roaringpenguin.com
> MIMEDefang mailing list MIMEDefang at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
>



More information about the MIMEDefang mailing list