email sending without authentication, only based on whitelisted IPs

Remitur

Verified User
Joined
May 11, 2018
Messages
71
Location
Sežana (Slovenia)
I wonder if (and how...) it's possible to configure on DirectAdmin an SMTP service, by which it's not required the single user to authenticate sending using his own credential, but based only on his own IP (that's to say: all the users who connect using an Ip which is in a white-list can send email(s), without further authentication.

Is it somehow possible? :confused:
 
Hello,

Add your trusted IPs into relay_hosts of /etc/exim.variables.conf.custom

See

/etc/exim.variables.conf:

Code:
hostlist relay_hosts=


/etc/exim.variables.conf.default:

Code:
hostlist relay_hosts=


update it in

/etc/exim.variables.conf.custom:

Code:
hostlist relay_hosts=1.2.3.4 : 2.3.4.5.6 : 3.4.5.6

where IPs 1.2.3.4, 2.3.4.5.6, 3.4.5.6 are an example.

and run

Code:
./build exim_conf
 
Back
Top