Installed ISPConfig on a new server, can't get email to work.

Discussion in 'Installation/Configuration' started by devnexus, Jul 13, 2019.

  1. devnexus

    devnexus New Member

    So i've used ISPCOnfig on other servers.
    Installed, using these instructions. https://www.howtoforge.com/tutorial...-9-stretch-apache-bind-dovecot-ispconfig-3-1/
    Been developing a website with on the server, noticed that the wordpress emails were not being recieved.
    Made an email in the control panel, and logged on to roundcube webmail.
    Recieved an SMTP Error (-1): Connection to server failed error.
    Attached is an image of the tail of the mail.log file
    Says mail service is down?
    "warning: Mail system is down -- accessing queue directly"
    Not sure what is going on here. If i "service postfix restart", the is no errors or squawks....
     

    Attached Files:

  2. devnexus

    devnexus New Member

    Here is my report info



    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] ISPConfig is installed.

    ##### ISPCONFIG #####
    ISPConfig version is 3.1.13p1


    ##### VERSION CHECK #####

    [INFO] php (cli) version is 7.0.33-0+deb9u3

    ##### PORT CHECK #####

    [WARN] Port 8080 (ISPConfig) seems NOT to be listening
    [WARN] Port 25 (SMTP server) seems NOT to be listening
    [WARN] Port 465 (SMTP server SSL) seems NOT to be listening
    [WARN] Port 25 (SMTP server) seems NOT to be listening

    ##### MAIL SERVER CHECK #####


    ##### RUNNING SERVER PROCESSES #####

    [INFO] I found the following web server(s):
    Apache 2 (PID 2644)
    [WARN] I could not determine which mail server is running.
    [INFO] I found the following pop3 server(s):
    Dovecot (PID 4165)
    [INFO] I found the following imap server(s):
    Dovecot (PID 4165)
    [INFO] I found the following ftp server(s):
    PureFTP (PID 1194)

    ##### LISTENING PORTS #####
    (only ()
    Local (Address)
    [anywhere]:17890 (1716/./2ACoind)
    [anywhere]:995 (4165/dovecot)
    [localhost]:10023 (1007/postgrey)
    [localhost]:10024 (1195/amavisd-new)
    [localhost]:10026 (1195/amavisd-new)
    [localhost]:11211 (757/memcached)
    [localhost]:8332 (1931/bitcoind)
    [anywhere]:8333 (1931/bitcoind)
    [anywhere]:110 (4165/dovecot)
    [anywhere]:143 (4165/dovecot)
    [anywhere]:21 (1194/pure-ftpd)
    ***.***.***.***:53 (765/named)
    ***.***.***.***:53 (765/named)
    [localhost]:53 (765/named)
    [localhost]:17910 (1716/./2ACoind)
    [anywhere]:22 (859/sshd)
    [localhost]:953 (765/named)
    [anywhere]:2812 (895/monit)
    [localhost]:17760 (2235/./2acoin-servi)
    [anywhere]:993 (4165/dovecot)
    *:*:*:*::*:995 (4165/dovecot)
    *:*:*:*::*:8901 (2644/apache2)
    *:*:*:*::*:10024 (1195/amavisd-new)
    *:*:*:*::*:10026 (1195/amavisd-new)
    *:*:*:*::*:3306 (1102/mysqld)
    *:*:*:*::*:8332 (1931/bitcoind)
    *:*:*:*::*:8333 (1931/bitcoind)
    [localhost]10 (4165/dovecot)
    [localhost]43 (4165/dovecot)
    *:*:*:*::*:80 (2644/apache2)
    *:*:*:*::*:8081 (2644/apache2)
    *:*:*:*::*:21 (1194/pure-ftpd)
    *:*:*:*::*:53 (765/named)
    *:*:*:*::*:22 (859/sshd)
    *:*:*:*::*:953 (765/named)
    *:*:*:*::*:443 (2644/apache2)
    *:*:*:*::*:2812 (895/monit)
    *:*:*:*::*:993 (4165/dovecot)




    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    f2b-postfix-sasl tcp -- [anywhere]/0 [anywhere]/0 multiport dports 25
    f2b-dovecot tcp -- [anywhere]/0 [anywhere]/0 multiport dports 110,995,143,993,587,465,4190
    f2b-pure-ftpd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 21
    f2b-sshd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 22

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    Chain f2b-dovecot (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain f2b-postfix-sasl (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain f2b-pure-ftpd (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain f2b-sshd (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0
     
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What shows command
    Code:
    systemctl --state=failed
    Check you have edited /etc/postfix/master.cf according to the Perfect Server Guide.
     
  4. TomGrow

    TomGrow New Member

    Hi,

    I had the same issue, here is output to the command
    # systemctl --state=failed
    UNIT LOAD ACTIVE SUB DESCRIPTION

    ● networking.service loaded failed failed Raise network interfaces


    LOAD = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB = The low-level unit activation state, values depend on unit type.

    1 loaded units listed. Pass --all to see loaded but inactive units, too.
    To show all installed unit files use 'systemctl list-unit-files'.

    1 loaded units listed. Pass --all to see loaded but inactive units, too.
    To show all installed unit files use 'systemctl list-unit-files'.
    [email protected]:~# systemctl --state=failed
     
  5. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    That means network is not up. Try
    Code:
    systemctl status networking.service
    to maybe get more info on why it is not working.
    Then examine logs and use as root command
    Code:
    dmesg | more
    to find more info.
     
  6. TomGrow

    TomGrow New Member

    systemctl status networking.service
    ● networking.service - Raise network interfaces
    Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Mon 2019-07-29 06:45:57 CEST; 1 weeks 0 days
    ago
    Docs: man:interfaces(5)
    Process: 663 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
    Process: 653 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read
    -environment --list --exclude=lo)" ] && udevadm settle (code=exited, status=0/SUCCESS)
    Main PID: 663 (code=exited, status=1/FAILURE)

    Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
     
  7. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What errors do you get when
    Code:
    systemctl start networking.service
     
  8. TomGrow

    TomGrow New Member

    Job for networking.service failed because the control process exited with error code.
    See "systemctl status networking.service" and "journalctl -xe" for details.

    Sir, I am on VPS
     
  9. Taleman

    Taleman Well-Known Member HowtoForge Supporter

     
  10. devnexus

    devnexus New Member

    Ok, sorry had to devote my time to another project back on this one...

    The command -> systemctl --state=failed
    yields:
    upload_2019-8-8_10-6-58.png

    My "/etc/postfix/master.cf" reads at

    smtp inet n - y - - smtpd
    #smtp inet n - y - 1 postscreen
    #smtpd pass - - y - - smtpd
    #dnsblog unix - - y - 0 dnsblog
    #tlsproxy unix - - y - 0 tlsproxy
    submission inet n - - - - smtpd
    -o syslog_name=postfix/submission
    -o smtpd_tls_security_level=encrypt
    -o smtpd_sasl_auth_enable=yes
    -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    # -o smtpd_reject_unlisted_recipient=no
    # -o smtpd_client_restrictions=$mua_client_restrictions
    # -o smtpd_helo_restrictions=$mua_helo_restrictions
    # -o smtpd_sender_restrictions=$mua_sender_restrictions
    # -o smtpd_recipient_restrictions=
    # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
    # -o milter_macro_daemon_name=ORIGINATING
    smtps inet n - - - - smtpd
    -o syslog_name=postfix/smtps
    -o smtpd_tls_wrappermode=yes
    -o smtpd_sasl_auth_enable=yes
    -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    # -o smtpd_reject_unlisted_recipient=no
    # -o smtpd_client_restrictions=$mua_client_restrictions
    # -o smtpd_helo_restrictions=$mua_helo_restrictions
    # -o smtpd_sender_restrictions=$mua_sender_restrictions
    # -o smtpd_recipient_restrictions=
    # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
    # -o milter_macro_daemon_name=ORIGINATING
     
  11. devnexus

    devnexus New Member

    Just letting you know that I had to devote all my time on another project and now I'm back on this one. Any help you can provide me on this would be greatly appreciated. I've answered your questions about my configuration above.
     
  12. devnexus

    devnexus New Member

    Update fixed. Apparently something was wrong in my master.cf

    I copied and pasted the conf from the Perfect Server Guide, not it is working.
     
    Taleman likes this.

Share This Page