LukeSmithxyz / emailwiz

Script that installs/configures a Dovecot, Postfix, Spam Assassin, OpenDKIM Debian web server
GNU General Public License v3.0
1.82k stars 302 forks source link

Using users from LDAP through NSS/PAM #328

Open radimkohout opened 3 months ago

radimkohout commented 3 months ago

Hello,

I have an LDAP server running on one physical server, and I would like to run emailwiz on another physical server on the same network. I had set up both libpam-ldapd and libnss-ldapd. I can log in via SSH with users from the LDAP server. I have also added the users to the mail group and created a home folder for them. However, when I try to log in to Dovecot from my Thunderbird client, I get the following error in /var/log/mail.log:

dovecot: imap-login: Disconnected: Connection closed (auth failed, 3 attempts in 11 secs): user=<user1>, method=PLAIN, rip=*.*.*.*, lip=192.168.0.7

Is there any way to get it working?

Edit: I have created new local user, and it works for local user. But not for the LDAP one.