Configure exim to listen on port 80

blaszlo

Verified User
Joined
Jun 9, 2008
Messages
116
I have a unique challenge and I'm hoping someone can help. I would like to configure exim to listen on port 80 so that I can use it to send email alerts from servers within an organization that only allows 80 and 443 communication. Because of this restriction, it blocks the alternative port 587 as well.

Obviously on the default server IP, port 80 is bound to Apache. Is there some way for me to configure Exim to listen on port 80 on it's own IP without conflicting with Apache? Surely I cannot be the first person to encounter this problem, with security in networks everywhere increasing and blocking default ports.

Thanks in advance!
 
You want to use it for sending mail out only? Cause theres no way it will ever work for incoming mail. Of course you can bind apache exim to any port you want. You will have to turn off apache on that ip though. Im sure you can find out how to bind both of these services to ports via google.
 
No, I want Exim to listen on port 80 (incoming mail) - not sure why it would "never work". In the scenario I gave above, I have Windows Servers in a highly secure network that are only allowed outbound communications for ports 80 and 443 - hence I want to configure my Exim server that is not in that network to listen on port 80, hence their port restrictions would have no effect on me setting up email alerts.
 
How are servers around the world going to know your server is running on port 80?

Thats like changing the apache port and expecting people to know they have to enter :8080 to visit your site.
 
Thats my point exactly - I do not need the world to know, I am the only one that needs to know. Also, I do not want to configure the entire server to act this way, just a single IP on this server.
 
Well then bind it to the ip and port you want and remove apache listening on that ip and port.
 
I've already established thats what I need to do, but I am not sure how to tell Exim to listen on port 80 ONLY on a single IP and not on the rest - to my knowledge the exim.conf file is server-wide and cannot be changed to affect only a single IP; and if there is a way, I'm just not sure how to actually do it.

I know for apache there is a seperate httpd.conf for each domain I can modify to achieve this
 
This was exactly what I was looking for. I swear I researched this before posting. Thanks!!!

Code:
local_interfaces = 0.0.0.0 : 12.34.56.7.80
Tells Exim to listen on the default port specified in daemon_smtp_ports (port 25) and to listen on port 80 for the 12.34.56.7 IP.

I'll test this out today and see if it works.
 
Back
Top