Allow relay from IP

In my previous setup a backend server relays mail through my cPanel server.
I have now migrated the cPanel account to hestia, but I can not figure out how to allow relay in hestia to my backend server IP.

I have tried setting the ip of my backend server todc_relay_nets= in /etc/exim4/update-exim4.conf.conf and running update-exim4.conf but that did not work.

I have also tried changing hostlist relay_from_hosts = 127.0.0.1 to hostlist relay_from_hosts = 127.0.0.1;<my other ip> in /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs but that did not work either.

I figured it out, the correct separator is :, not ;

So to allow relay from IP 1.2.3.4 I changed
hostlist relay_from_hosts = 127.0.0.1
to
hostlist relay_from_hosts = 127.0.0.1 : 1.2.3.4
in /etc/exim4/exim4.conf.template and then ran update-exim4.conf and restarted the exim service.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.