No Mail received/send. with fresh install Ubuntu 18.04 and Automated install ISPconfig

Discussion in 'Installation/Configuration' started by Robin.k, Jul 24, 2019.

  1. Robin.k

    Robin.k Member

    Hi, I just installed Ubuntu 18.04 with automated ISPConfig install.
    I setup DNS, website and email domain with and mailbox.
    Website is running fine with the Letsencrypt SLL.
    I can login to Roundcube but I can not receive and send mails.

    Where to start to solve this problem?

    Thanks
     
  2. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Use roundcube to send an email to another mailbox on the same server, and see if you get that. If so, check for open ports in firewalls (your system, upstream firewall(s) and make sure your isp doesn't block port 25). Try sending a message both from the inside to outside world and vice-versa and see what shows up in the mail log.
     
    ahrasis likes this.
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Compare the mail server installation and there especially the master.cf file of your server with the instructions from the official install guide (perfect server tutorial) for your Linux distribution.
     
  4. Robin.k

    Robin.k Member

    Hi, I send in Roundcube a mail to another mailbox on this server, no succes. In Roundcube I get the Error "Server Failure"
    In ISPConfig the mail log says
    Code:
    Jul 24 08:07:15 sever-macmini postfix/smtps/smtpd[7682]: SSL_accept error from unknown[45.13.39.12]: -1
    Jul 24 08:07:15 sever-macmini postfix/smtps/smtpd[7682]: warning: TLS library problem: error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../ssl/record/ssl3_record.c:332:
    Jul 24 08:07:15 sever-macmini postfix/smtps/smtpd[7682]: lost connection after CONNECT from unknown[45.13.39.12]
    Jul 24 08:07:15 sever-macmini postfix/smtps/smtpd[7682]: disconnect from unknown[45.13.39.12] commands=0/0
    Jul 24 08:07:31 sever-macmini postfix/smtps/smtpd[6374]: connect from localhost[127.0.0.1]
    Jul 24 08:07:37 sever-macmini postfix/smtps/smtpd[6452]: connect from unknown[45.13.39.12]
    Jul 24 08:08:08 sever-macmini postfix/smtps/smtpd[6452]: SSL_accept error from unknown[45.13.39.12]: -1
    Jul 24 08:08:08 sever-macmini postfix/smtps/smtpd[6452]: warning: TLS library problem: error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../ssl/record/ssl3_record.c:332:
    Jul 24 08:08:08 sever-macmini postfix/smtps/smtpd[6452]: lost connection after CONNECT from unknown[45.13.39.12]
    Jul 24 08:08:08 sever-macmini postfix/smtps/smtpd[6452]: disconnect from unknown[45.13.39.12] commands=0/0
    Jul 24 08:08:28 sever-macmini postfix/smtps/smtpd[7660]: SSL_accept error from mail128-20.atl41.mandrillapp.com[198.2.128.20]: Connection reset by peer
    Jul 24 08:08:28 sever-macmini postfix/smtps/smtpd[7660]: lost connection after CONNECT from mail128-20.atl41.mandrillapp.com[198.2.128.20]
    Jul 24 08:08:28 sever-macmini postfix/smtps/smtpd[7660]: disconnect from mail128-20.atl41.mandrillapp.com[198.2.128.20] commands=0/0
     
  5. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    How did you secure you mail server at the first place?
     
  6. Robin.k

    Robin.k Member

    I installed Ubuntu 18.04 with automated ISPConfig install. I followed the manual https://www.howtoforge.com/tutorial/ubuntu-ispconfig-automated-install-script/. I setup a client, add a DNS-Zone, setup a website, setup a mail. Website is working and I can reach Roundcube also. I get the "welcome" mail in Roundcube. But can not receive or send mails. In the server configuration I setup relais host mail.antagonist.nl:587 with the correct username/password.
    I connect to the internet without a firewall, and the firewall in ISPconfig is not set.
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    This autoinstall script is not from ISPConfig and the mail server config it creates is buggy, the master.cf file is not edited correctly sometimes, that's why I told you to use an official install guide from ispconfig and compare your server config with it to fix your mail sending problem. See my post #3 in this thread.
     
  8. Robin.k

    Robin.k Member

    Ok thanks Till, I compared the master.cf with the "perfect server tutorial" and changed the lines. Now it works again.

    I have only one problem. When I checked my mail with MXtoolbox it says "SMTP Banner Check" "Reverse DNS does not match SMTP Banner" how can I solve this problem?
     
    Last edited: Jul 26, 2019
  9. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    From what I remember using mxtoolbox, it explains the errors it finds and suggest what to do. Did this not happern for you?
    To get rid that of warning, you need to create reverse DNS record for that mail hosts IP-number that matches the FQDN the host advertices in the SMTP Banner.
    https://en.wikipedia.org/wiki/Reverse_DNS_lookup
    https://www.howtoforge.com/tutorial...vice-with-ispconfig/#nbspreverse-name-service
    What show commands
    Code:
    grep smtpd_banner /etc/postfix/main.cf
    
    grep myhostname /etc/postfix/main.cf
     
  10. Robin.k

    Robin.k Member

    Hi,
    My main.cf says.
    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    myhostname = server-macmini.XXX.nl
     
  11. Robin.k

    Robin.k Member

    Ok, it works now I changed
    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    to
    smtpd_banner = $ myhostname ESMTP (Ubuntu). I search "myhostname" with "Reverse DNS Hostname Lookup"

    Thanks
     
  12. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I do not understand your change. Are you quite sure you now have a working setup?
     
  13. Robin.k

    Robin.k Member

    When I check with mxtoolbox.com, "check my email server" it says
    "SMTP Banner Check OK - Reverse DNS matches SMTP Banner"
     

Share This Page