Re: [exim] MySQL - Blocking senders at RCPT time

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jan Ingvoldstad
Date:  
À: thunder
CC: exim users
Sujet: Re: [exim] MySQL - Blocking senders at RCPT time
On Wed, Aug 2, 2017 at 2:49 PM, <thunder@???> wrote:
> Hi Maruis,
>
> I have data like this in the table:
>
> | 21 | *.date                               |
> | 22 | *.top                                |
> | 23 | *.us                                 |

>
> Would it still work?


For use with "deny senders", you need e-mail addresses, even though
they may contain wildcards.

So your data would probably need to look like this if you want to use that:

| 21 | *@*.date                               |
| 22 | *@*.top                                |
| 23 | *@*.us                                 |


Alternatively, you can keep your database entries, but match with
sender_domains instead, as domainlists also may contain wildcards:

deny    sender_domains        = +blockedsenders
           message        = Sender $sender_address blocked
           logwrite = :main,reject: Sender $sender_address from
blacklisted domain $sender_host_name (IP: $sender_host_address)


PS: the above is untested.
--
Jan