Hi guys,<br><br>Here is my query. I have cyrus-imapd (with cyrus-sasl)which runs on 143 and 110. I want to have user level restrictions on my 143 port.. I have generated two instances on imapd one on 143 and other on 5122 ports. <br>
<br>SERVICES {<br> # add or remove based on preferences<br> imap cmd="imapd" listen="imap" prefork=5<br>#imaps cmd="imapd -s" listen="imaps" prefork=1<br> pop3 cmd="pop3d" listen="pop3" prefork=3<br>
#pop3s cmd="pop3d -s" listen="pop3s" prefork=1<br> sieve cmd="timsieved" listen="sieve" prefork=0<br>#Added by Ashay<br> <b> imapnew cmd="imapd" listen="imapnew" prefork=5</b><br>
etc......<br>}<br><br>now i want one imap on 143 to obey /etc/pam.d/imap and other imapnew (5122) instance to obey /etc/pam.d/imapnew<br><br>can anyone tell me how this is possible?<br><br>my /etc/pam.d/imap file:<br><b><i><br>
cat /etc/pam.d/imap<br>auth required /lib/security/pam_ldap.so<br>auth required /lib/security/pam_listfile.so item=user sense=allow file=/usr/local/etc/imapallow onerr=fail<br>account required /lib/security/pam_ldap.so</i></b><br>
<br><br>my /etc/pam.d/imapnew file:<br><b><i><br>cat /etc/pam.d/imapnew<br>auth sufficient /lib/security/pam_ldap.so<br>account sufficient /lib/security/pam_ldap.so</i></b><br><br>can anyone suggest how to achieve this? is there any PAM_SERVICE=imapnew parameter i can pass??<br>
<br>regards,<br>Ashay<br><br>