Exim and allow certain ips to send

dzamanakos

Well-Known Member
Feb 15, 2014
79
6
58
Larisa / Greece
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,
 

kernow

Well-Known Member
Jul 23, 2004
1,031
62
178
cPanel Access Level
Root Administrator
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'
 
  • Like
Reactions: cPRex

dzamanakos

Well-Known Member
Feb 15, 2014
79
6
58
Larisa / Greece
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.