stat=Deferred: Connection refused by debian.myMainDomain.com.

Hi, greetings to all here!

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:

Debian 8

Apache 2.4

PHP 5

MySQL 5

Sendmail

Data from my / etc / hosts file

Hostname: myhostname

FQDN: myhostname.MyMainDomain.com

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 sales@MySecondDomain.com as the main system. The sales@MySecondDmain.com account is also set up in the sales ticket department.

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 ventas@MySecondDomain.com, the content of the mail is as follows:

Subject: Mail Delivery Subsystem

Mail: mailer-daemon@debian

Message:


** 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 -----

<mailer-daemon@debian.MyMainDomain.com>… Deferred: Connection refused by debian.MyMainDomain.com.

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

Final-Recipient: RFC822; mailer-daemon@debian.MyMainDomain.com

Action: delayed

Status: 4.4.1

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[2629]: v6IJo3cR007314: to=<mailer-daemon@debian.MyMainDomain.com>, delay=1+18:30:31, xdelay=00:00:00, mailer=esmtp, pri=23169571, relay=debian.MyMainDomain.com., dsn=4.0.0, stat=Deferred: Connection refused by debian.hospedajeweb.uno.

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 sales@MySecondDomain.com when apparently the problem is related to the domain MyMainDomain.com

I appreciate your help in advance :)

Best regards to all!

4 Replies

It looks like you have a firewall blocking port 25 on maindomain?

Hello, thanks for answering.

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?

Thank you!

25 is the standard port of sending email. You have to allow it so that your two servers can talk

Hello, thank you very much for your answer. Best regards! :)

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct