1

Topic: :25 ... failed: Connection refused

==== Required information ====
- iRedMail version (check /etc/iredmail-release): version 2.4.0
- Linux/BSD distribution name and version: Ubuntu
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? YES
- Related log if you're reporting an issue:
====


Dear all,
We having a problem when we try to send an email from a cpanel server to an iredmail server
we get this message.

LOG: MAIN
  cwd=/usr/local/cpanel/whostmgr/docroot 4 args: /usr/sbin/exim -v -M 1d7zBr-0004RW-Ot
delivering 1d7zBr-0004RW-Ot
Connecting to mx.salonatcom.com [192.81.221.68]:25 ... failed: Connection refused
LOG: MAIN
  H=mx.salonatcom.com [192.81.221.68] Connection refused
LOG: MAIN
  == customer.services@salonatcom.com R=dkim_lookuphost T=dkim_remote_smtp defer (111): Connection refused


Please note that sending and receiving emails throw iredmail server works fine when we send an email to it throw any mail client like gmail and even directly throw cpanel mail client but when we try to send an email throw php software on the server (Like contact us form) it didn't received.

I register my IP address on "Whitelisted senders" and "Whitelisted recipients" but still the problem is the same.

Any idea why is this?

Thanks in advance.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: :25 ... failed: Connection refused

hosam.zewain wrote:

  H=mx.salonatcom.com [192.81.221.68] Connection refused

Connection refused, you may need to check firewall rules to make sure it's open to your cpanel server.

3

Re: :25 ... failed: Connection refused

I found this in IP table
-A INPUT -p tcp --dport 25 -j ACCEPT

is there any advice how do solve the problem?

4

Re: :25 ... failed: Connection refused

Can you telnet from cpanel server to connect iRedMail server on port 25?

5

Re: :25 ... failed: Connection refused

It says:
telnet: connect to address 192.81.221.68: Connection refused

6

Re: :25 ... failed: Connection refused

It's your network problem, the cpanel server cannot reach iRedMail server on port 25.