<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial'; COLOR: #000000">
<DIV>Hi everyone,</DIV>
<DIV> </DIV>
<DIV>I am stack. I would like to use in my test environment virtual domains and
emails.</DIV>
<DIV> </DIV>
<DIV>I have 2 domains. The users from default domain i can via sasl and pam
authenticate without problem. I use in my mail software credentials like user
password.</DIV>
<DIV>Now I don’t want to use pam mechanism, but sasldb. See hereunder my
configs:</DIV>
<DIV> </DIV>
<DIV>/etc/default/saslauthd</DIV>
<DIV> </DIV>
<DIV>START=yes</DIV>
<DIV>MECHANISMS="sasldb"</DIV>
<DIV>MECH_OPTIONS=""</DIV>
<DIV>THREADS=5</DIV>
<DIV> </DIV>
<DIV>#chroot Postfix</DIV>
<DIV>OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd”</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>/etc/postfix/main.cf</DIV>
<DIV>#only sasl/virtual related config info!</DIV>
<DIV>mydomain = domain.tld</DIV>
<DIV>myhostname = mail.domain.tld</DIV>
<DIV>mydestination = mail.domain.tld, domain.tld, localhost.domain.tld,
localhost</DIV>
<DIV> </DIV>
<DIV>mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp</DIV>
<DIV> </DIV>
<DIV>#-----------------------------------------------------</DIV>
<DIV># Virtual mailbox/domains with delivery to cyrus lmtp</DIV>
<DIV>#-----------------------------------------------------</DIV>
<DIV> </DIV>
<DIV>virtual_transport = $mailbox_transport</DIV>
<DIV>virtual_mailbox_domains = domain.tld, domain2.tld</DIV>
<DIV>virtual_mailbox_maps = hash:/etc/postfix/vmailbox</DIV>
<DIV>virtual_alias_maps = hash:/etc/postfix/virtual</DIV>
<DIV> </DIV>
<DIV>/etc/postfix/vamilbox</DIV>
<DIV>#-----------------------------------</DIV>
<DIV>#domain.tld</DIV>
<DIV>#user@domain.tld user@domain.tld </DIV>
<DIV><A href="mailto:andrey@domain.tld">andrey@domain.tld</A>
domain.tld/andrey</DIV>
<DIV><A href="mailto:info@domain.tld">info@domain.tld</A> domain.tld/info</DIV>
<DIV>#-----------------------------------</DIV>
<DIV>#domain2.tld</DIV>
<DIV>#user@domain.tld user@domain.tld </DIV>
<DIV><A href="mailto:info@domain2.tld">info@domain2.tld</A>
domain2.tld/info</DIV>
<DIV> </DIV>
<DIV>/etc/postfix/virtual</DIV>
<DIV>#-----------------------------------</DIV>
<DIV>#domain.tld</DIV>
<DIV>#user@domain.tld user@domain.tld </DIV>
<DIV><A style='href: "mailto:andrey@domain.tld"'>andrey@domain.tld</A>
andrey</DIV>
<DIV><A style='href: "mailto:info@domain.tld"'>info@domain.tld</A> info</DIV>
<DIV></DIV>
<DIV>#-----------------------------------</DIV>
<DIV>#domain2.tld</DIV>
<DIV>#user@domain.tld user@domain.tld </DIV>
<DIV><A href="mailto:info@domain2.tld">info@domain2.tld</A> info</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>/etc/imapd.conf</DIV>
<DIV>#only sasl/virtual related config info!</DIV>
<DIV>allowplaintext: yes</DIV>
<DIV>sasl_mech_list: PLAIN</DIV>
<DIV>loginrealms: <U><FONT color=#0066cc>domain.tld,</FONT></U><FONT
color=#0066cc><U>domain2.tld</U></FONT></DIV>
<DIV>virtdomains: userid</DIV>
<DIV>defaultdomain: <U><FONT style="COLOR: #0066cc">domain.tld</FONT></U></DIV>
<DIV>sasl_pwcheck_method: saslauthd</DIV>
<DIV>sasl_auto_transition: no </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Then I did following steps:</DIV>
<DIV>saslpasswd2 -u <U><FONT style="COLOR: " color=#0066cc>domain.tld</FONT></U>
info</DIV>
<DIV>testsaslauthd -u info -r <U><FONT style="COLOR: "
color=#0066cc>domain.tld</FONT></U> -p Pa77w0rd</DIV>
<DIV>0: OK "Success."</DIV>
<DIV>testsaslauthd -u info<A href="mailto:info@domain.tld">@domain.tld</A> -p
Pa77w0rd</DIV>
<DIV>0: NO "authentication failed"</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>/var/log/mail.log</DIV>
<DIV>Mar 7 15:49:23 srv01 cyrus/imaps[3906]: badlogin: [192.168.1.1]
plaintext info SASL(-13): authentication failure: checkpass failed</DIV>
<DIV> </DIV>
<DIV>/var/log/auth.log</DIV>
<DIV>Mar 7 15:49:23 srv01 saslauthd[3655]:
do_auth : auth failure:
[user=info] [service=imap] [realm=] [mech=sasldb] [reason=Unknown]</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>In windows live mail I use following credentials: <A
href="mailto:info@domain.tld">info@domain.tld</A> Pa77w0rd. And I cannot
login... </DIV>
<DIV>I do not understand, why it does not work?</DIV>
<DIV> </DIV>
<DIV>What I need to change?</DIV>
<DIV> </DIV>
<DIV>Thank you.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV></DIV></DIV></BODY></HTML>