Hello i am unable send email after configure per domain relay. If anyone pls help me out to configure SMTP Relay per domain.
What does Exim’s log say? The log is here /var/log/exim4/mainlog
here is the log message ::
2026-08-04 09:20:48 1wr5hw-00000001HmK-2GNg <= [email protected] H=(webmail.hcp.m.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=575 [email protected] 2026-08-04 09:20:48 1wr5hw-00000001HmK-2GNg == smwadek@gmail.com R=send_via_swift T=swift_smtp defer (-54): retry time not reached for any host for ‘gmail.com’
That’s not the first message:
Show the output of this command:
exigrep 1wr5hw-00000001HmK-2GNg /var/log/exim4/mainlog*
Also, did you modify /etc/exim4/exim4.conf.template?
here is the output :
exigrep 1wr5hw-00000001HmK-2GNg /var/log/exim4/mainlog*
2026-08-04 09:20:48 1wr5hw-00000001HmK-2GNg <= [email protected] H=(webmail.hcp.m.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=575 [email protected]
2026-08-04 09:20:48 1wr5hw-00000001HmK-2GNg == [email protected] R=send_via_swift T=swift_smtp defer (-54): retry time not reached for any host for ‘gmail.com’
2026-08-04 09:21:50 1wr5hw-00000001HmK-2GNg == [email protected] R=send_via_swift T=swift_smtp defer (-42): authentication required but no common mechanisms were found
2026-08-04 09:23:26 1wr5hw-00000001HmK-2GNg == [email protected] R=send_via_swift T=swift_smtp defer (-42): authentication required but no common mechanisms were found
2026-08-04 09:31:07 1wr5hw-00000001HmK-2GNg == [email protected] R=send_via_smtp_relay T=smtp_relay_smtp defer (-54): retry time not reached for any host for ‘gmail.com’
2026-08-04 10:01:07 1wr5hw-00000001HmK-2GNg == [email protected] R=send_via_smtp_relay T=smtp_relay_smtp defer (-54): retry time not reached for any host for ‘gmail.com’
2026-08-04 10:31:10 1wr5hw-00000001HmK-2GNg H=gmail-smtp-in.l.google.com [192.178.158.26] TLS error on connection (recv): The TLS connection was non-properly terminated.
2026-08-04 10:31:10 1wr5hw-00000001HmK-2GNg => [email protected] R=dnslookup T=remote_smtp H=gmail-smtp-in.l.google.com [192.178.158.26] X=TLS1.3:ECDHE_X25519__ECDSA_SECP256R1_SHA256__AES_256_GCM:256 CV=yes K C=“250 2.0.0 OK 41be03b00d2f7-cbe39f14bf0si15222997a12.215 - gsmtp”
2026-08-04 10:31:10 1wr5hw-00000001HmK-2GNg Completed
after remove the DOMAIN BASED SMTP RELAY msg delivered successfully . No template remain default
I see two things:
1.- Your server sent the mail directly once you removed the smtp relay.
2.- You modified Exim’s conf and you are not using the default Hestia’s conf.
Bro I have very little knowledge in Exim.
My colleague did some changes after its not working, then revert again to default file.
Anyway how could i will make it work & possible to share my config files.
If you are now using the default exim’s conf for Hestia, then just configure the smtp relay in Hestia with the data provided by swift and try again. I want to see the first message in the log when you try to send again a mail using the relay. Also, your provider should let you know the changes you should do to spf, dkim selector…
Here is the log::
exigrep 1wrBu9-00000001S7X-1WNj /var/log/exim4/mainlog*
+++ 1wrBu9-00000001S7X-1WNj has not completed +++
2026-08-04 15:57:49 1wrBu9-00000001S7X-1WNj <= [email protected] H=(webmail.swift.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=589 [email protected]
2026-08-04 15:57:49 1wrBu9-00000001S7X-1WNj == [email protected] R=send_via_smtp_relay T=smtp_relay_smtp defer (-54): retry time not reached for any host for ‘gmail.com’
Could you please send a mail to another external domain that is not gmail.com and show the log again for that message?
2026-08-04 17:08:59 1wrD11-00000001Tqn-07kx <= [email protected] H=(webmail.swift.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=575 [email protected]
2026-08-04 17:08:59 1wrD11-00000001Tqn-07kx == [email protected] R=send_via_smtp_relay T=smtp_relay_smtp defer (-54): retry time not reached for any host for ‘yahoo.com’
2026-08-04 17:10:09 1wrD29-00000001Tx4-3ZkR <= [email protected] H=(webmail.swift.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=567 [email protected]
2026-08-04 17:10:10 1wrD29-00000001Tx4-3ZkR == [email protected] R=send_via_smtp_relay T=smtp_relay_smtp defer (-54): retry time not reached for any host for ‘sel.com.bd’
2026-08-04 17:11:44 1wrD3g-00000001TxW-3UWs <= [email protected] H=(webmail.swift.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=604 [email protected]
2026-08-04 17:11:45 1wrD3g-00000001TxW-3UWs == [email protected] R=send_via_smtp_relay T=smtp_relay_smtp defer (-54): retry time not reached for any host for ‘mj-group.com.bd’
exigrep 1wrD3g-00000001TxW-3UWs /var/log/exim4/mainlog*
+++ 1wrD3g-00000001TxW-3UWs has not completed +++
2026-08-04 17:11:44 1wrD3g-00000001TxW-3UWs <= [email protected] H=(webmail.swift.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=604 [email protected]
2026-08-04 17:11:45 1wrD3g-00000001TxW-3UWs == [email protected] R=send_via_smtp_relay T=smtp_relay_smtp defer (-54): retry time not reached for any host for ‘mj-group.com.bd’
exigrep 1wrD29-00000001Tx4-3ZkR /var/log/exim4/mainlog*
+++ 1wrD29-00000001Tx4-3ZkR has not completed +++
2026-08-04 17:10:09 1wrD29-00000001Tx4-3ZkR <= [email protected] H=(webmail.swift.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=567 [email protected]
2026-08-04 17:10:10 1wrD29-00000001Tx4-3ZkR == [email protected] R=send_via_smtp_relay T=smtp_relay_smtp defer (-54): retry time not reached for any host for ‘sel.com.bd’
exigrep 1wrD11-00000001Tqn-07kx /var/log/exim4/mainlog*
+++ 1wrD11-00000001Tqn-07kx has not completed +++
2026-08-04 17:08:59 1wrD11-00000001Tqn-07kx <= [email protected] H=(webmail.swift.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=575 [email protected]
2026-08-04 17:08:59 1wrD11-00000001Tqn-07kx == [email protected] R=send_via_smtp_relay T=smtp_relay_smtp defer (-54): retry time not reached for any host for ‘yahoo.com’
I can’t see the first error message, only the retries.
exim -Mvl 1wrD11-00000001Tqn-07kx
grep -i "swift.telnet.net.bd" /var/log/exim/mainlog* | grep -v "retry time not reached" | head -50
Are you sure that the right host for the smtp relay is swift.telnet.net.bd?
Have you openned the outgoing TCP port 2525 in your firewall? Could yo do a telnet to it from your hestiacp server?
By example:
$ telnet swift.telnet.net.bd 2525
Trying 120.50.18.186...
Connected to swift.telnet.net.bd.
Escape character is '^]'.
220 swift.telnet.net.bd KumoMTA
421 4.3.2 swift.telnet.net.bd idle too long
Connection closed by foreign host.
exim -Mvl 1wrD11-00000001Tqn-07kx
2026-08-04 17:08:59 Received from [email protected] H=(webmail.swift.tel net.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=575 [email protected]
2026-08-04 17:08:59 [email protected] R=send_via_smtp_relay T=smtp_relay_smtp de fer (-54): retry time not reached for any host for ‘yahoo.com’
grep -i “swift.telnet.net.bd” /var/log/exim/mainlog* | grep -v “retry time not reached” | head -50
grep: /var/log/exim/mainlog*: No such file or directory
root@hcp:/home/wahid# grep -i “swift.telnet.net.bd” /var/log/exim4/mainlog* | grep -v “retry time not reached” | head -50
/var/log/exim4/mainlog:2026-08-04 00:06:06 1wqx38-000000016JM-2Mdj <= [email protected] H=(webmail.hcp.m.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=580 [email protected]
/var/log/exim4/mainlog:2026-08-04 00:23:56 1wqxKO-000000016yB-3avo <= [email protected] H=(webmail.hcp.m.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=575 [email protected]
/var/log/exim4/mainlog:2026-08-04 00:28:40 1wqxOx-000000017CD-47sR <= [email protected] H=(webmail.hcp.m.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=572 [email protected]
/var/log/exim4/mainlog:2026-08-04 00:34:16 1wqxUO-000000017dG-0S5L <= [email protected] H=(webmail.hcp.m.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=558 [email protected]
/var/log/exim4/mainlog:2026-08-04 00:34:54 1wqxV0-000000017dg-0SA4 <= [email protected] H=(webmail.hcp.m.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=570 [email protected]
/var/log/exim4/mainlog:2026-08-04 09:02:17 1wr5Q1-00000001H3N-2XrI <= [email protected] H=(webmail.hcp.m.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=581 [email protected]
/var/log/exim4/mainlog:2026-08-04 09:03:58 1wr5Re-00000001H3t-1xAn <= [email protected] H=(webmail.hcp.m.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=589 [email protected]
/var/log/exim4/mainlog:2026-08-04 09:15:27 1wr5ck-00000001HXY-3v3A <= [email protected] H=(webmail.hcp.m.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=582 [email protected]
/var/log/exim4/mainlog:2026-08-04 09:20:48 1wr5hw-00000001HmK-2GNg <= [email protected] H=(webmail.hcp.m.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=575 [email protected]
/var/log/exim4/mainlog:2026-08-04 09:32:26 1wr5tC-00000001IMk-1Glg <= [email protected] H=(webmail.hcp.m.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=584 [email protected]
/var/log/exim4/mainlog:2026-08-04 15:48:39 1wrBlH-00000001QM0-3F9W <= [email protected] H=(webmail.swift.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=575 [email protected]
/var/log/exim4/mainlog:2026-08-04 15:57:49 1wrBu9-00000001S7X-1WNj <= [email protected] H=(webmail.swift.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=589 [email protected]
/var/log/exim4/mainlog:2026-08-04 15:59:23 1wrBvf-00000001Sdc-0tvY <= [email protected] H=(webmail.swift.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=575 [email protected]
/var/log/exim4/mainlog:2026-08-04 17:08:59 1wrD11-00000001Tqn-07kx <= [email protected] H=(webmail.swift.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=575 [email protected]
/var/log/exim4/mainlog:2026-08-04 17:10:09 1wrD29-00000001Tx4-3ZkR <= [email protected] H=(webmail.swift.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=567 [email protected]
/var/log/exim4/mainlog:2026-08-04 17:11:44 1wrD3g-00000001TxW-3UWs <= [email protected] H=(webmail.swift.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=604 [email protected]
/var/log/exim4/mainlog.1:2026-08-03 09:25:03 1wqjIV-00000000msJ-0mR7 => noreply [email protected] R=localuser T=dovecot_virtual_delivery
/var/log/exim4/mainlog.1:2026-08-03 16:18:00 1wqpk8-00000000xiO-1uSW => wahid [email protected] R=localuser T=dovecot_virtual_delivery
/var/log/exim4/mainlog.1:2026-08-03 23:53:22 1wqwqo-000000015oA-3YhI <= [email protected] H=(webmail.hcp.m.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=575 [email protected]
root@hcp:/home/wahid# telnet swift.telnet.net.bd 2525
Trying 120.50.18.186…
Connected to swift.telnet.net.bd.
Escape character is ‘^]’.
220 swift.telnet.net.bd KumoMTA
ehlo swift.telnet.net.bd
250-swift.telnet.net.bd Aloha swift.telnet.net.bd
250-PIPELINING
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SMTPUTF8
250 STARTTLS
smtp relay is swift.telnet.net.bd its in production each day we send 2000+ zabbix notification email
I can’t see the first error message yet, maybe it is in one of the archived logs.
Show the output of these commands:
exim -bt [email protected]
echo "Test body" | exim -v -odf -f [email protected] [email protected]
Please, when pasting the output here in the forum, select the pasted text and Ctrl+e or click on button </> to format the output correctly.
Well, reviewing your error message:
retry time not reached for any host for ‘xxxx’
means that exim is not trying to send anything “until” the retry time for that “xxxx” domain is gone. It means that you surely have some emails in your exim mail queue from time ago pending to send to that domain.
You can review your mail queue with:
exim -bp
and you can force a delivery of them, ignoring retry time, with:
exim -qff
Then, if any of them is really sent, you can show the exim log to notice which new error appears in it with the correct description that comes from your smtp relay server and not from your own exim due the retry time not reached.
-
exim -bt [email protected] [email protected] router = dnslookup, transport = remote_smtp host mail.sel.com.bd [120.50.30.83] MX=5 echo "Test body" | exim -v -odf -f [email protected] [email protected] LOG: MAIN <= [email protected] U=root P=local S=335 delivering 1wrHFx-00000001YkJ-089G LOG: retry_defer MAIN == [email protected] R=send_via_smtp_relay T=smtp_relay_smtp defer (-54): retry time not reached for any host for 'sel.com.bd' exim -Mvl 1wrHFx-00000001YkJ-089G 2026-08-04 21:40:41 Received from [email protected] U=root P=local S=335 2026-08-04 21:40:41 [email protected] R=send_via_smtp_relay T=smtp_relay_smtp defer (-54): retry time not reached for any host for 'sel.com.bd' 2026-08-04 21:43:21 [email protected] R=send_via_smtp_relay T=smtp_relay_smtp defer (-42): authentication required but no common mechanisms were found -
exim -bp 31h 2.0K 1wqnnh-00000000tEN-3Nos <> *** frozen *** [email protected] 6h 575 1wrBlH-00000001QM0-3F9W <[email protected]> [email protected] 6h 589 1wrBu9-00000001S7X-1WNj <[email protected]> [email protected] 6h 575 1wrBvf-00000001Sdc-0tvY <[email protected]> [email protected] 5h 575 1wrD11-00000001Tqn-07kx <[email protected]> [email protected] 5h 567 1wrD29-00000001Tx4-3ZkR <[email protected]> [email protected] 1m 335 1wrHFx-00000001YkJ-089G <[email protected]> [email protected] exim -qff root@hcp:/home/wahid# tail -f /var/log/exim4/mainlog 2026-08-04 21:43:21 1wrBvf-00000001Sdc-0tvY == [email protected] R=send_via_smtp_relay T=smtp_relay_smtp defer (-42): authentication required but no common mechanisms were found 2026-08-04 21:43:21 1wrBlH-00000001QM0-3F9W == [email protected] R=send_via_smtp_relay T=smtp_relay_smtp defer (-42): authentication required but no common mechanisms were found 2026-08-04 21:43:21 1wrD3g-00000001TxW-3UWs == [email protected] R=send_via_smtp_relay T=smtp_relay_smtp defer (-42): authentication required but no common mechanisms were found 2026-08-04 21:43:21 1wrBu9-00000001S7X-1WNj == [email protected] R=send_via_smtp_relay T=smtp_relay_smtp defer (-42): authentication required but no common mechanisms were found 2026-08-04 21:43:21 1wrD11-00000001Tqn-07kx == [email protected] R=send_via_smtp_relay T=smtp_relay_smtp defer (-42): authentication required but no common mechanisms were found 2026-08-04 21:43:21 1wrD29-00000001Tx4-3ZkR == [email protected] R=send_via_smtp_relay T=smtp_relay_smtp defer (-42): authentication required but no common mechanisms were found 2026-08-04 21:43:21 1wqnnh-00000000tEN-3Nos Unfrozen by forced delivery 2026-08-04 21:43:21 1wqnnh-00000000tEN-3Nos ** [email protected]: Unrouteable address 2026-08-04 21:43:21 1wqnnh-00000000tEN-3Nos Frozen (delivery error message) 2026-08-04 21:43:21 End queue run: pid=371925 -qff exim -Mvl 1wrBu9-00000001S7X-1WNj 2026-08-04 15:57:49 Received from [email protected] H=(webmail.swift.telnet.net.bd) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=589 [email protected] 2026-08-04 15:57:49 [email protected] R=send_via_smtp_relay T=smtp_relay_smtp defer (-54): retry time not reached for any host for 'gmail.com' 2026-08-04 21:43:21 [email protected] R=send_via_smtp_relay T=smtp_relay_smtp defer (-42): authentication required but no common mechanisms were found
I thought sel.com.bd was an external domain, but it looks like it’s a local domain.
Anyway, looks like exim can’t found a valid authenticaton mechanism:
I want to see the AUTH mechanisms announced by the smtp relay, execute this command and show the output:
echo -e "EHLO sel.com.bd\nQUIT\n" | openssl s_client -connect swift.telnet.net.bd:2525 -starttls smtp -crlf -quiet
echo -e "EHLO sel.com.bd\nQUIT\n" | openssl s_client -connect swift.telnet.net.bd:2525 -starttls smtp -crlf -quiet
depth=0 CN = rcgen self signed cert
verify error:num=18:self-signed certificate
verify return:1
depth=0 CN = rcgen self signed cert
verify return:1
250 STARTTLS
250-swift.telnet.net.bd Aloha sel.com.bd
250-PIPELINING
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SMTPUTF8
250 AUTH PLAIN
221 So long, and thanks for all the fish!
40774D1A197F0000:error:0A000126:SSL routines:ssl3_read_n:unexpected eof while reading:../ssl/record/rec_layer_s3.c:316:
