Unable to send or receive E-mails

Discussion in 'General' started by scorpious, Sep 25, 2022.

  1. scorpious

    scorpious Member

    Hi All
    Server setup (Debian Bullseye) ISPConfig 3.2.8p1 using Apache2
    After a few reinstalls using the Perfect Server Automated ISPConfig 3 Installation on Debian 10 - 11 and Ubuntu 20.04
    Roundcude is not sending or receiving e-mails.
    When I login to the Roundcube page I get no errors, it says when I send an e-mail,Message sent successfully
    but no mail is sent, in the mail Queue it states the following:
    Code:
    -Queue ID-  --Size-- ----Arrival Time---- -Sender/Recipient-------
    E2D2A1DA231E     732 Sun Sep 25 20:32:23  [email protected]
                       (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused)
                                             email adress sent to
    info from the Mail - Log
    Sep 25 21:13:51 server1 dovecot: imap-login: Login: user=<email address>, method=PLAIN, rip=::1, lip=::1, mpid=5512, secured, session=<CGy0DIbp4NAAAAAAAAAAAAAAAAAAAAAB>
    Sep 25 21:13:51 server1 dovecot: imap(email address)<5512><CGy0DIbp4NAAAAAAAAAAAAAAAAAAAAAB>: Logged out in=50 out=591 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
    Sep 25 21:14:51 server1 dovecot: imap-login: Login: user=<email address>, method=PLAIN, rip=::1, lip=::1, mpid=5531, secured, session=<E9VIEIbpguQAAAAAAAAAAAAAAAAAAAAB>
    Sep 25 21:14:51 server1 dovecot: imap(email address)<5531><E9VIEIbpguQAAAAAAAAAAAAAAAAAAAAB>: Logged out in=50 out=591 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
    
    Code:
    Mail-Warn - Log ( IP Address replaced my Static IP Address )
    Mail-Warn - Log ( IP Address replaced my Static IP Address )
    Sep 25 18:56:30 server1 dovecot: master: Warning: Killed with signal 15 (by pid=39953 uid=0 code=kill)
    Sep 25 19:08:39 server1 postfix/postfix-script[183741]: warning: symlink leaves directory: /etc/postfix/./smtpd.cert
    Sep 25 19:08:39 server1 postfix/postfix-script[183744]: warning: symlink leaves directory: /etc/postfix/./smtpd.key
    Sep 25 19:08:39 server1 dovecot: master: Warning: Killed with signal 15 (by pid=183922 uid=0 code=kill)
    Sep 25 19:42:15 server1 postfix/smtpd[309052]: warning: hostname IP Address-lp.static.cable.virginmedia.com does not resolve to address IP Address: Name or service not known
    Sep 25 20:13:47 server1 postfix/postfix-script[1549]: warning: symlink leaves directory: /etc/postfix/./smtpd.cert
    Sep 25 20:13:47 server1 postfix/postfix-script[1553]: warning: symlink leaves directory: /etc/postfix/./smtpd.key
    Sep 25 20:31:22 server1 postfix/smtps/smtpd[2626]: warning: hostname IP Address-lp.static.cable.virginmedia.com does not resolve to address IP Address: Name or service not known
    Sep 25 20:31:28 server1 postfix/smtps/smtpd[2628]: warning: hostname IP Address-lp.static.cable.virginmedia.com does not resolve to address IP Address: Name or service not known
    Sep 25 20:32:22 server1 postfix/smtps/smtpd[2628]: warning: hostname IP Address-lp.static.cable.virginmedia.com does not resolve to address IP Address: Name or service not known
    
    
    Code:
    /etc/roundcube/config.inc.php
    // SMTP port. Use 25 for cleartext, 465 for Implicit TLS, or 587 for STARTTLS (default)
    $config['smtp_port'] = 25;
    
    // SMTP username (if required) if you use %u as the username Roundcube
    // will use the current username for login
    $config['smtp_user'] = '%u';
    
    // SMTP password (if required) if you use %p as the password Roundcube
    // will use the current user's password for login
    $config['smtp_pass'] = '%p';
    
    // provide an URL where a user can get support for this Roundcube installation
    // PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
    $config['support_url'] = '';
    
    // Name your service. This is displayed on the login screen and in the window title
    $config['product_name'] = 'Roundcube Webmail';
    
    // This key is used to encrypt the users imap password which is stored
    // in the session record. For the default cipher method it must be
    // exactly 24 characters long.
    // YOUR KEY MUST BE DIFFERENT THAN THE SAMPLE VALUE FOR SECURITY REASONS
    $config['des_key'] = 'xxxxxxxxxxxxxxxxxxxxxxxxx';
    
    // List of active plugins (in plugins/ directory)
    // Debian: install roundcube-plugins first to have any
    $config['plugins'] = array(
    );
    
    // skin name: folder from skins/
    $config['skin'] = 'elastic';
    Code:
    htf_report
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Debian GNU/Linux 11 (bullseye)
    
    [INFO] uptime:  21:39:53 up  1:26,  1 user,  load average: 0.11, 0.04, 0.01
    
    [INFO] memory:
                   total        used        free      shared  buff/cache   available
    Mem:            31Gi       2.1Gi        28Gi        79Mi       946Mi        28Gi
    Swap:          974Mi          0B       974Mi
    
    [INFO] systemd failed services status:
      UNIT LOAD ACTIVE SUB DESCRIPTION
    0 loaded units listed.
    
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.8p1
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.4.30
    [INFO] php-cgi (used for cgi php in default vhost!) is version 7.4.30
    
    ##### PORT CHECK #####
    
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
            Apache 2 (PID 1242)
    [INFO] I found the following mail server(s):
            Postfix (PID 1727)
    [INFO] I found the following pop3 server(s):
            Dovecot (PID 523)
    [INFO] I found the following imap server(s):
            Dovecot (PID 523)
    [INFO] I found the following ftp server(s):
            PureFTP (PID 1472)
    
    ##### LISTENING PORTS #####
    (only           ()
    Local           (Address)
    [anywhere]:587          (1727/master)
    [localhost]:6379                (594/redis-server)
    [localhost]:11211               (552/memcached)
    [anywhere]:110          (523/dovecot)
    [anywhere]:143          (523/dovecot)
    [anywhere]:465          (1727/master)
    [anywhere]:21           (1472/pure-ftpd)
    ***.***.***.***:53              (581/named)
    ***.***.***.***:53              (581/named)
    ***.***.***.***:53              (581/named)
    ***.***.***.***:53              (581/named)
    ***.***.***.***:53              (581/named)
    ***.***.***.***:53              (581/named)
    ***.***.***.***:53              (581/named)
    ***.***.***.***:53              (581/named)
    ***.***.***.***:53              (581/named)
    ***.***.***.***:53              (581/named)
    ***.***.***.***:53              (581/named)
    ***.***.***.***:53              (581/named)
    ***.***.***.***:53              (581/named)
    ***.***.***.***:53              (581/named)
    ***.***.***.***:53              (581/named)
    ***.***.***.***:53              (581/named)
    [localhost]:53          (581/named)
    [localhost]:53          (581/named)
    [localhost]:53          (581/named)
    [localhost]:53          (581/named)
    [localhost]:53          (581/named)
    [localhost]:53          (581/named)
    [localhost]:53          (581/named)
    [localhost]:53          (581/named)
    [localhost]:53          (581/named)
    [localhost]:53          (581/named)
    [localhost]:53          (581/named)
    [localhost]:53          (581/named)
    [localhost]:53          (581/named)
    [localhost]:53          (581/named)
    [localhost]:53          (581/named)
    [localhost]:53          (581/named)
    [anywhere]:22           (756/sshd:)
    [anywhere]:25           (1727/master)
    [localhost]:953         (581/named)
    [anywhere]:4190         (523/dovecot)
    [anywhere]:993          (523/dovecot)
    [anywhere]:995          (523/dovecot)
    [localhost]:11332               (595/rspamd:)
    [localhost]:11333               (595/rspamd:)
    [localhost]:11334               (595/rspamd:)
    [localhost]:10023               (1312/postgrey)
    *:*:*:*::*:587          (1727/master)
    *:*:*:*::*:6379         (594/redis-server)
    [localhost]10           (523/dovecot)
    [localhost]43           (523/dovecot)
    *:*:*:*::*:8080         (1242/apache2)
    *:*:*:*::*:80           (1242/apache2)
    *:*:*:*::*:465          (1727/master)
    *:*:*:*::*:8081         (1242/apache2)
    *:*:*:*::*:21           (1472/pure-ftpd)
    *:*:*:*::*:53           (581/named)
    *:*:*:*::*:53           (581/named)
    *:*:*:*::*:53           (581/named)
    *:*:*:*::*:53           (581/named)
    *:*:*:*::*:53           (581/named)
    *:*:*:*::*:53           (581/named)
    *:*:*:*::*:53           (581/named)
    *:*:*:*::*:53           (581/named)
    *:*:*:*::*:53           (581/named)
    *:*:*:*::*:53           (581/named)
    *:*:*:*::*:53           (581/named)
    *:*:*:*::*:53           (581/named)
    *:*:*:*::*:53           (581/named)
    *:*:*:*::*:53           (581/named)
    *:*:*:*::*:53           (581/named)
    *:*:*:*::*:53           (581/named)
    *:*:*:*::*862b:2bff:fe18:53             (581/named)
    *:*:*:*::*862b:2bff:fe18:53             (581/named)
    *:*:*:*::*862b:2bff:fe18:53             (581/named)
    *:*:*:*::*862b:2bff:fe18:53             (581/named)
    *:*:*:*::*862b:2bff:fe18:53             (581/named)
    *:*:*:*::*862b:2bff:fe18:53             (581/named)
    *:*:*:*::*862b:2bff:fe18:53             (581/named)
    *:*:*:*::*862b:2bff:fe18:53             (581/named)
    *:*:*:*::*862b:2bff:fe18:53             (581/named)
    *:*:*:*::*862b:2bff:fe18:53             (581/named)
    *:*:*:*::*862b:2bff:fe18:53             (581/named)
    *:*:*:*::*862b:2bff:fe18:53             (581/named)
    *:*:*:*::*862b:2bff:fe18:53             (581/named)
    *:*:*:*::*862b:2bff:fe18:53             (581/named)
    *:*:*:*::*862b:2bff:fe18:53             (581/named)
    *:*:*:*::*862b:2bff:fe18:53             (581/named)
    *:*:*:*::*:22           (756/sshd:)
    *:*:*:*::*:25           (1727/master)
    *:*:*:*::*:953          (581/named)
    *:*:*:*::*:443          (1242/apache2)
    *:*:*:*::*:4190         (523/dovecot)
    *:*:*:*::*:993          (523/dovecot)
    *:*:*:*::*:995          (523/dovecot)
    *:*:*:*::*:11332                (595/rspamd:)
    *:*:*:*::*:11333                (595/rspamd:)
    *:*:*:*::*:11334                (595/rspamd:)
    *:*:*:*::*:10023                (1312/postgrey)
    *:*:*:*::*:3306         (823/mariadbd)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination
    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-sshd (1 references)
    target     prot opt source               destination
    REJECT     all  --  ***.***.***.***       [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***       [anywhere]/0            reject-with icmp-port-unreachable
    RETURN     all  --  [anywhere]/0            [anywhere]/0
    
    
    
    
    ##### LET'S ENCRYPT #####
    acme.sh is installed in /root/.acme.sh/acme.sh
    Any help advise would be appreciated

    Cheers Scorp
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Which exact install command options did you use?

    Please login to ISPConfig, go to system > server config email, set spamfilter to amavis, click save, set spamfilter back to rspamd and click save. Then test again.


    There seem to be issue switch your hostname/ip setup as well.
     
  3. scorpious

    scorpious Member

    Hi till
    I can send and recieve e-mails, however gmail rejects the emails with the following error:
    Code:
    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.
    
    For further assistance, please send mail to postmaster.
    
    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.
    
                       The mail system
    
    <[email protected]>: host gmail-smtp-in.l.google.com[108.177.15.26] said:
        550-5.7.26 This message does not pass authentication checks (SPF and DKIM
        both 550-5.7.26 do not pass). SPF check for [domain.co.uk] does not pass
        with ip: 550-5.7.26 [62.30.19.146].To best protect our users from spam, the
        message has 550-5.7.26 been blocked. Please visit 550-5.7.26
        https://support.google.com/mail/answer/81126#authentication for more 550
        5.7.26 information. v11-20020a056000144b00b0022b1e5e326dsi10801768wrx.748 -
        gsmtp (in reply to end of DATA command)
    Reporting-MTA: dns; server
    X-Postfix-Queue-ID: 3E5A71DA0930
    X-Postfix-Sender: rfc822; [email protected]
    Arrival-Date: Mon, 26 Sep 2022 10:02:57 +0100 (BST)
    
    Final-Recipient: rfc822; [email protected]
    Original-Recipient: rfc822;[email protected]
    Action: failed
    Status: 5.7.26
    Remote-MTA: dns; gmail-smtp-in.l.google.com
    Diagnostic-Code: smtp; 550-5.7.26 This message does not pass authentication
        checks (SPF and DKIM both 550-5.7.26 do not pass). SPF check for
        [domain.co.uk] does not pass with ip: 550-5.7.26 [xx.xx.xx.xxx].To best
        protect our users from spam, the message has 550-5.7.26 been blocked.
        Please visit 550-5.7.26
        https://support.google.com/mail/answer/81126#authentication for more 550
        5.7.26 information. v11-20020a056000144b00b0022b1e5e326dsi10801768wrx.748 -
        gsmtp
    I have set the DKIM in the mail Domain
    I have a Debian Stretch ISPConfig 3.2.8p1 at the moment and sending e-mails to gmail account is no problem.
    Cheers
    Scorp
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Google tells you in detail what's wrong:

    So you must check the DNS zone of that domain and correct the spf and dkim records there. This is not an issue with your mail server.
     
  5. scorpious

    scorpious Member

    Hi Till
    Many thanks for your advise by checking my settings using:
    https://intodns.com
    and
    https://mxtoolbox.com

    the fault was on where my domains names was registered, once I corrected and added 2 TXT/SPF sending to gamil and other provides is working fine :)
    Many thanks
    scorp
     
    Th0m and till like this.

Share This Page