[CentOS] Re: Which imapd?
alex at milivojevic.org
Wed Oct 26 06:04:40 UTC 2005
Quoting Morten <lists at kikobu.com>:
> My /etc/imapd.conf has:
> sasl_pwcheck_method: saslauthd
> So I guess the question is, how to make SASL authenticate OS users. Any tips?
Check if saslauthd is running. If not, "/etc/init.d/saslauthd start" (don't
forget to enable it to start during boot, "chkconfig saslauthd on"). You'll
find saslauthd logs in /var/log/messages. My guess is that most likely you
haven't started saslauthd service.
The config file for saslauthd is /etc/sysconfig/saslauthd. To be more
it is config file for the startup script. Check the MECH line. If
accounts are all in local files (/etc/passwd, /etc/shadow), the default
MECH=shadow is fine. If they are on NIS or something similar, you might
consider changing MECH line to MECH=pam. See manual page for saslauthd for
There's also testsaslauthd program that you can use to test if
works correctly. However, you must give it password on command line,
it to something dummy before using this program.
If saslauthd is running, and it runs correctly (test with
INBOX folder probably doesn't exist. It can be created automatically
logins for the first time, or you can create it manually.
To have it automatically created, add this option to imapd.conf:
You can also use autocreateinboxfolders and autosubscribeinboxfolders
automatically create some subfolders for user (such as Drafts or Sent
example) when INBOX folder is automatically created. See imapd.conf manual
page for more details.
If you prefer to create mailboxes manually, you can use cyradm command
cyradm --user cyrus localhost
Make sure you set password for cyrus account first.
Than, in cyradm, you would use "cm" (create mailbox) command to create the
mailbox under the user tree (yes, you must type "user." part, otherwise you
would be creating shared folder):
> cm user.username
This message was sent using IMP, the Internet Messaging Program.
More information about the CentOS