Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix + PAM_MYSQL + bląd select dla v.domains
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
eyeblood
n00b
n00b


Joined: 28 Mar 2005
Posts: 15

PostPosted: Mon Mar 28, 2005 4:34 pm    Post subject: Postfix + PAM_MYSQL + bląd select dla v.domains Reply with quote

Zainstalowałem serwer poczty zgodnie z http://www.gentoo.org/doc/en/virt-mail-howto.xml

Jednak skrzynki działają tylko dla lokalnej domeny, jeśli laczę sie spoza localhost. Dostaje komunikat:
Code:
Mar 28 18:20:37 xeon authdaemond: pam_mysql: select returned more than one result
Mar 28 18:20:37 xeon imapd: LOGIN FAILED, user=eyeblood, ip=[192.168.0.2]


W przypadku, gdy łącze sie korzystając ze Squirrelmaila (zainstalowanego tam gdzie jest serwer poczty), logując sie na domene login@domena, wszystko działa prawidłowo SQL, który idzie do bazy jest OK. Jeśli chce się połączyć z serwerem poczty z innego hosta, to zawsze mam select returned more than one result. Analizujac logi widze, ze brakuje domeny w zapytaniu SQL:
Code:
SELECT clear FROM users WHERE email='eyeblood'


normlanie powinno być:
Code:
SELECT email, "", clear, uid, gid, homedir, maildir, "", name, "" FROM users WHERE email = "eyeblood@mojadomena.pl"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum