[Mimedefang] E-mail REJECT problem
Myth Guy
mythhtpc at gmail.com
Wed Jul 23 06:37:04 EDT 2008
Thanks for the reply Paul. I get what you are saying, but the code I
posted is not exactly what I use. I match records from a database
(and I did not want to post that code since it will complicate
matters). The point is that I do match hallmark.com and the REJECT
command is executed. The problem is that the REJECT does not seem to
stop the e-mail.
Doing some futher testing...
On Wed, Jul 23, 2008 at 10:55 AM, Paul Murphy
<Paul.Murphy at argentadiscovery.com> wrote:
> Your log extract shows the problem:
>
>> Jul 23 09:38:21 relay sendmail[7747]: m6N7cA8O007747:
>> from=<postcards at hallmark.com>, size=0, class=0, nrcpts=1, proto=ESMTP,
>> daemon=MTA, relay=11.microlink.zm [193.219.229.11] (may be forged)
>
> You check for "hallmark.com" with nothing after the ".com" part:
>
>> if ($sender =~ /hallmark\.com$/) {
> return ('REJECT', "Connection Refused: Relay Server ($ip) blacklisted");
>
> The message is coming from "<postcards at hallmark.com>" - it has angle brackets on the sender address, which your test fails to take account of - remove the $ and all should be well unless someone has a domain which contains this string (unlikely). Alternatively, remove any brackets from the sender address before testing.
>
> Best Wishes,
>
> Paul.
>
>
>
> _______________________________________________________________________
> Argenta Discovery Ltd, 8-9 Spire Green Centre, Harlow, Essex, CM19 5TR
> Registered in England No. 3671653
> _______________________________________________________________________
>
> _______________________________________________
> 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