发件人: Alexander Dalloz 发送时间: 2007-07-19 19:08:10 收件人: cyrus-sasl@xxxxxxxxxxxxxxxxxxxx 抄送: 主题: Re: Postfix + SASL Problem Patrick Ben Koetter schrieb: > * Jeff Huang <jbhuang@xxxxxxxxxxx >: > > Hi,I Using SASL for My Postfix Authentication.The pwcheck_method is > > saslauthd.My Postfix works with Virtual domain mode,So the user is > > id@xxxxxxxxxx,But when I send mail,sasl authentication failed.The log is > > saslauthd[11349]: do_auth : auth failure: [user=id] > > [service=smtp] [realm=domain.com] [mech=pam] [reason=PAM auth error] I > > want Postfix send user with the full name like id@xxxxxxxxxx to sasl,How > > I can do it? > > Run saslauthd with the command line option "-r". > > p@rick Follow Patrick,Runing saslauthd with "-r”,the Problem is solved. Hi Patrick, doesn't he already use that parameter as saslauthd sees the realm? Jeff, you are using saslauthd with PAM as the backend. What kind of PAM setup do you use for SMTP? Not each PAM configuration can handle realmed The PAM_Mysql I used. user credentials, like authing against system accounts (passwd/shadow). What does "ps axuwwww | grep saslauthd" say and what "cat /etc/pam.d/smtp"? Alexander 28346 ? Ss 0:00 /usr/local/sbin/saslauthd -r -m /var/run/saslauthd -a pam 28347 ? S 0:00 /usr/local/sbin/saslauthd -r -m /var/run/saslauthd -a pam 28348 ? S 0:00 /usr/local/sbin/saslauthd -r -m /var/run/saslauthd -a pam 28349 ? S 0:00 /usr/local/sbin/saslauthd -r -m /var/run/saslauthd -a pam 28350 ? S 0:00 /usr/local/sbin/saslauthd -r -m /var/run/saslauthd -a pam P.S. Sorry Patrick that my first reply got to you personally be accident.