auth problems

Alexandru Coseru alex_spam at distinctgroup.net
Wed Sep 17 07:53:13 EDT 2003


Hello..

I have installed the cyrus imap and i'm doing authentification with a pgsql pam module..

My problem is this that I can't auth with user at domain.com , but only with user.domain.com

Here are some traces:


[root at alexl root]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
+OK alexl Cyrus POP3 v2.1.15 server ready <1394805010.1063809900 at alexl>
user alex3 at dialplus2.ro
+OK Name is a valid mailbox
pass xxx
-ERR [AUTH] Invalid login
user alex3.dialplus2.ro
+OK Name is a valid mailbox
pass xxx
+OK Maildrop locked and ready




Doing a strace on postgres:


[pid 10220] send(8, "CBEGIN\0Pblank\0T\0\1getdatabaseencoding\0\0\0\0\23\0@\377\377\377\377D\200\0\0\0\rSQL_ASCIICSELECT\0CCOMMIT\0Z", 79, 0) = 79
[pid 10220] recv(8, "QSELECT password FROM accountuser WHERE username=\'alex3 at dialplus2.ro\'\0", 8192, 0) = 70
[pid 10220] send(8, "Pblank\0T\0\1password\0\0\0\4\23\377\377\0\0\0\"CSELECT\0Z", 38, 0) = 38
[pid 10221] send(8, "CBEGIN\0Pblank\0T\0\1getdatabaseencoding\0\0\0\0\23\0@\377\377\377\377D\200\0\0\0\rSQL_ASCIICSELECT\0CCOMMIT\0Z", 79, 0) = 79
[pid 10221] recv(8, "QSELECT password FROM accountuser WHERE username=\'alex3.dialplus2.ro\'\0", 8192, 0) = 70
[pid 10221] send(8, "Pblank\0T\0\1password\0\0\0\4\23\377\377\0\0\0\"D\200\0\0\0\7xxxCSELECT\0Z", 47, 0) = 47





Here is what my database contains:


mail=> select * from accountuser;
      username      | password |    prefix    | domain_name
      --------------------+----------+--------------+--------------
       alex3.dialplus2.ro | xxx      | dialplus2.ro | dialplus2.ro





So , it seens that cyrus imap doesn't replace the '@' from username with "."..


Here is my /etc/imapd.conf:

[root at alexl root]# less /etc/imapd.conf
postmaster: postmaster
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus
allowanonymouslogin: no
allowplaintext: yes
sasl_mech_list: PLAIN
servername: alexl
autocreatequota: 10000
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
sasl_pwcheck_method: saslauthd
sievedir: /usr/sieve
sendmail: /usr/sbin/sendmail
sieve_maxscriptsize: 32
sieve_maxscripts: 5
unixhierarchysep: yes
altnamespace: yes


Anybody can help me ?



Regards
    Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.andrew.cmu.edu/mailman/private/info-cyrus/attachments/20030917/8d21b5de/attachment.html


More information about the Info-cyrus mailing list