[Exim] question about ACL

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Liu Shuai
Datum:  
To: exim-users
Betreff: [Exim] question about ACL
Hi All,

I am trying to set up exim so that it only allow SMTP connections from
certain IPs. Say, I
want to serve only smtp requests sent from 12.34.56.* and 23.45.67.*


I changed the accept hosts line in the following section

#!!# ACL that is used after the RCPT command
check_recipient:
# Exim 3 had no checking on -bs messages, so for compatibility
# we accept if the source is local SMTP (i.e. not over TCP/IP).
# We do this by testing for an empty sending host field.
accept hosts = :

to be
accept  hosts = 12.34.56.*
        hosts = 23.45.67.*
        endpass


But it didn't work, I can still send e-mail from ip outside those two
subnet. What am I doing wrong?

Thank you for any suggestion.

LS