Email not working.

GregW

Verified User
Joined
Aug 6, 2019
Messages
37
Location
Australia
I am having issues with email on my Ubuntu/DA/OLS VPS. Emails are not being sent or received.

it appears to work if the recipient is on the same VPS, but if not the email is not received.

Here is an example email and log. I have modified the domain names for the below as an example of a real email send error. This one was done via Round Cube as a test to check email us working

Time
26 minutes ago
Size
612
Sender
<[email protected]>
Recipient(s)

E-mail Headers​

1xUXbs-000000000w4-49Fv-H
mail 8 8
<email@mys=website.com>
1795215696 0
-received_time_usec .988898
-received_time_complete 1795215696.999193
--helo_name server.mywebsite.com
-host_address [::1]:46486
--host_name localhost
-host_auth login
-host_auth_pubname LOGIN
-interface_address [::1]:587
-active_hostname server.mywebsite.com
-received_protocol esmtpa
-aclc _accept_recipient_if_whitelisted 1
1
-aclm _limit_reached_error 0

-body_linecount 1
-max_received_linelength 67
--auth_id [email protected]
-tls_resumption A
XX
1
[email protected]

259P Received: from localhost ([::1] helo=server.mywebsite.com)
by server.mywebsite.com with esmtpa (Exim 4.100.1)
(envelope-from <[email protected]>)
id 1xUXbs-000000000w4-49Fv
for [email protected];
Sat, 21 Nov 2026 10:01:37 +1100
018 MIME-Version: 1.0
038 Date: Sat, 21 Nov 2026 07:01:36 +0800
033F From: [email protected]
025T To: [email protected]
030 Subject: This is a test in RC
068I Message-ID: <[email protected]>
037 X-Sender: [email protected]
059 Content-Type: text/plain; charset=US-ASCII;
format=flowed
032 Content-Transfer-Encoding: 7bit

E-mail Body Chunk​

1xUXbs-000000000w4-49Fv-D
testing 123

Log​

2026-11-21 10:01:37 Received from [email protected] H=localhost (server.mywebsite.com) [::1] P=esmtpa A=login:[email protected] S=612 id=[email protected] T="This is a test in RC"
2026-11-21 10:01:37 [email protected] R=lookuphost T=remote_smtp defer: retry time not reached for any host for 'wrn.com.au'
What and where do I check, update or apply emaiil settings?

Thanks
 
remote_smtp defer: retry time not reached for any host for 'wrn.com.au'
Check your DNS and resolver settings like /etc/resolv.conf if a resolver is present and working.
Check with the nslookup command if its working.

Also be sure port 25 outgoing is open and not blocked by your service provider. But looking at the above piece of log, not being able to reach external sites seems to me dns resolving is not working.
 
What does this mean

resolvectl status

Global
Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub

Link 2 (eth0)
Current Scopes: DNS
Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 8.8.8.8
DNS Servers: 1.1.1.1 8.8.8.8 8.8.4.4 2606:4700:4700::1111
2606:4700:4700::1001

Port 25 is open as well
 
nslookup mynewwebsite.com

Server: 127.0.0.53
Address: 127.0.0.53#53

mynewwebsite.com canonical name = server.mynewwebsite.com.
Name: server.mynewwebsite.com
Address: 104.xxx.xxx.147

(domain and IP are altered)
 
stop using local resolved, DNS must using external server ( not same with DNS Server that handle domain resolved" ).
 
Why, more details would be helpful?

Local has worked fine on our old service, so I have no issue with local.

Cheers
 
DNS must using external server
Not really. Local DNS resolver can be very good because in some cases some RBL's will not work when you use like Google DNS. Unless you mean he has to do the nslookup with an external domain, that is correct.

mynewwebsite.com canonical name = server.mynewwebsite.com.
Not the smartest option. Best is to use A record for your website and it's a bad idea to put a C reacord from your domainname to the hostname.

Do not use nslookup on your own domain. Try nslookup on external domain like nslookup directadmin.com for example and see if you get the correct result.
If that works, try this command from console:
telnet mail.directadmin.com 25
if you get a connection then you can use quit to exit it again but then outgoing mail should work.

What does this mean
That's a status, check the content of your /etc/resolv.conf file which entry's are in there. There should be multiple, not only 127.0.0.1 present.
 
Not really. Local DNS resolver can be very good because in some cases some RBL's will not work when you use like Google DNS. Unless you mean he has to do the nslookup with an external domain, that is correct.


Not the smartest option. Best is to use A record for your website and it's a bad idea to put a C reacord from your domainname to the hostname.

Do not use nslookup on your own domain. Try nslookup on external domain like nslookup directadmin.com for example and see if you get the correct result.
If that works, try this command from console:
telnet mail.directadmin.com 25
if you get a connection then you can use quit to exit it again but then outgoing mail should work.


That's a status, check the content of your /etc/resolv.conf file which entry's are in there. There should be multiple, not only 127.0.0.1 present.

Not see smartest option?
I did this on advice from my old provider. Maybe I am looking at the wrong place, I can't see a C record.

nslookup directadmin.com
Server: 127.0.0.53
Address: 127.0.0.53#53

Non-authoritative answer:
Name: directadmin.com
Address: 104.26.12.65
Name: directadmin.com
Address: 104.26.13.65
Name: directadmin.com
Address: 172.67.68.87
Name: directadmin.com
Address: 2606:4700:20::681a:c41
Name: directadmin.com
Address: 2606:4700:20::681a:d41
Name: directadmin.com
Address: 2606:4700:20::ac43:4457

telnet mail.directadmin.com 25 (this took over 2 mins to complete)
Trying 167.172.23.237...
telnet: Unable to connect to remote host: Connection timed out

Are you able to advise or provide something for me to add or change please as I am at a loss of what do to.
 
Ok, after all my tests, edits, attempts to fix, it is my VPS provider blocking Port 25 outbound. I needed to and have done, request with details as why I need port 25 outbound unblocked.

It is due to the misusage of port 25 outbound, e.g. Spam etc. Plus, they are very big on ensuring IP reputation is maintained as always good. Which I can understand.

So I am waiting (assuming it is approved) to get it unblocked.

But, if port 25 outbound remains blocked, what options do I have?
 
Back
Top