x_terminat_or_3
asked on
Setup cyrus-imapd POP3 server
I would like to know how to setup the cyrus-imapd POP3 server
Links to documentation are welcome for future reference, but please explain the setup in short here.
With kind regards
Ramses (x_terminat_or_3)
Links to documentation are welcome for future reference, but please explain the setup in short here.
With kind regards
Ramses (x_terminat_or_3)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yeah but it doesn't say how to add/configure users
ASKER
What I have now is this:
telnet www.vlaamse-kern.com 110
Trying 81.220.168.250...
Connected to www.vlaamse-kern.com (81.220.168.250).
Escape character is '^]'.
+OK vlaamse-kern.com Cyrus POP3 v2.2.6-Invoca-RPM-2.2.6-2. FC3.5 server ready <2724653820.1100463248@vla amse-kern. com>
user test
+OK Name is a valid mailbox
pass test
-ERR [AUTH] Invalid login
quit
+OK
Connection closed by foreign host.
I didn't setup the user test, but it says 'Name is a valid mailbox' anyway. And when I try to use one of my unix accounts it doesn't accept the password either
telnet www.vlaamse-kern.com 110
Trying 81.220.168.250...
Connected to www.vlaamse-kern.com (81.220.168.250).
Escape character is '^]'.
+OK vlaamse-kern.com Cyrus POP3 v2.2.6-Invoca-RPM-2.2.6-2.
user test
+OK Name is a valid mailbox
pass test
-ERR [AUTH] Invalid login
quit
+OK
Connection closed by foreign host.
I didn't setup the user test, but it says 'Name is a valid mailbox' anyway. And when I try to use one of my unix accounts it doesn't accept the password either
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Let's say I want to go for LDAP. Then wat? How do I set up the users/pass data?
Ramses
Ramses
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
You know what the problem was? I decided to go for PLAINTEXT (like almost all ISPs I know) but The deamon saslauthd wasn't running...
Now I get this:
[xxx@yyyyy ~]$ telnet www.vlaamse-kern.com 110
Trying 81.220.168.250...
Connected to www.vlaamse-kern.com (81.220.168.250).
Escape character is '^]'.
+OK vlaamse-kern.com Cyrus POP3 v2.2.6-Invoca-RPM-2.2.6-2. FC3.5 server ready <2475569596.1100542923@vla amse-kern. com>
user boe
+OK Name is a valid mailbox
pass <mypass>
-ERR [SYS/PERM] Unable to locate maildrop
Any ideas on this? Also how to setup the accounts?
Now I get this:
[xxx@yyyyy ~]$ telnet www.vlaamse-kern.com 110
Trying 81.220.168.250...
Connected to www.vlaamse-kern.com (81.220.168.250).
Escape character is '^]'.
+OK vlaamse-kern.com Cyrus POP3 v2.2.6-Invoca-RPM-2.2.6-2.
user boe
+OK Name is a valid mailbox
pass <mypass>
-ERR [SYS/PERM] Unable to locate maildrop
Any ideas on this? Also how to setup the accounts?
ASKER
I folowed step by step what they say on the HOWTO but it fails here:
bash-3.00$ imtest -m login -p imap localhost
S: * OK vlaamse-kern.com Cyrus IMAP4 v2.2.6-Invoca-RPM-2.2.6-2. FC3.5 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS LISTEXT LIST-SUBSCRIBED X-NETSCAPE
S: C01 OK Completed
Please enter your password:
C: L01 LOGIN cyrus {11}
S: + go ahead
C: <omitted>
S: L01 NO Login failed: user not found
Authentication failed. generic failure
Security strength factor: 0
C: Q01 LOGOUT
Connection closed.
bash-3.00$ imtest -m login -p imap localhost
S: * OK vlaamse-kern.com Cyrus IMAP4 v2.2.6-Invoca-RPM-2.2.6-2.
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS LISTEXT LIST-SUBSCRIBED X-NETSCAPE
S: C01 OK Completed
Please enter your password:
C: L01 LOGIN cyrus {11}
S: + go ahead
C: <omitted>
S: L01 NO Login failed: user not found
Authentication failed. generic failure
Security strength factor: 0
C: Q01 LOGOUT
Connection closed.
Hi,
In the /etc/imapd.conf, there is a entry:
-----
sasl_passwd_check: < > <==== what's your setting here?
Wesly
In the /etc/imapd.conf, there is a entry:
-----
sasl_passwd_check: < > <==== what's your setting here?
Wesly
ASKER
I don't have an /etc/imad.conf file but I have a
/etc/xinetd.conf which contains
sasl_passwd_check: plaintext
/etc/xinetd.conf which contains
sasl_passwd_check: plaintext
Can you change to
sasl_passwd_check: shadow
Wesly
sasl_passwd_check: shadow
Wesly
ASKER
Did that, restarted Cyrus service, tried again, no GO
tried also with sasl_passwd_check: sasl_authd no change
tried also with sasl_passwd_check: sasl_authd no change
ASKER
I saw this in my system log:
Nov 15 23:11:01 ramses su(pam_unix)[10771]: session opened for user cyrus by andy(uid=0)
Nov 15 23:11:04 ramses imap[10569]: unable to open Berkeley db /etc/sasldb2: No such file or directory
Nov 15 23:11:04 ramses imap[10569]: unable to open Berkeley db /etc/sasldb2: No such file or directory
Nov 15 23:11:01 ramses su(pam_unix)[10771]: session opened for user cyrus by andy(uid=0)
Nov 15 23:11:04 ramses imap[10569]: unable to open Berkeley db /etc/sasldb2: No such file or directory
Nov 15 23:11:04 ramses imap[10569]: unable to open Berkeley db /etc/sasldb2: No such file or directory
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I keep getting the errors:
If I run SASLPASSWD cyrus and look @ the log:
Nov 16 21:21:11 ramses saslpasswd: PLAIN: set secret for cyrus
Nov 16 21:21:11 ramses saslpasswd: CRAM-MD5: set secret for cyrus
Nov 16 21:21:11 ramses saslpasswd: DIGEST-MD5: set secret for cyrus
Then If I try SASLPASSWD2 cyrus :
Nov 16 21:22:09 ramses saslpasswd2: setpass succeeded for cyrus
Nov 16 21:22:09 ramses saslpasswd2: error deleting entry from sasldb: DB_NOTFOUND: No matching key/data pair found
Nov 16 21:22:09 ramses last message repeated 2 times
Nov 16 21:22:46 ramses imap[31384]: badlogin: localhost.localdomain [81.220.168.250] plaintext cyrus SASL(-13): user not found: checkpass failed
You know the instructions on the asg.web.cmu.edu assume that one can login right away and don't give instructions for when it fails...
If I run SASLPASSWD cyrus and look @ the log:
Nov 16 21:21:11 ramses saslpasswd: PLAIN: set secret for cyrus
Nov 16 21:21:11 ramses saslpasswd: CRAM-MD5: set secret for cyrus
Nov 16 21:21:11 ramses saslpasswd: DIGEST-MD5: set secret for cyrus
Then If I try SASLPASSWD2 cyrus :
Nov 16 21:22:09 ramses saslpasswd2: setpass succeeded for cyrus
Nov 16 21:22:09 ramses saslpasswd2: error deleting entry from sasldb: DB_NOTFOUND: No matching key/data pair found
Nov 16 21:22:09 ramses last message repeated 2 times
Nov 16 21:22:46 ramses imap[31384]: badlogin: localhost.localdomain [81.220.168.250] plaintext cyrus SASL(-13): user not found: checkpass failed
You know the instructions on the asg.web.cmu.edu assume that one can login right away and don't give instructions for when it fails...
> the instructions on the asg.web.cmu.edu assume that one can login right away and don't give instructions for when it fails
You are right. The login is for SMTP software, sendmail or whatever. IMAP or POP3 just on top of SMTP.
So how does your SMTP softwares to authenticate the username/password?
Wesly
You are right. The login is for SMTP software, sendmail or whatever. IMAP or POP3 just on top of SMTP.
So how does your SMTP softwares to authenticate the username/password?
Wesly
ASKER
It doesn't, it looks at the @myserver
ASKER
Hasn't anybody been able to setup Cyrus POP3 server with shadow passwords on their system who can provide assistance....
Hi,
What's your Linux? Fedora/RedHat or SuSE?
What's your SMTP software? Sendmail, Qmail or Postfix?
I used snedmail on RedHat which come with imapd and pop3d in /usr/sbin so after I setup sendmail, turn on the imapd and
pop3d, everything worked for me.
Wesly
What's your Linux? Fedora/RedHat or SuSE?
What's your SMTP software? Sendmail, Qmail or Postfix?
I used snedmail on RedHat which come with imapd and pop3d in /usr/sbin so after I setup sendmail, turn on the imapd and
pop3d, everything worked for me.
Wesly
ASKER
I have Fedora Test 3
latest sendmail
latest cyrus-imapd
From what I see, the problem isn't realy Cyrus because it's running, but it's somewhere the auth process that's going wrong
latest sendmail
latest cyrus-imapd
From what I see, the problem isn't realy Cyrus because it's running, but it's somewhere the auth process that's going wrong
ASKER
What services need to be running for the authentification to work? Isn't there any documentation on the sasl authorization method?
ASKER
I managed to get it up and running after a fresh system installation.... there are however two remaining issues
1. how do I map emails to usernames. for instance, I created a usr myuser1 in cyrus, and set the password. Now I would like that all mails send to myuser1@mydomain.com are deliver in the box of myuser1
2. part of the cyrus configuration sais to update the sendmail.cf with the following:
MAILER(local)
MAILER(cyrus)
define(`confLOCAL_MAILER', `cyrus')
LOCAL_RULE_0
R$=N $: $#local $: $1
R$=N < @ $=w . > $: $#local $: $1
Rbb + $+ < @ $=w . > $#cyrusbb $: $1
After restart I get the following error:
Nov 21 12:58:08 ramses sendmail[3158]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 1002: unknown configuration line "\001S=N < @ \001=w . >\t\001: \001#local \001: \0011"
Nov 21 12:58:08 ramses sendmail[3162]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 1002: unknown configuration line "\001S=N < @ \001=w . >\t\001: \001#local \001: \0011"
1. how do I map emails to usernames. for instance, I created a usr myuser1 in cyrus, and set the password. Now I would like that all mails send to myuser1@mydomain.com are deliver in the box of myuser1
2. part of the cyrus configuration sais to update the sendmail.cf with the following:
MAILER(local)
MAILER(cyrus)
define(`confLOCAL_MAILER',
LOCAL_RULE_0
R$=N $: $#local $: $1
R$=N < @ $=w . > $: $#local $: $1
Rbb + $+ < @ $=w . > $#cyrusbb $: $1
After restart I get the following error:
Nov 21 12:58:08 ramses sendmail[3158]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 1002: unknown configuration line "\001S=N < @ \001=w . >\t\001: \001#local \001: \0011"
Nov 21 12:58:08 ramses sendmail[3162]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 1002: unknown configuration line "\001S=N < @ \001=w . >\t\001: \001#local \001: \0011"
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
OK I already noticed that it wasn't running on level 5 and had already turned it on. Now I added it to levels 2,3,4 as sugested .
Still two issues to address:
1/ I need extended documentation on account administration.
2/ http://en.tldp.org/HOWTO/Cyrus-IMAP-7.html#ss7.1 says:
"Edit /etc/sendmail.mc with care not to add extra spaces and add the following lines(do not copy and paste directly from this text as the tabs won't be added correctly):
LOCAL_RULE_0
R$=N $: $#local $: $1
R$=N < @ $=w . > $: $#local $: $1
Rbb + $+ < @ $=w . > $#cyrusbb $: $1 " (end quote)
But doing this produces an error in my log!
Nov 21 12:58:08 ramses sendmail[3158]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 1002: unknown configuration line "\001S=N < @ \001=w . >\t\001: \001#local \001: \0011"
Nov 21 12:58:08 ramses sendmail[3162]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 1002: unknown configuration line "\001S=N < @ \001=w . >\t\001: \001#local \001: \0011"
What does these things mean and do I need them and if so how do I fixed those errors?
With kind regards
Still two issues to address:
1/ I need extended documentation on account administration.
2/ http://en.tldp.org/HOWTO/Cyrus-IMAP-7.html#ss7.1 says:
"Edit /etc/sendmail.mc with care not to add extra spaces and add the following lines(do not copy and paste directly from this text as the tabs won't be added correctly):
LOCAL_RULE_0
R$=N $: $#local $: $1
R$=N < @ $=w . > $: $#local $: $1
Rbb + $+ < @ $=w . > $#cyrusbb $: $1 " (end quote)
But doing this produces an error in my log!
Nov 21 12:58:08 ramses sendmail[3158]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 1002: unknown configuration line "\001S=N < @ \001=w . >\t\001: \001#local \001: \0011"
Nov 21 12:58:08 ramses sendmail[3162]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 1002: unknown configuration line "\001S=N < @ \001=w . >\t\001: \001#local \001: \0011"
What does these things mean and do I need them and if so how do I fixed those errors?
With kind regards
ASKER