Exim and allow certain ips to send
Hi, i would like some info about exim and how i can limit the ips that can send emails.
My scenario is :
Server A, cpanel
Server B, custom server that sends mails with smtp through server A (A as smarthost).
I would like only the ip of server B to be allowed to send emails.
I could allow through my firewall only B ip to connect to 25/587/465 ports, but other problems will appear (a third mail server cannot connect to A to see if exists, smtp banner etc).
Is there a way to setup exim to allow sending only from B ip and accept connections from any host to allow actions like helo, telnet to mailserver ports etc ?
thank you in advance,
-
Why not do it through cpanel on a per account basis? you can stop users sending/receiving mail in username>>>email accounts>>manage scroll down to 'Restrictions' 0 -
Would Host Access Control do this, where you'd whitelist the SMTP service to one IP and deny to all others ? 0 -
Thank you for your answers, the restrictions per account is only allow/deny, cant set any ip. The Host Access Control is like the firewall, it wont allow access to mailserver. I want to have a rule only for who sends email, not who can connect to exim. 0 -
If that is the case, you may need to use custom filters to perform that type of work. 0
Please sign in to leave a comment.
Comments
4 comments