Norman Zhang escribi�:

Thanks. I tried exactly the above and creating smtp as follows.

[EMAIL PROTECTED] root]# more /etc/pam.d/smtp
auth       required     /lib/security/pam_stack.so service=system-auth
account    required     /lib/security/pam_stack.so service=system-auth

But still couldn't get it to work (continuous prompt for username/password
from OE). I then changed pwcheck_method: sasldb. I can now send/receive
mail.

Really strange, that should not work at all (to check the sasldb it should be "pwcheck_method: auxprop" according to the documentation). Sasl is probably using another method instead of plaintext. Try to add

mech_list: plain

in /usr/lib/sasl2/smtpd.conf to see if it makes a difference

However, I still have one more question, sasldb means I need to
useradd/passwd to create new users. I also need to add users to cyrus
through cyradm.

Well, yes, but this is a separate issue: you have to create a *mailbox* with cyradm. The authentication method is configured through sasl. Cyrus-imapd in my package is configured to use saslauth->pam. Configuring postfix for smtp auth is another issue altogether (though the authentication is managed using cyrus-sasl libraries).

I need to update two user databases separately.  Without
users created locally, I can't seem to login to the user account and access
inbox. Is there a way to simplify this?

I don't understand what you're trying to accomplish. If you want *no* local users, just create mailboxes in cyrus and use the sasldb (or whatever other method you prefer, ldap, mysql, whatever) to grant access to mailboxes that are not tied to local users.
If you instead want local user and authenticate with the system database (/etc/passwd, /etc/shadow), cyrus-imapd is already configured that way, and smtp_auth in postfix should work the way I told you (mind me, I'm not using smtp_auth with sasl v2, I'm using it with an older version and the setup is different and no good for you). If it doesn't work you'll have to check the log files (for postfix and for saslauthd -- in /var/log/messages ) to see what's going wrong (I know it's a pain).
Check the docs in /usr/share/doc/cyrus-sasl-2.1.15


Bye

--
- Yo tambi�n quiero una Europa libre de Patentes de Software  -
- I want a Software Patents Free Europe too! And you?         -
---------------------------------------------------------------
  EuropeSwPatentFree - http://EuropeSwPatentFree.hispalinux.es

Attachment: pgp00000.pgp
Description: PGP signature



Reply via email to