> Hi again.
> Thanks for your answer, 
> I don't run postfix in a jail.
> 
> [EMAIL PROTECTED] postfix]# grep smtpd master.cf
> smtp      inet  n       -       n       -       -       smtpd
> 587      inet  n       -       n       -       -       smtpd
> #submission inet n       -       n       -       -       smtpd
> #  -o smtpd_enforce_tls=yes
> #  -o smtpd_sasl_auth_enable=yes
> #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
> smtps     inet  n       -       n       -       -       smtpd
>   -o smtpd_tls_wrappermode=yes
>   -o smtpd_sasl_auth_enable=yes
>   -o smtpd_client_restrictions=permit_sasl_authenticated,reject
> 
> Also I don't want to use sasldb for my authentication; my user information
> is in mysql database.
If you store user information in mysql, you also need to install cyrus-sasl-sql 
package

# yum install cyrus-sasl-sql

And use following smtpd.conf

pwcheck_method: auxprop
mech_list: PLAIN LOGIN CRAM-MD5
auxprop_plugin: sql
sql_engine: mysql
sql_hostnames: localhost
sql_user: postfix
sql_passwd: postfix
sql_database: postfix
sql_select: select password from mailbox where username = '[EMAIL PROTECTED]' 
and active='1'
log_level: 3

Use postfixadmin to manage your users in mysql

Reply via email to