[exim] exim still accepting email after 550 from acl_check_h…

Pàgina inicial
Delete this message
Reply to this message
Autor: Marius Stan
Data:  
A: <exim-users@exim.org>
Assumpte: [exim] exim still accepting email after 550 from acl_check_helo
Hi all,

I have this simple setup:

acl_smtp_helo = acl_check_helo

begin acl

acl_check_helo:

   deny  message       = Your host did not present HELO/EHLO greeting.
         log_message   = SPAM remote host did not present HELO/EHLO 
greeting.
         condition     = ${if def:sender_helo_name {false}{true}}


   deny  message       = WE DON'T RELAY
         log_message   = SPAM remote host has blacklisted HELO.
         condition     = 
${lookup{$sender_helo_name}lsearch{/etc/exim/reject/helo}{yes}{no}}


accept

It works as expected, except that if I insist after the first 550 error,
the message still goes through...

Here's the session:
# telnet mail.asesoft.ro 25
Trying 46.108.58.132...
Connected to mail.asesoft.ro.
Escape character is '^]'.
220 mail.asesoft.ro ESMTP
helo 192.168.96.20
550 WE DON'T RELAY
mail from: me@???
250 OK
rcpt to: me@???
250 Accepted
data
354 Enter message, ending with "." on a line by itself
hello
.
550 Message scored 5.2 spam points.
quit
221 mail.asesoft.ro closing connection
Connection closed by foreign host.


How can I overcome this ?

Thanks,
Marius