Server receives email but no email is sent

fk21

Verified User
Joined
Jun 11, 2023
Messages
36
Hello everybody.

I have recently installed directadmin but unfortunately the server cannot send any email, neither can it forward any!

I checked tracking email logs; all the outgoing emails are deferred!

I studied the other related posts but my case is different.

Would anybody help me resolve the issue?
Thanks in advance.
 
I studied the other related posts but my case is different.
I doubt it, but on the other hand, there are so many related posts, that you might miss just the thing you need.

So to start, Directadmin creates a hostname itself. Did you change that to your own FQDN hostname?
Did you create a seperate DNS zone via DNS administration as admin?
If not, these are already things to start with.

Did you try telnetting to port 25 incoming and outgoing?

Are you with a provider that allows outgoing port 25 traffic? (Which provider do you have)?

What have you done yourself?

What is your domain name?
 
Are you asking for some professional help? If you think your problem is unique and you've tried everything, there are some people that will take a look (for a fee).
Would anybody help me resolve the issue?
If not, then @Richard G is really giving you some good advice. You need to start with things like blocked port 25.
 
I doubt it, but on the other hand, there are so many related posts, that you might miss just the thing you need.

So to start, Directadmin creates a hostname itself. Did you change that to your own FQDN hostname?
Did you create a seperate DNS zone via DNS administration as admin?
If not, these are already things to start with.

Did you try telnetting to port 25 incoming and outgoing?

Are you with a provider that allows outgoing port 25 traffic? (Which provider do you have)?

What have you done yourself?

What is your domain name?
Dear Richard,
thanks a lot for your reply.
I used telnet to test port 25 and that was OK.
Now I will follow your good lines.
I have done all of the steps mention in https://docs.directadmin.com/other-hosting-services/email/perfect-email-setup.html.
But still it does not send email.
You mentioned that I should change the host name to FQDN hostname. Do you mean that I must replace all the hostnames with FQDN in all dns records?

The host name is hitopex.com

I really appreciate your help.

Best regards
 
The host name is hitopex.com
that is not your hostname but your domain name , hostname is something like srv1.hitopex.com or similar

EDIT: this should be fixed rDNS is not correct:

ServerIPPTR (Reverse)IPs
mail.hitopex.com.5.75.206.72static.72.206.75.5.clients.your-server.de.5.75.206.72
 
Last edited:
Dear Active8 and dear Billy,
Thanks a million for your invaluable help.
I will follow the points you mentioned to remove the issues.
Best regards
 
Just a question, as from the former hostname I see this is most likely a Hetzner server.
Is it a real Hetzner server, or is this a new Cloud VPS? Because Cloud VPS systems can not send mail the first month.

Your reverse DNS record is in fact good and not good.
Your reverse (PTR) record:
72.206.75.5.in-addr.arpa -> server-5-75-206-72.da.direct

You still need to change the hostname to something like server.hitopex.com or something else like srv1, myserver or another name you would like.
And then point this PTR record to the hostname you made.
 
Hi dear Richard,
I eliminated all of the errors but still no email is sent.

The server is a cloud server from Hetzner.

Would you please help me find how to change the hostname? Should I do it in Hetzner console or in direct admin or via ssh commands?
 
Would you please help me find how to change the hostname?
You can change it as Admin via administrator settings.

Then... go in to DNS administration and add a DNS zone with your hostname and the correct nameservers and ip of our server.
If you add it this way, it automatically adds the needed A records.

However, since you use Hetzner's DNS, you probably need to copy the records to Hetzners DNS system.
 
Hi dear Richard,

I am going to make the modifications as you kindly instructed me. Then, I will let you know the result.

Warmest regards,

Faramarz
 
Dear Richard,
You have mentioned that I must "add a DNS zone with your hostname and the correct nameservers and ip of our server". Would you please shed light on the following points:
1- Can I use server.hitopex.com as the new host?
2- How can I find the correct namesevers and ip of our server as mentioned by you? By "our" server you mean HETZNER server?

Awaiting your reply,

Best,

Faramarz
 
Hello Faramaz.

1.) Yes you can.
2.) At this point I'm not 100% sure how to handle as we always run our own nameservers.
Most likely you need to use the same ns1 and ns2 which is used at your hitopex.com domain name in Directadmin.
Please check what you have there.

Remember this is not a user you add for the hostname, only a DNS zone via the DNS administration.
 
Hi Faramarz

You're making great progress!

If you're still having problems, dont forget to click the Show All Tests link on this page


For example, near the bottom of that page, it shows your name servers. People take different approaches, @Richard G hosts their nameservers, I use my domain registrar and it's common to have your server host do it too.
 
Hello Faramaz.

1.) Yes you can.
2.) At this point I'm not 100% sure how to handle as we always run our own nameservers.
Most likely you need to use the same ns1 and ns2 which is used at your hitopex.com domain name in Directadmin.
Please check what you have there.

Remember this is not a user you add for the hostname, only a DNS zone via the DNS administration.
Hi Richard,

I really appreciate your help.
I will do my best to eliminate the issue.
Warmest regards
 
Hi Faramarz

You're making great progress!

If you're still having problems, dont forget to click the Show All Tests link on this page


For example, near the bottom of that page, it shows your name servers. People take different approaches, @Richard G hosts their nameservers, I use my domain registrar and it's common to have your server host do it too.
Hello Billy,

Thanks a lot for the guidelines.
I will follow your words.

Cheers
 
Hello dear Richard and dear Billy,
I have created the zone but still it does not send emails. The only difference is that I receive "Warning messages":
This message was created automatically by mail delivery software.
A message that you sent has not yet been delivered to one or more of its
recipients after more than 48 hours on the queue on server-5-75-206-72.da.direct.

The message identifier is: 1q8Jgk-000Pt9-0c
The date of the message is: Sun, 11 Jun 2023 15:26:54 +0330
The subject of the message is: test direct admin

The address to which the message has not yet been delivered is:

[email protected]

No action is required on your part. Delivery attempts will continue for
some time, and this warning may be repeated at intervals if the message
remains undelivered. Eventually the mail delivery software will give up,
and when that happens, the message will be returned to you.
Reporting-MTA: dns; server-5-75-206-72.da.direct

Action: delayed
Final-Recipient: rfc822;[email protected]
Status: 4.0.0
Return-path: <[email protected]>
Received: from localhost ([::1] helo=server-5-75-206-72.da.direct)
by server-5-75-206-72.da.direct with esmtpa (Exim 4.96-58-g4e9ed49f8)
(envelope-from <[email protected]>)
id 1q8Jgk-000Pt9-0c
for [email protected];
Sun, 11 Jun 2023 11:56:54 +0000
MIME-Version: 1.0
Date: Sun, 11 Jun 2023 15:26:54 +0330
From: [email protected]
To: "Fk.sm N900" <[email protected]>
Subject: test direct admin
Message-ID: <[email protected]>
X-Sender: [email protected]
Content-Type: text/plain; charset=US-ASCII;
format=flowed
Content-Transfer-Encoding: 7bit

I didn't know which field must be copied to HETZNER DNS zone!

Would you please give me a hand in this respect?

p.s. In the created zone, the local data and local email are automatically set to No!
 
Your reverse DNS record is in fact good and not good.
Your reverse (PTR) record:
72.206.75.5.in-addr.arpa -> server-5-75-206-72.da.direct

You still need to change the hostname to something like server.hitopex.com or something else like srv1, myserver or another name you would like.
And then point this PTR record to the hostname you made.


 
Last edited:
Back
Top