Postfix - problem with reading configuration

Discussion in 'Server Operation' started by Poliman, Jan 30, 2017.

  1. Poliman

    Poliman Member

    I have a strange problem. I configured the line "-o smtpd_sasl_security_options=noanonymous,noplaintext" in /etc/postfix/master.cf file and then restarted it. Then I tried telnet connection to test that this setting is working:
    telnet localhost 25
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    220 server.example.com ESMTP Postfix (Ubuntu)
    ehlo server.example.com
    250-server.example.com
    250-PIPELINING
    250-SIZE
    250-VRFY
    250-ETRN
    250-STARTTLS
    250-AUTH PLAIN LOGIN CRAM-MD5
    250-AUTH=PLAIN LOGIN CRAM-MD5
    250-ENHANCEDSTATUSCODES
    250-8BITMIME
    250 DSN

    As you see - bolded lines - this config line not works. But after paste it to /etc/postfix/main.cf file I've got this:
    telnet localhost 25
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    220 server.example.com ESMTP Postfix (Ubuntu)
    ehlo server.example.com
    250-server.example.com
    250-PIPELINING
    250-SIZE
    250-VRFY
    250-ETRN
    250-STARTTLS
    250-AUTH CRAM-MD5 #here no plaintext
    250-AUTH=CRAM-MD5 #here no plaintext
    250-ENHANCEDSTATUSCODES
    250-8BITMIME
    250 DSN

    So that means that master.cf file is corrupted or something? I have few more config options in master.cf but now I am not sure they work:
    -o smtpd_sasl_tls_security_options=noanonymous,noplaintext #for smtps and submission

    part for smtps:
    -o syslog_name=postfix/smtps
    -o smtpd_tls_wrappermode=yes
    -o smtpd_sasl_auth_enable=yes
    -o smtpd_client_restrictions=permit_sasl_authenticated,reject

    part for submission:
    -o syslog_name=postfix/submission
    -o smtpd_tls_security_level=encrypt
    -o smtpd_sasl_auth_enable=yes
    -o smtpd_client_restrictions=permit_sasl_authenticated,reject
     

Share This Page