[expert] Re: Cyrus-imapd

2003-11-04 Thread Norman Zhang
Hi, >> I just installed cyrus-imapd-2.1.15-6mdk on my 9.2 box. Should I create >> users for /etc/postfix/aliases or should I just create them in cyrus? > > You create *mailboxes* for users in cyrus and *aliasies* in postfix. > Postfix will resolve aliases to mailboxes and will try to deliver > mes

[expert] Re: Cyrus-imapd

2003-11-05 Thread Norman Zhang
> The second issue is aliases. Of course you can have a mailbox nzhang > with an alias (in postfix) norman.zhang. Or you can create a mailbox > norman.zhang (actually you cannot in the default configuration, since > the dot is the hierarchy separator in cyrus, but you can change it with > altnamesp

[expert] Re: Cyrus-imapd

2003-11-06 Thread Norman Zhang
Hi, >> Does that mean mail for both nzhang @ abc.com and norman.zhang >> @ abc.com will get to mailbox nzhang? If I want to only accept mail >> for norman.zhang @ abc.com, I need to create a mailbox norman.zhang? > > No, Your MTA (usualy postfix) does not know anything of the data stored > in cyru

[expert] Re: Cyrus-imapd

2003-11-07 Thread Norman Zhang
Hi, >>> If nzhang is not a local user and not listed as an alias, postfix >>> rejects the mail. >> >> I have created user nzhang and mailbox nzhang in cyrus. I also added >> nzhang: norman.zhang > > It is the wrong order, type (the left hand side is expanded to the > right hand side) > > norman.zh

[expert] Re: Cyrus-imapd

2003-11-07 Thread Norman Zhang
Hi, >> I was told postfix lmtp uses default port 24 and cyrus uses 2003. Is the >> above statement mailbox_transport = lmtp:$myhostname sufficient? > > Both should use the port specified in /etc/services, and since the > cyrus-imapd rpm adds a line in /etc/services for lmtp you should be fine. Th

[expert] Re: Cyrus-imapd

2003-11-10 Thread Norman Zhang
Hi, >> I followed the steps given in README.RPM >> >> 1. mailbox_transport = lmtp:$myhostname >>(/etc/postfix/main.cf) >> 2. lmtp cmd="lmtpd" listen="lmtp" prefork=0 (/etc/cyrus.conf) >> 3. add "lmtp_admins: cyruslmtp" at the bottom of /etc/cyrus.conf >> 4. useradd "cyruslmtp" with password "t

[expert] Re: Cyrus-imapd

2003-11-10 Thread Norman Zhang
Hi, >>> I followed the steps given in README.RPM >>> >>> 1. mailbox_transport = lmtp:$myhostname >>>(/etc/postfix/main.cf) >>> 2. lmtp cmd="lmtpd" listen="lmtp" prefork=0 (/etc/cyrus.conf) >>> 3. add "lmtp_admins: cyruslmtp" at the bottom of /etc/cyrus.conf >>> 4. useradd "cyruslmtp" with pass

[expert] Re: Cyrus-imapd

2003-11-10 Thread Norman Zhang
Hi, >>I followed the steps given in README.RPM >> >>1. mailbox_transport = lmtp:$myhostname >> (/etc/postfix/main.cf) >>2. lmtp cmd="lmtpd" listen="lmtp" prefork=0 (/etc/cyrus.conf) >>3. add "lmtp_admins: cyruslmtp" at the bottom of /etc/cyrus.conf > > There's an error in /etc/cyrus.conf. The li

[expert] Re: Cyrus-imapd

2003-11-10 Thread Norman Zhang
>> information is provided in /etc/imapd.conf. >> >> sasl_pwcheck_method: saslauthd >> sasl_mech_list: PLAIN >> >> I do have /etc/imapd.conf as it came with LM 9.2, but not smtpd.conf. I >> guess smtpd.conf is indeed replaced by main.cf. > > Well, no, smtpd.conf is the sasl configuration for postfi

[expert] Re: Cyrus-imapd

2003-11-10 Thread Norman Zhang
Hi, > mail. Setting smtp_sasl_auth_enable = yes would mean all clients sending > mail to Postfix will be authenticated via sasl, including Exchange or other > peoples' servers too? Please ignore my question. smtp_sasl_auth_enable keyword tells postfix to attempt to authenticate on all outbound c

[expert] Re: Cyrus-imapd

2003-11-10 Thread Norman Zhang
Hi, >> Sorry for all the noise. I found that 9.2 is using saslauthd by default. >> The information is provided in /etc/imapd.conf. >> >> sasl_pwcheck_method: saslauthd >> sasl_mech_list: PLAIN >> >> I do have /etc/imapd.conf as it came with LM 9.2, but not smtpd.conf. I >> guess smtpd.conf is inde

[expert] Re: Cyrus-imapd

2003-11-12 Thread Norman Zhang
>> My users are local users. > > It should be easy then: > > pwcheck_method: saslauthd (in smtpd.conf) > > check that /etc/sysconfig/saslauthd has > > SASL_AUTHMECH=pam (it's the default) > > service saslauthd start (to make it permanent chkconfig --add saslauthd) > > and then configure the pam me

[expert] Re: Cyrus-imapd

2003-11-13 Thread Norman Zhang
Hi, >> [root]# more /etc/pam.d/smtp >> auth required /lib/security/pam_stack.so >> service=system-auth accountrequired >> /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 pwchec

Re: [expert] Re: Cyrus-imapd

2003-11-05 Thread Luca Olivetti
Norman Zhang wrote: I read somewhere that I could create mailboxes for users in cyrus and don't need to useradd if only using MySQL. Is this correct? For example, if I'm to create a mailbox for myself, say nzhang and want to receive mail for address [EMAIL PROTECTED] Do I just create a mailbox nzh

Re: [expert] Re: Cyrus-imapd

2003-11-06 Thread Martin Fahrendorf
Am Donnerstag, 6. November 2003 01:05 schrieb Norman Zhang: > > The second issue is aliases. Of course you can have a mailbox > > nzhang with an alias (in postfix) norman.zhang. Or you can create a > > mailbox norman.zhang (actually you cannot in the default > > configuration, since the dot is the

Re: [expert] Re: Cyrus-imapd

2003-11-06 Thread Luca Olivetti
Martin Fahrendorf wrote: alias "norman.zhang". Does that mean mail for both nzhang @ abc.com and norman.zhang @ abc.com will get to mailbox nzhang? If I want to only accept mail for norman.zhang @ abc.com, I need to create a mailbox norman.zhang? No, Your MTA (usualy postfix) does not know anyth

Re: [expert] Re: Cyrus-imapd

2003-11-06 Thread Luca Olivetti
Luca Olivetti wrote: In fact, I don't even know how to configure postfix to check for local users (using mailbox_transport = lmtp:). Duh, it's on by default in recent postfix, "local_recipient_maps", configured by mandrake as "proxy:unix:passwd.byname $alias_maps". I didn't know it. So it s

Re: [expert] Re: Cyrus-imapd

2003-11-06 Thread Martin Fahrendorf
Am Freitag, 7. November 2003 01:49 schrieb Norman Zhang: > Hi, > > >> Does that mean mail for both nzhang @ abc.com and norman.zhang > >> @ abc.com will get to mailbox nzhang? If I want to only accept > >> mail for norman.zhang @ abc.com, I need to create a mailbox > >> norman.zhang? > > > > No, Yo

Re: [expert] Re: Cyrus-imapd

2003-11-07 Thread Martin Fahrendorf
Am Donnerstag, 6. November 2003 22:27 schrieb Luca Olivetti: > Luca Olivetti wrote: > > In fact, I don't even know how to configure postfix to check for > > local users (using mailbox_transport = lmtp:). > > Duh, it's on by default in recent postfix, "local_recipient_maps", > configured by mand

Re: [expert] Re: Cyrus-imapd

2003-11-07 Thread Luca Olivetti
Norman Zhang wrote: I was told postfix lmtp uses default port 24 and cyrus uses 2003. Is the above statement mailbox_transport = lmtp:$myhostname sufficient? Both should use the port specified in /etc/services, and since the cyrus-imapd rpm adds a line in /etc/services for lmtp you should be fine

Re: [expert] Re: Cyrus-imapd

2003-11-07 Thread Luca Olivetti
Norman Zhang wrote: I followed the steps given in README.RPM 1. mailbox_transport = lmtp:$myhostname (/etc/postfix/main.cf) 2. lmtp cmd="lmtpd" listen="lmtp" prefork=0 (/etc/cyrus.conf) 3. add "lmtp_admins: cyruslmtp" at the bottom of /etc/cyrus.conf 4. useradd "cyruslmtp" with password "testi

Re: [expert] Re: Cyrus-imapd

2003-11-10 Thread Luca Olivetti
Norman Zhang escribió: Hi, I followed the steps given in README.RPM 1. mailbox_transport = lmtp:$myhostname (/etc/postfix/main.cf) 2. lmtp cmd="lmtpd" listen="lmtp" prefork=0 (/etc/cyrus.conf) 3. add "lmtp_admins: cyruslmtp" at the bottom of /etc/cyrus.conf There's an error in /etc/cyrus.conf.

Re: [expert] Re: Cyrus-imapd

2003-11-10 Thread Luca Olivetti
Norman Zhang escribió: Sorry for all the noise. I found that 9.2 is using saslauthd by default. The information is provided in /etc/imapd.conf. sasl_pwcheck_method: saslauthd sasl_mech_list: PLAIN I do have /etc/imapd.conf as it came with LM 9.2, but not smtpd.conf. I guess smtpd.conf is indeed re

Re: [expert] Re: Cyrus-imapd

2003-11-10 Thread Luca Olivetti
Norman Zhang escribió: Thanks for the clarification. I guess I will use TLS on top of PLAIN. Well, that won't change anything (I mean, sasl is not involved so using tls won't mean changing sasl configuration). If you want to avoid cyrus-imapd advertising plaintext authentication over an insecure

Re: [expert] Re: Cyrus-imapd

2003-11-10 Thread Luca Olivetti
Norman Zhang escribió: After putting lmtp_admins: cyruslmtp into /etc/imapd.conf, now I can receive mail. Setting smtp_sasl_auth_enable = yes would mean all clients sending mail to Postfix will be authenticated via sasl, including Exchange or other peoples' servers too? No, that would be smtpd_sas

Re: [expert] Re: Cyrus-imapd

2003-11-11 Thread Luca Olivetti
Norman Zhang escribió: My users are local users. It should be easy then: pwcheck_method: saslauthd (in smtpd.conf) check that /etc/sysconfig/saslauthd has SASL_AUTHMECH=pam (it's the default) service saslauthd start (to make it permanent chkconfig --add saslauthd) and then configure the pam

Re: [expert] Re: Cyrus-imapd

2003-11-13 Thread Luca Olivetti
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 accountrequired /lib/security/pam_stack.so service=system-auth But still couldn't get

Re: [expert] Re: Cyrus-imapd

2003-11-13 Thread Luca Olivetti
Norman Zhang escribió: I followed http://www.mandrakesecure.net/en/docs/postfix-sasl.php. I changed That documentation is outdated: it's for version 1 of the sasl library. 9.2 is using verion 2. The documentation is in /usr/share/doc/cyrus-sasl-2.1.15/ (there's also a migration guide). "pwcheck