STARTTLS issue postfix

Discussion in 'General' started by CrypticDesigns, Apr 30, 2015.

  1. Hello,

    I am working with ISPconfig for a while now and it really is a good control panel, therefor I would like to thank the developers for this! I got an issue now with my postfix configuration. I searched for the problem in my configs, checked google and the howtoforge database but I can't get it working yet. I am using an SSL certificate from comodo to secure my mail server and when I try to send a mail in Thunderbird it gives me the "5.7.0 Must issue a STARTTLS command first" error. Running Ubuntu 14.04 64bit with latest postfix and dovecot. My postfix configurations now look like this:

    main.cfg
    link
    (couldn't make a post larger than 1000 characters)
    master.cfg
    link
    I thought it maybe had something to do with submission in master.cfg but this isn't commented. Who could give me a solution?
    Thank you
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The config looks fine. But maybe there is another mail daemon listening on smtps port, I just had it a few weeks ago that a manually preinstalled sendmail was using the port. Please post the output of:

    netstat -tap | grep smtp
     
  3. But then when the port is being used why should it give me the STARTTLS error? I can connect to the server with SSL and all.....
    The output:
    Code:
    root@mydomain:~# netstat -tap | grep smtp
    tcp        0      0 *:smtp                  *:*                     LISTEN      2602/master
    tcp6       0      0 [::]:smtp               [::]:*                  LISTEN      2602/master
    
     
  4. Alright so I also tried with outlook but still no succes. When I looked at the mail.log I got the following:
    Code:
    May  3 13:50:34 mydomain.net dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=myIP, lip=muIP, mpid=28073, TLS, session=<XW6bDSwVfAAfl54D>
    May  3 13:51:52 mydomain.net postfix/smtpd[28167]: warning: unknown smtpd_tls_loglevel value "smtpd_sasl_type" in "3  smtpd_sasl_type = dovecot  smtpd_sasl_path = private/auth  smtpd_sasl_auth_enable = yes"
    May  3 13:51:52 mydomain.net postfix/smtpd[28167]: connect from localhost.localdomain[127.0.0.1]
    May  3 13:51:52 mydomain.net postfix/smtpd[28167]: disconnect from localhost.localdomain[127.0.0.1]
    So I maybe thought the smtpd_tls_loglevel gave me the STARTTLS error, removed that line and got the following when I restarted:
    Code:
    ay  3 13:53:36 mydomain postfix/master[28552]: daemon started -- version 2.11.0, configuration /etc/postfix
    May  3 13:53:52 mydomain postfix/tlsmgr[28563]: error: open database /var/lib/postfix/smtp_scache  smtpd_sasl_type = dovecot  smtpd_sasl_path = private/auth  smtpd_sasl_auth_enable = yes.db: No such file or directory
    May  3 13:53:52 mydomain postfix/tlsmgr[28563]: warning: btree:/var/lib/postfix/smtp_scache  smtpd_sasl_type = dovecot  smtpd_sasl_path = private/auth  smtpd_sasl_auth_enable = yes is unavailable. open database /var/lib/postfix/smtp_scache  smtpd_sasl_type = dovecot  smtpd_sasl_path = private/auth  smtpd_sasl_auth_enable = yes.db: No such file or directory
    May  3 13:53:53 mydomain postfix/smtpd[28561]: connect from localhost.localdomain[127.0.0.1]
    When I try to send a mail it just connects and disconnects and nothing else:
    Code:
    May  3 13:58:10 mydomain postfix/anvil[28567]: statistics: max connection rate 1/60s for (submission:myIP) at May  3 13:54:00
    May  3 13:58:10 mydomain postfix/anvil[28567]: statistics: max connection count 1 for (submission:myIP) at May  3 13:54:00
    May  3 13:58:10 mydomain postfix/anvil[28567]: statistics: max cache size 1 at May  3 13:54:00
    May  3 13:58:10 mydomain postfix/submission/smtpd[28897]: connect from m-y-I-P.dynamic.upc.nl[myIP]
    May  3 13:58:12 mydomain postfix/submission/smtpd[28897]: disconnect from m-y-I-P.dynamic.upc.nl[myIP]
    I really need to fix this soon. Does anybody have an idea?
     

Share This Page