I tried another route to check the password issue, and this has confused me
even more. I can log into my Cyrus account using cyradm, but not imtest or
in a client. Am I doing something wrong here? The reason I ask is that I
also cannot login from an email client, but I can log in using cyradm. To
make matters worse, I can use the mailadmin account just fine, but that is
only a password and Cyrus admin account, and has no real user. account.
Watch:

mail# cyradm -u root mail
Please enter your password: <entered "password" here>
Dec 19 11:40:43 mail imapd[1699]: login: mail.actioncore.com[10.0.0.5] root
DIGEST-MD5 User logged in
mail.actioncore.com> exit

mail# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.actioncore.com.
Escape character is '^]'.
* OK mail.actioncore.com Cyrus IMAP4 v2.0.16 server ready
0001 LOGIN "root" "password"
Incorrect password
0001 NO Login failed: Incorrect password
^]
telnet> quit
Connection closed.

On the console I get:

Dec 19 11:41:08 mail imapd[1701]: badlogin:
localhost.actioncore.com[127.0.0.1] plaintext root

The same happens with imtest:

mail# imtest -p imap -a root -m login mail
C: C01 CAPABILITY
S: * OK mail.actioncore.com Cyrus IMAP4 v2.0.16 server ready
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS ID
NO_ATOMIC_RENAME UNSELECT MULTIAPPEND SORT THREAD=ORDEREDSUBJECT
THREAD=REFERENCES IDLE AUTH=DIGEST-MD5 AUTH=CRAM-MD5
S: C01 OK Completed
Password:
C: L01 LOGIN root {7}
+ go ahead
C: <omitted>
Dec 19 11:15:54 mail imapd[1640]: badlogin: mail.actioncore.com[10.0.0.5]
plaintext root Incorrect password
^C

Is something not running right? I have both master and pwcheck running:

root      221  0.0  0.2   996  580  ??  Is    1:50AM   0:00.08
/usr/local/sbin/pwcheck
cyrus    1165  0.0  0.5  2340 1192  p0- I     3:56AM   0:00.14
/usr/local/cyrus/bin/master

