stat=Deferred: Connection refused by debian.myMainDomain.com.
I'll tell you a little more about my problem, hoping to give me an idea of how to solve it.
In my VPS I have installed the following:
Data from my / etc / hosts file
I currently have 2 virtual hosts configured and running on Apache, one for the MyMainDomain.com domain and one for the subdomain: sudomain.MySecondDomain.com
NOTE: The names of the domains, subdomains, as well as the contents of the hosts files are not real. I have modified them for safety.
In subdomain.MySecondDomain.com I have the WHMCS system installed, where I have configured the email account
I noticed the problem because every 4 hours are opened around 17 tickets to the sales department, ie every 4 hours emails are sent to the account
Subject: Mail Delivery Subsystem
Mail: [email protected]
** THIS IS A WARNING MESSAGE ONLY **
** YOU DO NOT NEED TO RESEND YOUR MESSAGE **
The original message was received at Thu, 20 Jul 2017 04:25:03 -0500
from localhost [127.0.0.1]
–--- Transcript of session follows -----
Warning: message still undelivered after 4 hours
Will keep trying until message is 5 days old
Reporting-MTA: dns; myhostname.MyMainDomain.com
Arrival-Date: Thu, 20 Jul 2017 04:25:03 -0500
Remote-MTA: DNS; debian.MyMainDomain.com
Last-Attempt-Date: Thu, 20 Jul 2017 08:30:35 -0500
Will-Retry-Until: Tue, 25 Jul 2017 04:25:03 -0500
Also when reviewing the file /var/log/syslog I see the following information:
Jul 20 09:20:34 myhostname sm-mta: v6IJo3cR007314: to=<
Could you please give me some idea how to solve this problem?, besides, I do not understand why the messages are sent to the address
I appreciate your help in advance
Best regards to all!
Currently I have installed and working the UFW, and what I have allowed is the following:
Ports: 22, 80 / tcp, 443 / tcp, 22 (v6), 80 / tcp (v6), 443 / tcp (v6).
Everything else is blocked.
I am in Mexico, I understand that in Mexico we can not use port 25 for SMTP, does this have anything to do with the problem?
Could you change port 25 for another?