Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Nov 2008
Restrict outgoing relay by ip address
As one of our security layers, we restrict authorization to send/relay email via our mail server from approved IP networks only. Whether this is a perfect method or not is irrelevant as it is but one of our security layers and we do not need to allow relaying from the world.
I need to be able to restrict the sending of outgoing email via our servers by IP but need to allow the receipt and delivery of inbound email from any IP.
I have spent over 2 weeks scouring the web, reading through the Exim specs and doc and other resources and have tried many many ways to achieve this goal but to no success yet and am becoming very desperate. I will need to give up on Exim if I cannot achieve this and have already invested a huge amount of time into this.
* Restrict ability to relay outgoing email from our servers by IP (Normal encrypted TLS username/password also required of course)
* Allow inbound delivery of email from any IP
Does anyone know whether this can be done and if so how?
I would truly appreciate any help on this.
- Join Date
- May 2008
- NYC, moved from KS & MO
I never use exim before but I am quite familiar with postfix and the common way to specify which ip(s) are allowed to relay is like
mynetworks=127.0.0.0/8, 192.168.1.0/24, 184.108.40.206/32 (just a makeup ip)
I looked up the exim doc and I think you can do it in a similar way
hostlist relay_hosts = 192.168.1.0/24 : 220.127.116.11/32 : 18.104.22.168/32
( let's assume you want to allow relay access your LAN and from ips 22.214.171.124 and 126.96.36.199 )