Incoming mail problem and LAN connection problem

Lavien

New member
Joined
Jun 1, 2025
Messages
15
Hello,
First of all I'm a rookie admin therefore please comment me as simple as possible to make things easier for me.
I have static IP at my home and build a server with Raspberry Pi 5 running ubuntu server. I installed directadmin for hosting my website and mail server.
I have two problems that I couldn't solve.

Problem 1: When I install directadmin and wait for its updates, I can connect my website and mail server with outlook via my computer connected to the same home network with server but when I restarted server, I couldn't connect my website and mail server with my computer connected to the same home network with server. If I use VPN or connect to internet outside the home network, I can connect to website and mail server. What should I do to resolve this problem

Problem 2: I am using SMTP Relay service because my ISP does not open outgoing port 25. I have no problem with sending mails. I can receive mail from outlook or google but can not receive mails from some coorporate mail addresses. I have checked that they are not in blacklists. I tried to configure exim conf files for lower SPF ratings etc. but can not managed to solve the problem.

Please help me:D
 
And also I must add to Problem 2 that when the coorporate mail adresses tries to send me mail, there is no log data either in exim and csf log files. I tried to disable csf but nothing changed. I have got no extra firewalls on my system. I couldnt find the reason for rejection of that mails. The coorporate mail adresses receive a failure mail states that unable to connect to my mail server.
 
Hello,

I believe you will need to read more information about networks and IP routing. For now it's not clear what network setup do you have. Is your server behind a NAT, router? Or you connect it with a public IP directly to Internet?

Does your provider block incoming to TCP:25 as well?

If you use NAT, do you complete traffic forwarding to all required ports?

Depending on the network setup you will have different scenarios for troubleshooting.

What should I do to resolve this problem
 
Hello,

I believe you will need to read more information about networks and IP routing. For now it's not clear what network setup do you have. Is your server behind a NAT, router? Or you connect it with a public IP directly to Internet?

Does your provider block incoming to TCP:25 as well?

If you use NAT, do you complete traffic forwarding to all required ports?

Depending on the network setup you will have different scenarios for troubleshooting.
Thanks for your reply,
I have a public static ip and i have done all required port forwarding stuff through my router to my raspberry. My incoming port 25 works perfectly and my outgoing port 25 is blocked by my ISP. For my second problem, i can receive mails from most of domains but can not receive from sone others. Sending mail to all domains works perfect
 
Unfortunately when I try to send mail from those domains, there is no log data in exim log and lfd log. Therefore I couldn't understand the reason. Is there any log that I should check?

At my paid VPS server, the running directadmin version is 1.643, dovecot version is 2.3.15 and exim version is 4.93.0.4 and everthing works fine for incoming mail issue but at my home server direct admin version is 1.678, dovecot is 2.4.1 and exim is 4.98.2. Should I use older versions of these services for solving my problem?
 
Check and post logs lines that will show the failed delivery from those domains
The only information that I have is those corporate mail accounts get delivery fail mail which says "The server was not able to deliver your mail message"
 
there is no log data in exim log and lfd log.

Then either connection is dropped at HELO, and you will need to grep remote IP from exim logs, or a connection can not be established at all. Downgrading hardly can help.

The server was not able to deliver your mail message

Then you will need to read the bounces in full. They should contain details about the error.
 
So far I tried to reinstall all the software stuff including linux and nothing changed. Then I editted exim.conf and commented all Helo deny stuff but again nothing changed. I am also adding the mail delivery fail details.txt.

How can I downgrade directadmin, exim, dovecot versions. Couldn't find any info. I can only install latest versions.

Also I am looking forward for some solutions about my problems.
Thanks for your help.
 

Attachments

So far I tried to reinstall all the software stuff including linux and nothing changed.

Why would it change at all? I suspect you've got an issue with a firewall either on your side or on the sender's side. I can connect to SMTP:25 on your server without an issue (you posted your domain in the details.txt).

And still provided information is not enough to give any solution. You might open a ticket with DA support and let them to troubleshoot it for you, or hire somebody.

Or probably somebody else has enough spare time to guide you on how to troubleshoot it online.
 
I would like to have some info to give you but I don't know what is happening. I will open a ticket to DA support. Thanks for your efforts. Do you have any idea about my problem 1?
 
I also think it's a remove server issue. As @zEitEr said your server is responding well and answering with correct hostname and so on.
When testing the sending server that did answer on port 25 but with a delay.

Also the sending domain has not setup DNS correctly. An A record for the domain is missing. You can reach them on www but if you only use the domain name, they are not reachable, so really seems an issue on their behalve. So probably for mail too.

Ticket support probably can't help with this since on your side everything is fine.

You could ask for problem 1 though. I've seen somebody else with exactly the same issue on DA this week when doing LAN installation.
Probably your provider does not support nat-loopback. In that case you could try to put something like this in your Windows hosts file.
your.domain.com 192.168.0.5

Ofcourse replace your.domain.com with your domain and the ip with the ip of the server. Restart afterwards.

P.s. try some other mail domains like Outlook/hotmail and gMail. I'm sure they will be fine reaching you.
 
I transported the domains to paid vps server because of this failure and i am trying to solve this problem with mail.metiselektrik.com.tr server. Can you try that stuff with this domain
 
And I can receive mails from some domains like hotmail, gmail etc but cant receive from some others. That is my problem actually
 
It is because of editing tries on server i think. Nothing works for now. Let me setup everything again properly and ask help from you again. My problem 1 is solved. Thank you very much
 
That is not correctly working.
Can't connect to mailserver on port 25 on this domain. So looks like port 25 on your home is closed. Either by your firewall or by your provider.
Ok. I rebuilt everything and ready for your check. I can send emails to anywhere, i can receive emails from hotmail but can not receive email for example : parasut.com domain. my mail address is [email protected]
 
Interesting but you are right. My ISP closed incoming port 25 instead of openin outgoing port 25:D But i can still receive mail from hotmail and gmail to my server.
 
Back
Top