Postfix SMTP Authentication - On The Secure Port Only - MECH question

Discussion in 'HOWTO-Related Questions' started by bendycode, Dec 29, 2008.

  1. bendycode

    bendycode New Member

    How do I change MECH values?


    Sure enough, my authentication failed the test.

    The article says: **If the authentication is not successful, you may have to change the MECH value in /etc/sysconfig/saslauthd and /etc/init.d/saslauthd.

    I don't have an /etc/sysconfig/saslauthd file, and I don't see what I need to change in /etc/init.d/saslauthd

    saslauthd -V shows:

    authentication mechanisms: sasldb getpwent kerberos5 pam rimap shadow ldap

    I got to this point after following http://howtoforge.com/virtual-users-domains-postfix-courier-mysql-squirrelmail-ubuntu8.04 , having everything work, except for SMTP to the server. My ISP blocks port 25, and ports 465 and 587 were not yet serving secure SMTP. That lead me to this howto.


    Thanks in advance for your help!
    -Steve-
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Which distribution are you using?
     
  3. bendycode

    bendycode New Member

    Ubuntu 8.04.1
     
  4. falko

    falko Super Moderator Howtoforge Staff

    What's in /etc/postfix/sasl/smtpd.conf?
     
  5. bendycode

    bendycode New Member

    pwcheck_method: saslauthd
    mech_list: plain login
     
  6. falko

    falko Super Moderator Howtoforge Staff

    According to the tutorial it should look as follows:
    Code:
    pwcheck_method: saslauthd
    mech_list: plain login
    allow_plaintext: true
    auxprop_plugin: mysql
    sql_hostnames: 127.0.0.1
    sql_user: mail_admin
    sql_passwd: mail_admin_password
    sql_database: mail
    sql_select: select password from users where email = '%u'
     

Share This Page