I can't send and receive emails

Discussion in 'General' started by mymmo73, Jun 4, 2019.

  1. mymmo73

    mymmo73 Member

    Hi, let me say that I am a beginner on the subject so I am not a programmer. I installed ISPconfig 3 I installed and configured some sites and they work perfectly, the only thing I can't get to work is the e-mail box I can't send and receive the mail I configured by following some guides do you have any suggestions? thank you
     
  2. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    What happens when you try to send or receive? Any errors?

    Try using webmail right on the server and send from one local account to another, then see if that account has the message under their webmail login. If not, check the mail.log for errors.

    If webmail tests good, setup a mail client to check pop or info and see if you can access the mail.

    Then test sending from your mail client, and watch the mail.log for errors.
     
  3. mymmo73

    mymmo73 Member

    thanks for your intervention, when you say you send an email directly from the server you mean from my domain provider? if you mean that I can't do it because I purchased a plan where e-mail is not used
     
  4. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Your initial post sounded like you were configuring mail services on an ISPConfig server; my suggestion is to send a test message from an account hosted on that server to another account on that server, to see if mail local to the server is processing (eg. no network/firewall type issues in play).
    I'm not sure what you mean there, but if you aren't allowed to send/receive email in your hosting plan, that is very likely why you can't send and receive email (your initial problem), no?
     
  5. mymmo73

    mymmo73 Member

    in fact in my plan the e-mail service is not included, I thought it was possible to configure it equally on ISPconfig..
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    E-mails with ISPConfig work after following the Perfect Server Guide, provided the host is otherwise suitably set up for e-mail. For example, it is in DNS with MX record and matching PTR record, and ports necessary for e-mail are not blocked.
    What were those guides? If you have done something in addition to following Perfect Server Guide, that may be why emails do not work.
    But like @Jesse Norell already wrote, log in to webmail on your server and send e-mail to that same account. If that works, send to some other account elsewhere that you can read, and then try answering to that message.
     
  7. mymmo73

    mymmo73 Member

    sorry if I did not answer immediately, to configure the mailbox I followed this video https ://youtu.be/0PUMN5ZTuZA I did nothing special, however I entered the server of my hosting, from sending and receiving them without problems. .
     
  8. mymmo73

    mymmo73 Member

    how do you check mail.log?
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    e.g. with the tail command:

    tail -n 200 /var/log/mail.log

    will show you the most recent 200 lines of the log
     
  10. mymmo73

    mymmo73 Member

    I ran the command I put the file in the attachment you can check? thank you?
     

    Attached Files:

  11. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You should read the mail log yourself. I do not know which partst of that long log are relevant to sending or receiving.
    Send a mail to somewhere you can read, and monitor what happens in mail.log for that message. Then do the same when your host receives a message from somewhere else.
    You can even keep the mail.log running in a terminal window like this:
    Code:
    tail -f /var/log/mail.log
    But for successful mail server, you need a hosting where ports necessary for e-mail delivery are NOT BLOCKED. Also, for other mail-server to accept mails your server sends, your server should have in name service the $myhostname your mail server software uses and reverse DNS PTR record that matches that IP-number. And have MX-record that points to your mail server.
    https://www.howtoforge.com/community/threads/please-read-before-posting.58408/
    https://www.howtoforge.com/tutorial...vice-with-ispconfig/#nbspreverse-name-service
    https://www.howtoforge.com/community/threads/mail-send-and-receive-problem.82204/
     
  12. mymmo73

    mymmo73 Member

    doing the tests I keep getting these logs but I can't get through them, can you suggest me some solution?


    Jun 20 14:31:41 webitalia postfix/smtps/smtpd[5301]: connect from localhost[127.0.0.1]
    Jun 20 14:35:02 webitalia dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<SAomk8CLXK1/AAAB>
    Jun 20 14:35:02 webitalia dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<CSUmk8CLxLd/AAAB>
    Jun 20 14:35:02 webitalia postfix/smtps/smtpd[5491]: connect from localhost[127.0.0.1]
    Jun 20 14:35:02 webitalia postfix/smtps/smtpd[5491]: SSL_accept error from localhost[127.0.0.1]: lost connection
    Jun 20 14:35:02 webitalia postfix/smtps/smtpd[5491]: lost connection after CONNECT from localhost[127.0.0.1]
    Jun 20 14:35:02 webitalia postfix/smtps/smtpd[5491]: disconnect from localhost[127.0.0.1] commands=0/0
    Jun 20 14:36:41 webitalia postfix/smtps/smtpd[5301]: SSL_accept error from localhost[127.0.0.1]: Connection timed out
    Jun 20 14:36:41 webitalia postfix/smtps/smtpd[5301]: lost connection after CONNECT from localhost[127.0.0.1]
    Jun 20 14:36:41 webitalia postfix/smtps/smtpd[5301]: disconnect from localhost[127.0.0.1] commands=0/0
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the file /etc/postfix/master.cf from your server.
     
  14. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  15. mymmo73

    mymmo73 Member

  16. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  17. mymmo73

    mymmo73 Member

    Unfortunately the backup on my host was not enabled..:(
     
  18. mymmo73

    mymmo73 Member

    I did what was indicated in the link you reported to me, this is the result:
    Code:
    login as: root
    [email protected]'s password:
    Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-48-generic x86_64)
    
     * Documentation:  https://help.ubuntu.com
     * Management:     https://landscape.canonical.com
     * Support:        https://ubuntu.com/advantage
    
      System information as of Sat Jun 22 16:15:03 CEST 2019
    
      System load:  0.13               Processes:           130
      Usage of /:   34.5% of 18.72GB   Users logged in:     0
      Memory usage: 59%                IP address for eth0: 95.216.159.228
      Swap usage:   0%
    
     * Ubuntu's Kubernetes 1.14 distributions can bypass Docker and use containerd
       directly, see https://bit.ly/ubuntu-containerd or try it now with
    
         snap install microk8s --classic
    
     * Canonical Livepatch is available for installation.
       - Reduce system reboots and improve kernel security. Activate at:
         https://ubuntu.com/livepatch
    
    118 packages can be updated.
    72 updates are security updates.
    
    
    You have new mail.
    Last login: Sat Jun 22 13:07:52 2019 from 79.49.16.246
    root@webitalia:~# wget -q -O htf-common-issues.php "http://gitplace.net/pixcept/ispconfig-tools/raw/stable/htf-common-issues.php" && php -q htf-common-issues.php
    
    ##### SCRIPT FINISHED #####
    Results can be found in htf_report.txt
    To view results use your favourite text editor or type 'cat htf_report.txt | more' on the server console.
    
    If you want to see the non-anonymized output start the script with --debug as parameter (php -q htf-common-issues.php --debug).
    
    root@webitalia:~# cat htf_report.txt | more
    
    ##### 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
    
    [WARN] Could not open configured ISPConfig database (dbispconfig).
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.2.17-0ubuntu***.***.***.***
    
    ##### PORT CHECK #####
    
    [WARN] Port 465 (SMTP server SSL) seems NOT to be listening
    
    ##### MAIL SERVER CHECK #####
    
    [WARN] I found no "submission" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer port 587 for smtp connecti
    ons you have to enable this.
    [WARN] I found no "smtps" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer SSL for smtp (not TLS) con
    nections you have to enable this.
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
            Apache 2 (PID 1192)
    [INFO] I found the following mail server(s):
            Postfix (PID 1334)
    [INFO] I found the following pop3 server(s):
            Dovecot (PID 919)
    [INFO] I found the following imap server(s):
            Dovecot (PID 919)
    [INFO] I found the following ftp server(s):
            PureFTP (PID 1413)
    
    ##### LISTENING PORTS #####
    (only           ()
    Local           (Address)
    [localhost]:10023               (1221/postgrey)
    [localhost]:10024               (1458/amavisd-new)
    [localhost]:10025               (1334/master)
    [localhost]:10026               (1458/amavisd-new)
    [localhost]:3306                (1167/mysqld)
    [localhost]:10027               (1334/master)
    [localhost]:11211               (920/memcached)
    [anywhere]:110          (919/dovecot)
    [anywhere]:143          (919/dovecot)
    [anywhere]:21           (1413/pure-ftpd)
    ***.***.***.***:53              (933/named)
    [localhost]:53          (933/named)
    ***.***.***.***:53              (610/systemd-resolve)
    [anywhere]:22           (985/sshd)
    [anywhere]:25           (1334/master)
    [localhost]:953         (933/named)
    [anywhere]:993          (919/dovecot)
    [anywhere]:995          (919/dovecot)
    *:*:*:*::*:10024                (1458/amavisd-new)
    *:*:*:*::*:10026                (1458/amavisd-new)
    [localhost]10           (919/dovecot)
    [localhost]43           (919/dovecot)
    *:*:*:*::*:8080         (1192/apache2)
    *:*:*:*::*:80           (1192/apache2)
    *:*:*:*::*:8081         (1192/apache2)
    *:*:*:*::*:21           (1413/pure-ftpd)
    *:*:*:*::*:53           (933/named)
    *:*:*:*::*:22           (985/sshd)
    *:*:*:*::*:25           (1334/master)
    *:*:*:*::*:953          (933/named)
    *:*:*:*::*:443          (1192/apache2)
    *:*:*:*::*:993          (919/dovecot)
    *:*:*:*::*:995          (919/dovecot)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    
    
    
    root@webitalia:~# your postfix master.cf
    your: command not found
    root@webitalia:~# [INFO] this is not critical, but if you want to offer port 587 for smtp
    [INFO]: command not found
    root@webitalia:~#
    
    the ispconfig login page partially loads, as you can see, the logo is not visible, moreover it no longer recognizes the access data ...
    [​IMG]
    [​IMG]
     
    Last edited: Jun 22, 2019
  19. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    ISPConfig problems may be because of that. At least the login not successful.
    What has happened to that database? Use PHPMyadmin for example to verify that database exist and has data inside.
    Does file
    Code:
    /usr/local/ispconfig/server/lib/config.inc.php
    exist? Do not show contents of that file here, since it has the password of your database. But look at the contents, does it look good and has the right password?
     
  20. mymmo73

    mymmo73 Member

    this is the result:
    Code:
    login as: root
    [email protected]'s password:
    Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-48-generic x86_64)
    
     * Documentation:  https://help.ubuntu.com
     * Management:     https://landscape.canonical.com
     * Support:        https://ubuntu.com/advantage
    
      System information as of Sun Jun 23 12:46:00 CEST 2019
    
      System load:  0.0                Processes:           131
      Usage of /:   34.8% of 18.72GB   Users logged in:     0
      Memory usage: 60%                IP address for eth0: 95.216.159.228
      Swap usage:   0%
    
     * Ubuntu's Kubernetes 1.14 distributions can bypass Docker and use containerd
       directly, see https://bit.ly/ubuntu-containerd or try it now with
    
         snap install microk8s --classic
    
     * Canonical Livepatch is available for installation.
       - Reduce system reboots and improve kernel security. Activate at:
         https://ubuntu.com/livepatch
    
    125 packages can be updated.
    72 updates are security updates.
    
    
    You have new mail.
    Last login: Sun Jun 23 12:42:49 2019 from 79.49.16.246
    root@webitalia:~# /usr/local/ispconfig/server/lib/config.inc.php
    -bash: /usr/local/ispconfig/server/lib/config.inc.php: Permission denied
    root@webitalia:~#
    
    [​IMG]
     
    Last edited: Jun 23, 2019

Share This Page