Incoming mail problem and LAN connection problem

Lavien

New member
Joined
Jun 1, 2025
Messages
5
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.
 
Back
Top