[Dovecot] Filtering IP address connections ?

fakessh at fakessh.eu fakessh at fakessh.eu
Mon Oct 18 15:49:50 EEST 2010


Le 18.10.2010 14:32, Leonardo Rodrigues a écrit :
> 
>     why not make things easier and use your OS packet filter for that ?
> iptables for linux, for example
> 
> Em 18/10/2010 10:22, Frank Bonnet escreveu:
>>  Hello
>>
>> Is it possible to refuse connections from some IP address
>> in Dovecot configuration ?
>>
>>
> 
> 
with sieve is also possible: I give an example

require
["fileinto","regex","comparator-i;ascii-numeric","reject","relational"];

if anyof (
header :contains "Received"
             [ "[4.63.*.*",
              ]
{
reject text:
I am not taking mail from you, and I don't
want your birdseed, either!
it is UBE UCE no talking to me please!
see you letter ?
.
      ;
}
-- 
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x092164A7
gpg --keyserver pgp.mit.edu --recv-key 092164A7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x092164A7.asc
Type: application/pgp-keys
Size: 35055 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20101018/89229e3b/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://dovecot.org/pipermail/dovecot/attachments/20101018/89229e3b/attachment-0003.bin 


More information about the dovecot mailing list