(delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)

Discussion in 'Installation/Configuration' started by ariban99, May 12, 2016.

  1. ariban99

    ariban99 Member

    Hi,
    I am send email with no problems, however on incoming i dont get any emails.
    i do see this error: (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    when i try also to start or restart amavisd i got this error:
    Job for amavisd.service failed because the control process exited with error code. See "systemctl status amavisd.service" and "journalctl -xe" for details.
    systemctl status amavisd.service
    â amavisd.service - Amavisd-new is an interface between MTA and content checkers.
    Loaded: loaded (/usr/lib/systemd/system/amavisd.service; enabled; vendor preset: disabled)
    Active: activating (start) since Wed 2016-05-11 20:47:00 EDT; 207ms ago
    Docs: http://www.ijs.si/software/amavisd/#doc
    Control: 22150 (amavisd)
    CGroup: /system.slice/amavisd.service
    ââ22150 /usr/bin/perl -T /usr/sbin/amavisd -c /etc/amavisd/amavisd.conf
    May 11 20:47:00 webserver1 systemd[1]: Starting Amavisd-new is an interface between MTA and content checkers....

    here are results for netstat
    netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 localhost:cslistener 0.0.0.0:* LISTEN 891/php-fpm: master
    tcp 0 0 localhost:10025 0.0.0.0:* LISTEN 22643/master
    tcp 0 0 0.0.0.0:mysql 0.0.0.0:* LISTEN 1296/mysqld
    tcp 0 0 localhost:10027 0.0.0.0:* LISTEN 22643/master
    tcp 0 0 0.0.0.0:pop3 0.0.0.0:* LISTEN 974/dovecot
    tcp 0 0 0.0.0.0:imap 0.0.0.0:* LISTEN 974/dovecot
    tcp 0 0 webserver1.nonic:domain 0.0.0.0:* LISTEN 931/named
    tcp 0 0 localhost:domain 0.0.0.0:* LISTEN 931/named
    tcp 0 0 0.0.0.0:ftp 0.0.0.0:* LISTEN 940/pure-ftpd (SERV
    tcp 0 0 0.0.0.0:ssh 0.0.0.0:* LISTEN 903/sshd
    tcp 0 0 0.0.0.0:smtp 0.0.0.0:* LISTEN 22643/master
    tcp 0 0 localhost:rndc 0.0.0.0:* LISTEN 931/named
    tcp 0 0 0.0.0.0:imaps 0.0.0.0:* LISTEN 974/dovecot
    tcp 0 0 0.0.0.0:pop3s 0.0.0.0:* LISTEN 974/dovecot
    tcp 0 52 webserver1.nonichai:ssh 192.168.1.132:59061 ESTABLISHED 11701/sshd: binyami
    tcp6 0 0 [::]:pop3 [::]:* LISTEN 974/dovecot
    tcp6 0 0 [::]:imap [::]:* LISTEN 974/dovecot
    tcp6 0 0 [::]:webcache [::]:* LISTEN 19509/httpd
    tcp6 0 0 [::]:http [::]:* LISTEN 19509/httpd
    tcp6 0 0 [::]:tproxy [::]:* LISTEN 19509/httpd
    tcp6 0 0 [::]:domain [::]:* LISTEN 931/named
    tcp6 0 0 [::]:ftp [::]:* LISTEN 940/pure-ftpd (SERV
    tcp6 0 0 [::]:ssh [::]:* LISTEN 903/sshd
    tcp6 0 0 [::]:smtp [::]:* LISTEN 22643/master
    tcp6 0 0 localhost:rndc [::]:* LISTEN 931/named
    tcp6 0 0 [::]:https [::]:* LISTEN 19509/httpd
    tcp6 0 0 [::]:imaps [::]:* LISTEN 974/dovecot
    tcp6 0 0 [::]:pop3s [::]:* LISTEN 974/dovecot
     
  2. ariban99

    ariban99 Member

    never mind, i fixed this.
    anyone else having this issue, this is what helped me.
    you need to make sure your hostname are set properly.

    nano /etc/hosts
    add in here your local lan ip so for example 192.168.1.232 hostname.domain (so example would be webserver.google.com) and then again just the hostname which in this example is webserver.

    then make sure in your hostnames you have the the hostname.domain nano /etc/hostnames
    in my case i only have the hostname but missing the domain name, once i added the .domain part, i was able to start amavisd service and now my emails are coming in!!
     

Share This Page