Email won't sent Exim daemon_smtp_ports = 26 : 587

brooky

New member
Joined
Oct 10, 2024
Messages
7
Hi Guys,

My host Vultr block port 25. As a result I've set the ports to 26 and 587 and allowed these in the firewall.

exim.variables.conf.custom
Code:
disable_ipv6=true
daemon_smtp_ports = 26 : 587

Code:
[root@xxx]#cd /usr/local/directadmin/custombuild
[root@xxx]# ./build exim_conf
Restarting exim.

The mail queue log shows:

2024-10-10 15:32:22 Received from [email protected] U=xxx P=local S=10207 T="Test Email"
2024-10-10 15:34:34 H=gmail-smtp-in.l.google.com [74.125.206.27] Connection timed out
2024-10-10 15:36:45 H=alt1.gmail-smtp-in.l.google.com [142.250.153.27] Connection timed out

What else can I try? I don't understand why I'm still having problems having by passed port 25.
 
It's a trap - to override the ports, you'll have to edit exim.variables.conf directly.

Fun facts:
- If you disable daemon_smtp_ports in exim.variables.conf and put them in exim.strings.conf.custom instead, it'll work.
- If you disable daemon_smtp_ports in exim.variables.conf and put them in exim.variables.conf.custom instead, it won't.
 
Hello,

The ports specified in daemon_smtp_ports are for incoming connections only, and they do not effect outgoing connections and won't make your server to try another port when sending to Gmail.

Related:

- https://docs.directadmin.com/other-...m-to-listen-on-another-port-on-top-of-port-25

If your server provider blocked outgoing connections to remote SMTP ports, you will need to use a remote SMTP relay, smarthost o non-standart port.

Related:

- https://docs.directadmin.com/other-...ing-outbound-email-through-remote-mail-server

daemon_smtp_ports = 26 : 587
 
Interesting - learning something new every day. But then my post applies to the tls_on_connect_ports setting. ;)

To override tls_on_connect_ports, you'll have to edit exim.variables.conf directly.

Fun facts:
- If you disable tls_on_connect_ports in exim.variables.conf and put it in exim.strings.conf.custom instead, it'll work.
- If you disable tls_on_connect_ports in exim.variables.conf and put it in exim.variables.conf.custom instead, it won't.
 
To override tls_on_connect_ports, you'll have to edit exim.variables.conf directly.

It is not a list of ports to be used with outgoing connections still. By default when sending emails Exim will use TCP:25 port.

tls_on_connect_ports specifies SSMTP (SMTPS) ports and it is about incoming connections.

- https://www.exim.org/exim-html-current/doc/html/spec_html/ch-main_configuration.html

If the tls_on_connect_ports option is set to a list of port numbers or service names, connections to those ports must first establish TLS, before proceeding to the application layer use of the SMTP protocol.

- https://www.exim.org/exim-html-curr...daemon_and_the_use_of_network_interfaces.html
 
Ok, I get it. He wrote "host" but I was assuming he still meant incoming - I may have misread that. Either way, trying to override the ports via exim.variables.conf.custom will never work, if he meant incoming, it's for the reasons I stated and if he meant outgoing, it's for the reasons you stated. 😄

What leaves me confused now is that, on my server, to specify a non-standard port for incoming SMTP, I need to add the port to tls_on_connect_ports and not to daemon_smtp_ports (I originally added it to both, but after omitting it from daemon_smtp_ports it still works).
 
Last edited:
Back
Top