Regards, Dustin


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Dustin
> Puryear
> Sent: Wednesday, December 19, 2001 4:18 AM
> Cc: [EMAIL PROTECTED]
> Subject: RE: Virtual domains and Postfix.. => password issue
>
>
> Okay, I feel like I almost have this working. I am now using
> cyrus-imapd-2.0.16_1. I now only have two issues. I will address the first
> in this email.
>
> I can't get my passwords to work:
>
> mail# cyradm -u mailadmin mail
> Please enter your password:
> Dec 19 04:06:18 mail imapd[1243]: login: mail.actioncore.com[10.0.0.5]
> mailadmin DIGEST-MD5 User logged in
> mail.actioncore.com> lm
> dpuryear~lenderhost~com  user.root
> mail.actioncore.com> lam user.root
> root lrswipcda
> mailadmin lrswipcda
> mail.actioncore.com> exit
>
> mail# imtest -p imap -a root -m login mail
> C: C01 CAPABILITY
> S: * OK mail.actioncore.com Cyrus IMAP4 v2.0.16 server ready
> S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS ID
> NO_ATOMIC_RENAME UNSELECT MULTIAPPEND SORT THREAD=ORDEREDSUBJECT
> THREAD=REFERENCES IDLE AUTH=DIGEST-MD5 AUTH=CRAM-MD5
> S: C01 OK Completed
> Password:
> C: L01 LOGIN root {7}
> + go ahead
> C: <omitted>
> Dec 19 04:07:14 mail imapd[1246]: badlogin: mail.actioncore.com[10.0.0.5]
> plaintext root Incorrect password
> ^C
>
> Here I used the correct password. I checked and passwd is running and root
> has an entry in the sasl database:
>
> mail# ps -ef|grep pwcheck
> mail# ps -aux|grep pwcheck
> root      221  0.0  0.2   996  580  ??  Is    1:50AM   0:00.04
> /usr/local/sbin/pwcheck
> mail# sasldblistusers | grep root
> user: root realm: mail.actioncore.com mech: DIGEST-MD5
> user: root realm: mail.actioncore.com mech: PLAIN
> user: root realm: mail.actioncore.com mech: CRAM-MD5
>
> I'm sure I am doing something silly, but I don't see it. I should just use
> saslpasswd as below, correct?
>
> # saslpasswd -c root
> Password:
>
> Regards, Dustin
>
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of prune
> > Sent: Tuesday, December 18, 2001 4:20 PM
> > To: Dustin Puryear
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: Virtual domains and Postfix..
> >
> >
> > Hi,
> >
> > this will not solve your problem, but if you're working on a new mail
> > system, why don't you use the latest cyrus server, and use LMTP to pass
> > mails from postfix to cyrus ?
> >
> > for your problem... is the output of "lm" in cyradm different between
> > cyrus 1.x and 2.X ???
> > when I do a "lm", I have something like :
> >
> > user.foo
> > user.foo.Trash
> > ...
> > ...
> >
> > are you sure you mailboxes are well created ?
> >
> > Cheers,
> >
> > Prune
> >
> > Dustin Puryear wrote:
> >
> > >I looked in the archives, but couldn't find my exact problem.
> If it's in
> > >there, please let me know. (Also, the list archives doesn't
> seem to allow
> > >browsers to follow threads easily. Just a note.) A quick
> > summary: my problem
> > >is that Cyrus/Postfix keeps telling me a mailbox doesn't exist
> > when I test
> > >an account on a system configured for virtual domains. More
> > details follow.
> > >
> > >First, following are the versions of the software that I am using:
> > >
> > >cyrus-1.6.24_2      The cyrus mail server, supporting POP3,
> > KPOP, and IMAP4
> > >pro
> > >cyrus-sasl-1.5.24_7 RFC 2222 SASL (Simple Authentication and
> > Security Layer)
> > >db3-3.2.9_2,1       The Berkeley DB package, revision 3
> > >pcre-3.4            Perl Compatible Regular Expressions library
> > >postfix-20010228.3_2 Alternative Mail Transfer Agent (MTA)
> > >
> > >This was installed from the ports tree on FreeBSD 4.4-RELEASE.
> > >
> > >I have Postfix configured for virtual domains, and the test before I
> > >installed Cyrus was successful. I then installed Cyrus and
> > changed Postfix's
> > >main.cf to:
> > >
> > >mailbox_transport = cyrus
> > >
> > >I then restarted Postfix:
> > >
> > ># postfix reload
> > >
> > >Next, I created a mailbox named user.dpuryear:
> > >
> > >mail# cyradm -u mailadmin mail
> > >Please enter your password:
> > >mail.actioncore.com> Dec 18 15:03:10 mail imapd[60477]: login:
> > >mail.actioncore.com[10.0.0.5] mailadmin CRAM-MD5 User logged in
> > >lm
> > >[EMAIL PROTECTED]  root
> > >dpuryear~lenderhost~com  user.dpuryear
> > >
> > >Next, I update the virtual table:
> > >
> > ># postmap virtual
> > >
> > >I then set the password using saslpasswd, but that shouldn't
> be necessary
> > >just to send mail to the mailbox, correct? Ok, so I try a test message:
> > >
> > >mail# mail [EMAIL PROTECTED]
> > >Subject: hi
> > >.
> > >EOT
> > >Null message body; hope that's ok
> > >
> > >mail# tail /var/log/maillog
> > >Dec 18 15:06:10 mail postfix/pickup[60394]: 8D11E60E03: uid=0
> from=<root>
> > >Dec 18 15:06:10 mail postfix/cleanup[60496]: 8D11E60E03:
> > >message-id=<[EMAIL PROTECTED]>
> > >Dec 18 15:06:10 mail postfix/qmgr[60416]: 8D11E60E03:
> > >from=<[EMAIL PROTECTED]>, size=305, nrcpt=1 (queue active)
> > >Dec 18 15:06:10 mail postfix/pipe[60499]: 8D11E60E03:
> > >to=<[EMAIL PROTECTED]>, relay=cyrus, delay=0, status=bounced
> > >(user unknown. Command output: user.dpuryear: Mailbox does not
> exist _ )
> > >Dec 18 15:06:10 mail postfix/cleanup[60496]: C0D7A60E04:
> > >message-id=<[EMAIL PROTECTED]>
> > >Dec 18 15:06:10 mail postfix/qmgr[60416]: C0D7A60E04: from=<>,
> size=2015,
> > >nrcpt=1 (queue active)
> > >Dec 18 15:06:11 mail postfix/pipe[60499]: C0D7A60E04:
> > >to=<[EMAIL PROTECTED]>, relay=cyrus, delay=1, status=bounced (user
> > >unknown. Command output: root: Mailbox does not exist _ )
> > >
> > >I am confused. What is going on? Shouldn't that mail be going to
> > >user.dpuryear mailbox? And what about root? Any help is
> appreciated. I'm
> > >sure it's something silly. Anyway, following is my Postfix
> config if that
> > >helps:
> > >
> > >mail# grep -v # main.cf
> > >
> > >queue_directory   = /var/spool/postfix
> > >command_directory = /usr/local/sbin
> > >daemon_directory  = /usr/local/libexec/postfix
> > >
> > >mail_owner = postfix
> > >
> > >myhostname = mail.actioncore.com
> > >mydomain   = actioncore.com
> > >
> > >myorigin = $mydomain
> > >
> > >mydestination = $myhostname localhost.$mydomain $mydomain
> > >
> > >inet_interfaces = all
> > >
> > >notify_classes = resource, software
> > >
> > >initial_destination_concurrency_limit = 5
> > >default_destination_concurrency_limit = 15
> > >
> > >relay_domains = hash:/usr/local/etc/postfix/relay_domains
> > >
> > >mailbox_transport = cyrus
> > >virtual_maps = hash:/usr/local/etc/postfix/virtual
> > >
> > >Regards, Dustin
> > >
> > >---
> > >Dustin Puryear <[EMAIL PROTECTED]>
> > >Information Systems Consultant
> > >http://members.telocity.com/~dpuryear
> > >In the beginning the Universe was created.
> > >This has been widely regarded as a bad move. - Douglas Adams
> > >
> > >
> >
> >
> >
>
>

Reply via email to