Re: [exim] Restrict incoming mail to spam filter and authent…

Pàgina inicial
Delete this message
Reply to this message
Autor: Kirill Miazine
Data:  
A: exim-users
Assumpte: Re: [exim] Restrict incoming mail to spam filter and authenticated users
* Craig Thompson via Exim-users [2018-10-10 18:11]:
[...]
> We still are looking for the right code to use in Exim to limit incoming mail to 
>
> 1) the domains we serve -- have that
>
> 2) authenticated SMTP users who use Outlook or whatever
>
> 3) just ONE other IP address, the spam filter for our network
>
> Ideally, drive by spammers and anyone attempting to send mail TO our
> users would be blocked completely from accessing the SMTP server with
> a message like, "This server does not accept mail directly.  Use the
> MX server."
>
> Can anyone offer some advice on what to use in the current version of
> Exim?  The solution above used to work, but in the iteration of
> versions, it seems to have been outdated somehow.  If we're simply
> putting things in the wrong place now, finding the right location
> would be appreciated.


If you want your Outlooks to connect, you could put this in RCPT ACL:

    deny
        message = This server does not accept mail directly. Use the MX server.
       !hosts = IP-OF-MX-HOST-HERE


This will deny for all hosts which are not that single IP address.

And where to put it will depend on the rest of your ACL configuration.
It would be helpful if you shared it.

Greetz
Kirill