Email problem

Discussion in 'ISPConfig 3 Priority Support' started by Christophe69, Jan 4, 2020.

  1. Christophe69

    Christophe69 Member

    Hi everybody,
    I have got a little problem with a mail address on my server.

    I have got only one address on my server. My goal is to create several mail addresses but I am testing one before creating others.

    My problem is I cannot connect to my mail address with Thunderbird. I can connect to the mail box with Roundcube. I can send an email from this address (from Roundcube) but, I can not receive any mail. I’ve tested from two different addresses. After several hours there is no mail received inside Roundcube, and, more strange, I did not receive any “error mail” in the mails boxes used to send to my test address hosted on my server.

    I have read several threads about this kind of problems but I am really not sure what to do.

    Since I am a newbie, I don’t really know if my problem come from sendmail, postfix, or my DNS.

    Note: I have installed sendmail several weeks ago to enable the PHP function "mail()".

    Can you help me to enable email sending and receiving from mail addresses hosted on ISPConfig?

    I will post several informations in second part.
     
    Last edited: Jan 4, 2020
  2. Christophe69

    Christophe69 Member

    General Informations:
    Code:
    Distribution: Debian 9 Stretch
    ISPConfig version: ISPConfig 3.1.15p2
    
    ISPConfig common issues report
    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Debian GNU/Linux 9.11 (stretch)
    
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.1.15p2
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.0.33-14+0~20191218.25+debian9~1.gbpae1889
    
    ##### PORT CHECK #####
    
    [WARN] Port 465 (SMTP server SSL) seems NOT to be listening
    [WARN] Port 22 (SSH server) seems NOT to be listening
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
            Apache 2 (PID 1037)
    [INFO] I found the following mail server(s):
            Unknown process (sendmail:) (PID 945)
    [INFO] I found the following pop3 server(s):
            Dovecot (PID 822)
    [INFO] I found the following imap server(s):
            Dovecot (PID 822)
    [INFO] I found the following ftp server(s):
            PureFTP (PID 1271)
    
    ##### LISTENING PORTS #####
    (seulement              ()
    Adresse         (distante)
    [anywhere]:110          (822/dovecot)
    [anywhere]:143          (822/dovecot)
    [anywhere]:53618                (816/sshd)
    [anywhere]:21           (1271/pure-ftpd)
    ***.***.***.***:53              (743/named)
    [localhost]:53          (743/named)
    [localhost]:25          (945/sendmail:)
    [localhost]:953         (743/named)
    [anywhere]:993          (822/dovecot)
    [anywhere]:995          (822/dovecot)
    [localhost]:9029                (723/php-fpm:)
    [localhost]:3306                (1203/mysqld)
    [localhost]:587         (945/sendmail:)
    [localhost]:11211               (785/memcached)
    [localhost]:9100                (844/noderig)
    [localhost]10           (822/dovecot)
    [localhost]43           (822/dovecot)
    *:*:*:*::*:80           (1037/apache2)
    *:*:*:*::*:8080         (1037/apache2)
    *:*:*:*::*:8081         (1037/apache2)
    *:*:*:*::*:53618                (816/sshd)
    *:*:*:*::*:21           (1271/pure-ftpd)
    *:*:*:*::*:53           (743/named)
    *:*:*:*::*:953          (743/named)
    *:*:*:*::*:443          (1037/apache2)
    *:*:*:*::*:993          (822/dovecot)
    *:*:*:*::*:995          (822/dovecot)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination
    f2b-pureftpd  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 21
    f2b-dovecot-pop3imap  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 110,995,143,993
    f2b-postfix  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 25,465,587
    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-pop3imap (1 references)
    target     prot opt source               destination
    REJECT     all  --  ***.***.***.***       [anywhere]/0            reject-with icmp-port-unreachable
    RETURN     all  --  [anywhere]/0            [anywhere]/0
    
    Chain f2b-postfix (1 references)
    target     prot opt source               destination
    RETURN     all  --  [anywhere]/0            [anywhere]/0
    
    Chain f2b-pureftpd (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
    
    
     
    Last edited: Jan 5, 2020
  3. Christophe69

    Christophe69 Member

    More informations:

    After reading more threads, i tested to send a mail from my testing address to that same address to see logs about this.

    Now the mail is blocked in the "mail queue" and here are logs about the last events on my mail server.

    /var/log/mail.log
    Code:
    Jan  4 23:05:01 ns3009231 sm-mta[4520]: 004M51gm004520: --- 421 4.4.1 ns3009231.ip-151-80-21.eu Lost input channel from localhost [127.0.0.1]
    Jan  4 23:05:01 ns3009231 sm-mta[4520]: 004M51gm004520: lost input channel from localhost [127.0.0.1] to MTA-v4 after startup
    Jan  4 23:05:01 ns3009231 sm-mta[4520]: 004M51gm004520: localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA-v4
    Jan  4 23:05:01 ns3009231 sm-mta[4520]: poststats: /var/lib/sendmail/sendmail.st: No such file or directory
    Jan  4 23:05:01 ns3009231 dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<mXkpnlebIsUAAAAAAAAAAAAAAAAAAAAB>
    Jan  4 23:05:01 ns3009231 dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<FIIpnleb+OUAAAAAAAAAAAAAAAAAAAAB>
    Jan  4 23:05:15 ns3009231 dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=91.170.143.200, lip=151.80.21.61, session=<xwr9nlebQ0Jbqo/I>
    Jan  4 23:05:15 ns3009231 dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=91.170.143.200, lip=151.80.21.61, session=<Htv+nlebREJbqo/I>
    Jan  4 23:05:17 ns3009231 dovecot: imap-login: Aborted login (auth failed, 1 attempts in 2 secs): user=<[email protected]>, method=PLAIN, rip=91.170.143.200, lip=151.80.21.61, session=<UqYCn1ebRUJbqo/I>
    Jan  4 23:05:19 ns3009231 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=4533, secured, session=<lKhAn1eb/uUAAAAAAAAAAAAAAAAAAAAB>
    Jan  4 23:05:19 ns3009231 dovecot: imap([email protected]): Logged out in=50 out=505
    Jan  4 23:06:19 ns3009231 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=4575, secured, session=<k0/UolebBOYAAAAAAAAAAAAAAAAAAAAB>
    Jan  4 23:06:19 ns3009231 dovecot: imap([email protected]): Logged out in=50 out=505
    Jan  4 23:07:19 ns3009231 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=4601, secured, session=<CblnplebCOYAAAAAAAAAAAAAAAAAAAAB>
    Jan  4 23:07:19 ns3009231 dovecot: imap([email protected]): Logged out in=50 out=505
    Jan  4 23:08:19 ns3009231 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=4634, secured, session=<xET7qVebDOYAAAAAAAAAAAAAAAAAAAAB>
    Jan  4 23:08:19 ns3009231 dovecot: imap([email protected]): Logged out in=50 out=505
    Jan  4 23:09:19 ns3009231 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=4865, secured, session=<Fb+OrVebEuYAAAAAAAAAAAAAAAAAAAAB>
    Jan  4 23:09:19 ns3009231 dovecot: imap([email protected]): Logged out in=50 out=505
    Jan  4 23:09:44 ns3009231 sm-mta[4869]: 004Kp8fc004524: makeconnection (mail.mydomain1.fr. [151.80.21.61]) failed: Connection refused by mail.mydomain1.fr.
    Jan  4 23:09:44 ns3009231 sm-mta[4869]: 004Kp8fc004524: makeconnection (mail.mydomain1.fr. [151.80.21.61]) failed: Connection refused by mail.mydomain1.fr.
    Jan  4 23:09:44 ns3009231 sm-mta[4869]: 004Kp8fc004524: to=<[email protected]>, delay=01:18:36, xdelay=00:00:00, mailer=esmtp, pri=1020456, relay=mail.mydomain1.fr. [151.80.21.61], dsn=4.0.0, stat=Deferred: Connection refused by mail.mydomain1.fr.
    Jan  4 23:10:02 ns3009231 sm-mta[5003]: NOQUEUE: connect from localhost [127.0.0.1]
    Jan  4 23:10:02 ns3009231 sm-mta[5003]: AUTH warning: no mechanisms
    Jan  4 23:10:02 ns3009231 sm-mta[5003]: 004MA2rT005003: Milter: no active filter
    Jan  4 23:10:02 ns3009231 sm-mta[5003]: 004MA2rT005003: --- 220 ns3009231.ip-151-80-21.eu ESMTP Sendmail 8.15.2/8.15.2/Debian-8; Sat, 4 Jan 2020 23:10:02 +0100; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1]
    Jan  4 23:10:02 ns3009231 sm-mta[5003]: 004MA2rT005003: --- 421 4.4.1 ns3009231.ip-151-80-21.eu Lost input channel from localhost [127.0.0.1]
    Jan  4 23:10:02 ns3009231 sm-mta[5003]: 004MA2rT005003: lost input channel from localhost [127.0.0.1] to MTA-v4 after startup
    Jan  4 23:10:02 ns3009231 sm-mta[5003]: 004MA2rT005003: localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA-v4
    Jan  4 23:10:02 ns3009231 sm-mta[5003]: poststats: /var/lib/sendmail/sendmail.st: No such file or directory
    Jan  4 23:10:02 ns3009231 dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<xEAXsFebIuYAAAAAAAAAAAAAAAAAAAAB>
    Jan  4 23:10:02 ns3009231 dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<AEIXsFebTMUAAAAAAAAAAAAAAAAAAAAB>
    Jan  4 23:10:19 ns3009231 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5008, secured, session=<sm0isVebKOYAAAAAAAAAAAAAAAAAAAAB>
    Jan  4 23:10:19 ns3009231 dovecot: imap([email protected]): Logged out in=50 out=505
    Jan  4 23:11:19 ns3009231 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5037, secured, session=<6/e1tFebKuYAAAAAAAAAAAAAAAAAAAAB>
    Jan  4 23:11:19 ns3009231 dovecot: imap([email protected]): Logged out in=50 out=505
    Jan  4 23:12:19 ns3009231 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5064, secured, session=<pGdJuFebMuYAAAAAAAAAAAAAAAAAAAAB>
    Jan  4 23:12:19 ns3009231 dovecot: imap([email protected]): Logged out in=50 out=505
    Jan  4 23:13:19 ns3009231 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5089, secured, session=<u+ncu1ebNuYAAAAAAAAAAAAAAAAAAAAB>
    Jan  4 23:13:19 ns3009231 dovecot: imap([email protected]): Logged out in=50 out=505
    Jan  4 23:14:19 ns3009231 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5114, secured, session=<i3Fwv1ebOOYAAAAAAAAAAAAAAAAAAAAB>
    Jan  4 23:14:19 ns3009231 dovecot: imap([email protected]): Logged out in=50 out=505
    
     
    Last edited: Jan 6, 2020
  4. Christophe69

    Christophe69 Member

    I may have a clue.
    After spending a fair amount of time looking for clues and answers, it seems that "postfix" is not installed on my server.

    apt-cache policy postfix
    Code:
    postfix:
      Installé : (aucun)
      Candidat : 3.1.12-0+deb9u1
     Table de version :
         3.1.12-0+deb9u1 500
            500 http://debian.mirrors.ovh.net/debian stretch/main amd64 Packages
            100 /var/lib/dpkg/status
    
    apt-cache policy sendmail
    Code:
    sendmail:
      Installé : 8.15.2-8
      Candidat : 8.15.2-8
     Table de version :
     *** 8.15.2-8 500
            500 http://debian.mirrors.ovh.net/debian stretch/main amd64 Packages
            100 /var/lib/dpkg/status
    
    At same time, i have:

    service postfix status
    Code:
    ● postfix.service - LSB: Postfix Mail Transport Agent
       Loaded: loaded (/etc/init.d/postfix; generated; vendor preset: enabled)
       Active: active (exited) since Sun 2020-01-05 00:02:19 CET; 2h 42min ago
         Docs: man:systemd-sysv-generator(8)
      Process: 1208 ExecStart=/etc/init.d/postfix start (code=exited, status=0/SUCCESS)
       CGroup: /system.slice/postfix.service
    
    service sendmail status
    [CODE]
    ● postfix.service - LSB: Postfix Mail Transport Agent
       Loaded: loaded (/etc/init.d/postfix; generated; vendor preset: enabled)
       Active: active (exited) since Sun 2020-01-05 00:02:19 CET; 2h 42min ago
         Docs: man:systemd-sysv-generator(8)
      Process: 1208 ExecStart=/etc/init.d/postfix start (code=exited, status=0/SUCCESS)
       CGroup: /system.slice/postfix.service
    
    janv. 05 00:02:19 ns3009231 systemd[1]: Starting LSB: Postfix Mail Transport Agent...
    janv. 05 00:02:19 ns3009231 systemd[1]: Started LSB: Postfix Mail Transport Agent.
    
    service sendmail status
    Code:
    ● sendmail.service - LSB: powerful, efficient, and scalable Mail Transport Agent
       Loaded: loaded (/etc/init.d/sendmail; generated; vendor preset: enabled)
       Active: active (running) since Sun 2020-01-05 00:02:19 CET; 2h 42min ago
         Docs: man:systemd-sysv-generator(8)
      Process: 775 ExecStart=/etc/init.d/sendmail start (code=exited, status=0/SUCCESS)
       CGroup: /system.slice/sendmail.service
               └─931 sendmail: MTA: accepting connections
    
    janv. 05 02:40:01 ns3009231 sm-mta[31922]: 0051e15U031922: Milter: no active filter
    janv. 05 02:40:01 ns3009231 sm-mta[31922]: 0051e15U031922: --- 220 myserver_fqdn.com ESMTP Sendmail 8.15.2/8.15.2/Debian-8; Sun, 5 Jan 2020 02:40:01 +0100; (No UCE/UBE) logging access from:
    janv. 05 02:42:17 ns3009231 sm-mta[31994]: 0050qHgu027666: makeconnection (mail.mydomain1.fr. [xxx.xx.xx.xx]) failed: Connection refused by mail.mydomain1.fr.
    janv. 05 02:42:17 ns3009231 sm-mta[31994]: 0050qHgu027666: makeconnection (mail.mydomain1.fr. [xxx.xx.xx.xx]) failed: Connection refused by mail.mydomain1.fr.
    janv. 05 02:42:17 ns3009231 sm-mta[31994]: 0050qHgu027666: to=<[email protected]>, delay=00:50:00, xdelay=00:00:00, mailer=esmtp, pri=480000, relay=mail.mydomain1.fr. [151
    janv. 05 02:42:17 ns3009231 sm-mta[31994]: 004Kp8fc004524: to=<[email protected]>, delay=04:51:09, xdelay=00:00:00, mailer=esmtp, pri=2820456, relay=mail.mydomain1.fr., ds
    janv. 05 02:45:01 ns3009231 sm-mta[32195]: NOQUEUE: connect from localhost [127.0.0.1]
    janv. 05 02:45:01 ns3009231 sm-mta[32195]: AUTH warning: no mechanisms
    janv. 05 02:45:01 ns3009231 sm-mta[32195]: 0051j1ne032195: Milter: no active filter
    janv. 05 02:45:01 ns3009231 sm-mta[32195]: 0051j1ne032195: --- 220 myserver_fqdn.com ESMTP Sendmail 8.15.2/8.15.2/Debian-8; Sun, 5 Jan 2020 02:45:01 +0100; (No UCE/UBE) logging access from:
    
    Maybe this is a part of my problem?

    I will wait for a response before doing anything wrong but I will continue to search for any clues. :)
     
    Last edited: Jan 6, 2020
  5. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    On Debian system installing sendmail removes postfix. They can not be installed at the same time so the other is removed. Since ISPConfig expects postfix, you have thus broken your system.
    Installing postfix removes sendmail, so you may get your system back with that and then forcing ispconfig to do reconfigure services.
    On the other hand, you may have broken your system in additional ways, so fixing may be more complicated.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Sendmail is not required for that, the PHP mail() function works with postfix as well as Postfix provides a sendmail wrapper for that which is always installed. As @Taleman explained, installing sendmail destroys the mail setup, you can try to reinstall postfix, maybe it starts working again.
     
  7. Christophe69

    Christophe69 Member

    Hi Taleman,
    Thank you for your response.

    I was hoping this was a little problem which could be fixed easily.

    My knowledge is really too weak ... :oops:

    I will try what you say this afternoon.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

  9. Christophe69

    Christophe69 Member

    Thanks Till,
    I reinstalled the mail server following your advice, skipping mysql config, and it seems to be much better.

    In ISPConfig interface, Mail server is ONLINE.
    Informations on https://mxtoolbox.com/ are much better.

    Code:
    SMTP Reverse DNS Mismatch     OK - xxx.xx.xx.xx resolves to myserver_fqdn.com
    SMTP Valid Hostname     OK - Reverse DNS is a valid Hostname
    SMTP Banner Check     OK - Reverse DNS matches SMTP Banner
    SMTP TLS     OK - Supports TLS.
    SMTP Connection Time     1.125 seconds - Good on Connection time
    SMTP Open Relay     OK - Not an open relay.
    SMTP Transaction Time     3.313 seconds - Good on Transaction Time
    I will test the sending and receiving of emails from / to the address.

    However, there is one thing that seems incorrect to me. Maybe you will confirm it is incorrect:

    The status of postfix is "active (exited)". I think it is incorrect, right?

    service postfix status
    Code:
    ● postfix.service - Postfix Mail Transport Agent
       Loaded: loaded (/lib/systemd/system/postfix.service; enabled; vendor preset: enabled)
       Active: active (exited) since Sun 2020-01-05 14:06:10 CET; 12min ago
     Main PID: 3440 (code=exited, status=0/SUCCESS)
       CGroup: /system.slice/postfix.service
    
    janv. 05 14:06:10 ns3009231 systemd[1]: Starting Postfix Mail Transport Agent...
    janv. 05 14:06:10 ns3009231 systemd[1]: Started Postfix Mail Transport Agent.
    
     
    Last edited: Jan 6, 2020
  10. Christophe69

    Christophe69 Member

    tail -100 /var/log/mail.log
    in attached file (too much characters)

    Can you help me to know what is wrong?

    In my mail.log i see the line
    Code:
    Jan  5 14:25:01 ns3009231 postfix/smtpd[7179]: warning: cannot load 1024-bit DH parameters from file /etc/ssl/private/dhparams.pem: No such file or directory -- using compiled-in defaults
    
    This is the content of my "/etc/ssl/private"
    Code:
    /etc/ssl/private# ls -la
    total 28
    drwx--x--- 2 root ssl-cert 4096 déc.  17 09:40 .
    drwxr-xr-x 4 root root     4096 déc.  29 13:56 ..
    -rw-r--r-- 1 root root     3168 déc.  17 09:12 apache.pem
    -rw------- 1 root root     1464 déc.  17 09:12 dovecot.pem
    -rw------- 1 root root     1704 déc.  17 09:12 ns3009231.ip-151-80-21.eu.key
    lrwxrwxrwx 1 root root       48 déc.  17 09:40 pure-ftpd.pem -> /usr/local/ispconfig/interface/ssl/ispserver.pem
    -rw------- 1 root root     3168 déc.  17 09:12 pure-ftpd.pem-191217084024.bak
    -rw-r----- 1 root ssl-cert 1704 déc.  17 09:09 ssl-cert-snakeoil.key
    
    Searching in the forum and site i found this message from Ahrasis about "/etc/ssl/private/dhparams.pem" and How to protect your Debian or Ubuntu Server against the Logjam attack.

    Do I need to create "/etc/ssl/private/dhparams.pem" using this comand?

    Code:
    openssl dhparam -out /etc/ssl/private/dhparams.pem 1024
     

    Attached Files:

    Last edited: Jan 5, 2020
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, please create a dhparams file and restart postfix.
     
  12. Christophe69

    Christophe69 Member

    Thank you very much for your response Till. I think i found some clues about my problem.

    Now I have to pick up a friend at the airport but I will try that when I get back.

    After reading the tutorial How to protect your Debian or Ubuntu Server against the Logjam attack. I think maybe i need to do some steps detailed in the tutorial?

    I found several things which are not correct (in my server) with this tutorial:

    1- Generate a unique DH Group:
    I don't have "etc/ssl/private/dhparams.pem"

    2- Apache:
    First, I have "SSLCipherSuite HIGH:!aNULL" in my file "/etc/apache2/mods-available/ssl.conf". This looks like if the configuration is missing.
    Second, my Apache version is > 2.4.8 and OpenSSL > 1.0.2 but i don't have "SSLOpenSSLConfCmd DHParameters "/etc/ssl/private/dhparams.pem"

    I have not yet checked if there are also things missing regarding dovecot and postfix but I think that all this is related?
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    The tutorial you refer to is quite old, just keep the setup that you currently have.
     
  14. Christophe69

    Christophe69 Member

    Sure, I will not do anything without your advice.

    Here it is:

    Generate the file and restart
    Code:
    root@ns3009231:/#openssl dhparam -out /etc/ssl/private/dhparams.pem 1024
    Generating DH parameters, 1024 bit long safe prime, generator 2
    This is going to take a long time
    ...................................................................+..............+.........................................+........+...+............................................................................................................................................................................................................................................................................................+............................................+........................+..............................................................+.................................................+.....+.+............................................+...............+......................................+..............................................+......................................................++*++*++*++*++*
    root@ns3009231:/# /etc/init.d/postfix restart
    
    After that, i check the mail.log:
    Code:
    Jan  5 17:31:50 ns3009231 postfix/postfix-script[19725]: stopping the Postfix mail system
    Jan  5 17:31:50 ns3009231 postfix/master[3437]: terminating on signal 15
    Jan  5 17:31:51 ns3009231 postfix/postfix-script[19856]: warning: symlink leaves directory: /etc/postfix/./smtpd.cert
    Jan  5 17:31:51 ns3009231 postfix/postfix-script[19859]: warning: symlink leaves directory: /etc/postfix/./smtpd.key
    Jan  5 17:31:51 ns3009231 postfix/postfix-script[19899]: starting the Postfix mail system
    Jan  5 17:31:51 ns3009231 postfix/master[19901]: daemon started -- version 3.1.12, configuration /etc/postfix
    Jan  5 17:32:25 ns3009231 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=19955, secured, session=<E6ODFmebeoEAAAAAAAAAAAAAAAAAAAAB>
    Jan  5 17:32:25 ns3009231 dovecot: imap([email protected]): Logged out in=50 out=505
    
    And service status:
    Code:
    Active: active (exited) since Sun 2020-01-05 17:31:51
     
    Last edited: Jan 6, 2020
  15. Christophe69

    Christophe69 Member

    Here is what i got in mail.log when i send mail FROM my test address hosted on the server TO the same address, as asked in https://www.howtoforge.com/community/threads/please-read-before-posting.58408/.

    Code:
    Jan  5 18:00:02 ns3009231 dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<pntGeWebqoIAAAAAAAAAAAAAAAAAAAAB>
    Jan  5 18:00:02 ns3009231 dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<DIFGeWebYpIAAAAAAAAAAAAAAAAAAAAB>
    Jan  5 18:00:02 ns3009231 postfix/smtpd[21813]: connect from localhost[::1]
    Jan  5 18:00:02 ns3009231 postfix/smtpd[21813]: lost connection after CONNECT from localhost[::1]
    Jan  5 18:00:02 ns3009231 postfix/smtpd[21813]: disconnect from localhost[::1] commands=0/0
    Jan  5 18:00:09 ns3009231 postfix/smtpd[21813]: connect from localhost[::1]
    Jan  5 18:00:09 ns3009231 postfix/smtpd[21813]: warning: table "mysql:/etc/postfix/mysql-virtual_client.cf": empty query string -- ignored
    Jan  5 18:00:09 ns3009231 postfix/smtpd[21813]: NOQUEUE: filter: RCPT from localhost[::1]: <[email protected]>: Sender address triggers FILTER amavis:[127.0.0.1]:10026; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<myserver_fqdn.com>
    Jan  5 18:00:09 ns3009231 postfix/smtpd[21813]: 094B2640661: client=localhost[::1]
    Jan  5 18:00:09 ns3009231 postfix/cleanup[22300]: 094B2640661: message-id=<[email protected]>
    Jan  5 18:00:09 ns3009231 postfix/qmgr[20377]: 094B2640661: from=<[email protected]>, size=658, nrcpt=1 (queue active)
    Jan  5 18:00:09 ns3009231 postfix/smtp[22301]: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused
    Jan  5 18:00:09 ns3009231 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=22304, secured, session=<NWGweWebyoIAAAAAAAAAAAAAAAAAAAAB>
    Jan  5 18:00:09 ns3009231 postfix/smtp[22301]: 094B2640661: to=<[email protected]>, relay=none, delay=0.07, delays=0.06/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused)
    Jan  5 18:00:09 ns3009231 postfix/smtpd[21813]: disconnect from localhost[::1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
    Jan  5 18:00:09 ns3009231 dovecot: imap([email protected]): Logged out in=526 out=640
    Jan  5 18:00:09 ns3009231 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=22307, secured, session=<JH25eWeb0IIAAAAAAAAAAAAAAAAAAAAB>
    Jan  5 18:00:09 ns3009231 dovecot: imap([email protected]): Logged out in=70 out=633
    Jan  5 18:00:09 ns3009231 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=22311, secured, session=<amC7eWeb0oIAAAAAAAAAAAAAAAAAAAAB>
    Jan  5 18:00:09 ns3009231 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=22312, secured, session=<bYW7eWeb1IIAAAAAAAAAAAAAAAAAAAAB>
    Jan  5 18:00:09 ns3009231 dovecot: imap([email protected]): Logged out in=76 out=546
    Jan  5 18:00:09 ns3009231 dovecot: imap([email protected]): Logged out in=120 out=766
    Jan  5 18:00:15 ns3009231 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=22315, secured, session=</TgNemeb1oIAAAAAAAAAAAAAAAAAAAAB>
    Jan  5 18:00:15 ns3009231 dovecot: imap([email protected]): Logged out in=315 out=4040
    Jan  5 18:00:30 ns3009231 dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=xxx.xxx.xxx.xxx, lip=xxx.xx.xx.xx, session=<HDT0emebO1Bbqo/I>
    Jan  5 18:00:30 ns3009231 dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=xxx.xxx.xxx.xxx, lip=xxx.xx.xx.xx, session=<+Sv2emebPFBbqo/I>
    Jan  5 18:00:32 ns3009231 dovecot: imap-login: Aborted login (auth failed, 1 attempts in 2 secs): user=<[email protected]>, method=PLAIN, rip=xxx.xxx.xxx.xxx, lip=xxx.xx.xx.xx, session=<WCj5emebPVBbqo/I>
    
     
    Last edited: Jan 6, 2020
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as if parts of the postfix config are missing now. Please do a forced ISPConfig update by running these commands:

    Code:
    cd /tmp
    wget http://www.ispconfig.org/downloads/ISPConfig-3.1.15p2.tar.gz
    tar xvfz ISPConfig-3.1.15p2.tar.gz
    cd ispconfig3_install/install
    php -q update.php
    and choose yes when the updater asks you if it shall reconfigure the services.
     
  17. Christophe69

    Christophe69 Member

  18. till

    till Super Moderator Staff Member ISPConfig Developer

  19. Christophe69

    Christophe69 Member

    Thank you for your responses, Till.
    I'm very sorry to disturb you so much because of my ignorance.

    I did the update, and I also reboot my server.
    Don't know if all is all right now. I will test sending/receiving.

    service postfix status
    Code:
     Active: active (exited) since Sun 2020-01-05 19:36:50 CET; 53s ago
    tail -100 /var/log/mail.log in attached file


    BUT
    While I was writing this message, I received a mail in my mail box (hosted on the server) :).

    Till, I don't want to bother you any longer tonight.
    I will test quietly and I will tell you if everything is OK.

    Again, thank you very much.
     

    Attached Files:

  20. Christophe69

    Christophe69 Member

    Hello,
    after several testings, it seems that sending and receiving emails works correctly from Roundcube. :)
    Thank you very much for your help, Till.

    I just have a last question.

    When i am trying to connect to my mail account (hosted on my ISPConfig server) with Thunderbird, i have got a warning message about the SSL certificate.

    The SSL certificate for "imap.mydomail.tld" seems to be uncorrect. I tried to regenerate a new certificate (just in case) but it doesn't change anything.

    The "Location" is automatically set to "imap.mydomain.tld:143".
    When i click on "Get certificate", it say:
    When i test the Location "imap.mydomain.tld", without ":143", it say:
    In this case, if i click on "View", i see the certificate of an other site hosted on my site "the first site in alphabetical order". So it is wrong.

    When i test the Location "imydomain.tld", without subdomain "imap" and without ":143", the certificate is valid.
     

Share This Page