Exim and allow certain ips to send

dzamanakos

Well-Known Member
Feb 15, 2014
61
4
58
cPanel Access Level
Root Administrator
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,
 

dzamanakos

Well-Known Member
Feb 15, 2014
61
4
58
cPanel Access Level
Root Administrator
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.