<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial'; COLOR: #000000">
<DIV>Hi everyone,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am stack. I would like to use in my test environment virtual domains and 
emails.</DIV>
<DIV>&nbsp;</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>&nbsp;</DIV>
<DIV>/etc/default/saslauthd</DIV>
<DIV>&nbsp;</DIV>
<DIV>START=yes</DIV>
<DIV>MECHANISMS="sasldb"</DIV>
<DIV>MECH_OPTIONS=""</DIV>
<DIV>THREADS=5</DIV>
<DIV>&nbsp;</DIV>
<DIV>#chroot Postfix</DIV>
<DIV>OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd”</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</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>&nbsp;</DIV>
<DIV>mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp</DIV>
<DIV>&nbsp;</DIV>
<DIV>#-----------------------------------------------------</DIV>
<DIV># Virtual mailbox/domains with delivery to cyrus lmtp</DIV>
<DIV>#-----------------------------------------------------</DIV>
<DIV>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV>&nbsp;</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>&nbsp;</DIV>
<DIV>&nbsp;</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>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>/var/log/mail.log</DIV>
<DIV>Mar&nbsp; 7 15:49:23 srv01 cyrus/imaps[3906]: badlogin: [192.168.1.1] 
plaintext info SASL(-13): authentication failure: checkpass failed</DIV>
<DIV>&nbsp;</DIV>
<DIV>/var/log/auth.log</DIV>
<DIV>Mar&nbsp; 7 15:49:23 srv01 saslauthd[3655]: 
do_auth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : auth failure: 
[user=info] [service=imap] [realm=] [mech=sasldb] [reason=Unknown]</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</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>&nbsp;</DIV>
<DIV>What I need to change?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank you.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></DIV></DIV></BODY></HTML>