Re: [Exim] question about ACL

Pàgina inicial
Delete this message
Reply to this message
Autor: Wakko Warner
Data:  
A: Liu Shuai
CC: exim-users
Assumpte: Re: [Exim] question about ACL
> 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.*


So you do not expect mail from the internet?

> 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


This is impossible. try:
hosts = 12.34.56.0/24 : 23.45.67.0/24

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


--
Lab tests show that use of micro$oft causes cancer in lab animals