LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SASLAUTHD with PAM (https://www.linuxquestions.org/questions/linux-newbie-8/saslauthd-with-pam-647948/)

onik 06-09-2008 02:36 AM

SASLAUTHD with PAM
 
I have centos 4.6. with postfix version 2.5.2. I am trying to have sasl configured for plain text authentication repaying, but having trouble implementing it.

My postfix Log says (/var/log/varlog) :
Jun 9 14:09:19 postfix/smtpd[473]: fatal: no SASL authentication mechanisms

SASL message (saslauthd -V):
saslauthd 2.1.22
authentication mechanisms: getpwent kerberos5 rimap shadow

I want to use PAM for authentication of SMTP.

Please help.

Thanks a Million in advance!
onik

garyalex 06-09-2008 04:24 AM

From your output there, you would possibly need to compile pam support in saslauthd ... then you can enable pam with the option "-a pam" when starting saslauthd...

onik 06-11-2008 05:13 AM

Dovecot
 
Hello,

Now I am trying to use dovecot for sasl rather than saslauthd.
I have installed Dovecot. It is working fine for POP when I telnet to Port 110.

The postconf -a command also gives me dovecot.
[root@ ~]# postconf -a
cyrus
dovecot

However when I add smtpd_sasl_type = dovecot in the main.cf of postfix, postfix goes blank on telnet to port 25.

When I try to add dovecot SASL code in dovecot.conf it says
Error in configuration file /etc/dovecot.conf line 25: Expecting '='

----- Dovecot Configuration -----
protocols = imap pop3
imap_listen = [::]
pop3_listen = [::]
imaps_listen =
pop3s_listen =
ssl_disable = yes
login_dir = /var/run/dovecot-login
login = imap
login = pop3


mbox_locks = fcntl

#auth = default

#auth_mechanisms = plain

#auth_userdb = passwd

#auth_passdb = pam

#auth_user = root

auth default {
mechanisms = plain login
passdb pam {
}
userdb passwd {
}
user = root
socket listen {
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}

Thanks !
ONIK


All times are GMT -5. The time now is 07:07 AM.