1

Topic: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: CentOS 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi people, i have a error when i want send emails from my email server roundcube.. I used postfix, dovecot, amavisd, and this is the logs from tail -f /var/log/maillog

Jul 31 23:09:03 mail postfix/amavis/smtp[4151]: 21BB86EB6: to=<xxxx@gmail.com>, relay=none, delay=99280, delays=99280/0.04/0.01/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused)
Jul 31 23:09:03 mail postfix/amavis/smtp[4151]: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused
Jul 31 23:09:03 mail postfix/amavis/smtp[4151]: 023096EC7: to=<xxxx@gmail.com>, relay=none, delay=510, delays=510/0.05/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused)
Jul 31 23:10:48 mail postfix/scache[4154]: statistics: start interval Jul 31 23:09:03
Jul 31 23:10:48 mail postfix/scache[4154]: statistics: domain lookup hits=0 miss=2 success=0%
Jul 31 23:10:48 mail postfix/scache[4154]: statistics: address lookup hits=0 miss=2 success=0%
Jul 31 23:15:46 mail clamd[392]: SelfCheck: Database status OK.
Jul 31 23:19:03 mail postfix/qmgr[3899]: 023096EC7: from=<postmaster@testmail.com>, size=549, nrcpt=1 (queue active)
Jul 31 23:19:03 mail postfix/amavis/smtp[4166]: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused
Jul 31 23:19:03 mail postfix/amavis/smtp[4166]: 023096EC7: to=<xxxx@gmail.com>, relay=none, delay=1111, delays=1111/0.03/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused)

Somebody help me? please

----

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

2

Re: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused

Port 10026 is Amavisd service, please make sure it's running.
FYI: http://www.iredmail.org/docs/network.ports.html

3

Re: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused

ZhangHuangbin wrote:

Port 10026 is Amavisd service, please make sure it's running.
FYI: http://www.iredmail.org/docs/network.ports.html

Yes, i know. The service is running:

amavisd.service - Amavisd-new is an interface between MTA and content checkers                                                                                        .
   Loaded: loaded (/usr/lib/systemd/system/amavisd.service; enabled; vendor pres                                                                                        et: disabled)
   Active: active (running) since Mon 2017-07-31 23:48:19 UTC; 2h 8min ago
     Docs: http://www.ijs.si/software/amavisd/#doc
  Process: 434 ExecStart=/usr/sbin/amavisd -c /etc/amavisd/amavisd.conf (code=ex                                                                                        ited, status=0/SUCCESS)
Main PID: 1136 (/usr/sbin/amavi)
   CGroup: /system.slice/amavisd.service
           ├─1136 /usr/sbin/amavisd (master
           └─1214 /usr/sbin/amavisd (virgin child

Jul 31 23:48:12 mail systemd[1]: Starting Amavisd-new is an interface between MT                                                                                        A and content checkers....
Jul 31 23:48:17 mail amavis[434]: starting. /usr/sbin/amavisd at mail.testmail.c                                                                                        om amavisd-new-2.11.0 (20160426), Unicode aware, LANG="en_US.UTF-8"
Jul 31 23:48:19 mail amavis[1136]: Net::Server: Group Not Defined.  Defaulting t                                                                                        o EGID '991 991'
Jul 31 23:48:19 mail amavis[1136]: Net::Server: User Not Defined.  Defaulting to                                                                                         EUID '993'
Jul 31 23:48:19 mail amavis[1136]: Using primary internal av scanner code for Cl                                                                                        amAV-clamd
Jul 31 23:48:19 mail amavis[1136]: Found secondary av scanner ClamAV-clamscan at                                                                                         /usr/bin/clamscan
Jul 31 23:48:19 mail systemd[1]: Started Amavisd-new is an interface between MTA                                                                                         and content checkers..

I can send mails but I can not receive; And the only way to send my emails is by disabling amavisd but the emails received arrive in the spam folder .. And that's not what I want.

4

Re: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused

Run command to check whether port 10026 is open:

netstat -ntlp

5

Re: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused

ZhangHuangbin wrote:

netstat -ntlp

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:10024         0.0.0.0:*               LISTEN      1136/amavisd (maste
tcp        0      0 127.0.0.1:10025         0.0.0.0:*               LISTEN      3957/master
tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN      3957/master
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      1270/dovecot
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN      1270/dovecot
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      454/sshd
tcp        0      0 127.0.0.1:24            0.0.0.0:*               LISTEN      1270/dovecot
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      3957/master
tcp        0      0 127.0.0.1:4190          0.0.0.0:*               LISTEN      1270/dovecot
tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN      1270/dovecot
tcp        0      0 127.0.0.1:7777          0.0.0.0:*               LISTEN      799/python
tcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN      1270/dovecot
tcp        0      0 0.0.0.0:389             0.0.0.0:*               LISTEN      1298/slapd
tcp6       0      0 :::3306                 :::*                    LISTEN      742/mysqld
tcp6       0      0 :::587                  :::*                    LISTEN      3957/master
tcp6       0      0 :::110                  :::*                    LISTEN      1270/dovecot
tcp6       0      0 :::143                  :::*                    LISTEN      1270/dovecot
tcp6       0      0 :::80                   :::*                    LISTEN      409/httpd
tcp6       0      0 :::22                   :::*                    LISTEN      454/sshd
tcp6       0      0 :::25                   :::*                    LISTEN      3957/master
tcp6       0      0 :::443                  :::*                    LISTEN      409/httpd
tcp6       0      0 :::993                  :::*                    LISTEN      1270/dovecot
tcp6       0      0 :::995                  :::*                    LISTEN      1270/dovecot
tcp6       0      0 :::389                  :::*                    LISTEN      1298/slapd

6

Re: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused

Please check the output, not just copy / paste and wait for an answer.

7

Re: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused

ZhangHuangbin wrote:

Please check the output, not just copy / paste and wait for an answer.

Sorry brother, I can not see port 10026 I guess it's closed. Maybe that's the problem? How can i open it

8

Re: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused

i used the cmd:

firewall-cmd --zone=iredmail --add-port=10026/tcp --permanent

but i can't open the port... The problem continued...

9

Re: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused

Please restart amavisd service and check again with command "netstat -ntlp".

10

Re: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused

ZhangHuangbin wrote:

Please restart amavisd service and check again with command "netstat -ntlp".

I have already done it and nothing, port 10026 does not appear

11 (edited by leonavarroq 2017-08-05 22:53:22)

Re: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused

i can fix the problem following this tutorial https://support.plesk.com/hc/es/article … n-refused-

but now... i can't received mails... somebody help me?

Gmail show this msg when i try send emails to my webmail:

DNS Error: 2494499 DNS type 'mx' lookup of testmail.com responded with code NOERROR 2494499 DNS type 'aaaa' lookup of localhost. responded with code NXDOMAIN 2494499 DNS type 'a' lookup of localhost. responded with code NXDOMAIN

12

Re: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused

No MX type DNS record for your mail domain name?

13 (edited by leonavarroq 2017-08-07 03:35:51)

Re: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused

ZhangHuangbin wrote:

No MX type DNS record for your mail domain name?

i installed iredadmin and this service configured my webmail. What i can do? my work is in localhost

14 (edited by leonavarroq 2017-08-08 02:55:57)

Re: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused

i have a domain in dondominio.com, how i can configured that domain for my webmail? please help me... I want what my webmail received emails from @gmail or @hotmail, etc.

15

Re: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused

Is this mail domain name hosted on your iRedMail server? if yes, you can create mail users and login to webmail directly (use full email address as login username).

Please also make sure you have correct A/MX DNS records for your mail domain names.