歡迎您光臨本站 註冊首頁

postfix不能收信原因 sql查詢怎麼改??

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

postfix不能收信原因 sql查詢怎麼改??

Jul 24 12:30:49 mail authdaemond: received auth request, service=pop3, authtype=login
Jul 24 12:30:49 mail authdaemond: authmysql: trying this module
Jul 24 12:30:49 mail authdaemond: SQL query: SELECT username, password, "", '2525', '2525', concat('/mail/mailbox/',maildir), concat('/mail/mailbox/',maildir), "", username, "" FROM mailbox WHERE username = "test"
Jul 24 12:30:49 mail authdaemond: zero rows returned
Jul 24 12:30:49 mail authdaemond: no password available to compare
Jul 24 12:30:49 mail authdaemond: authmysql: REJECT - try next module
Jul 24 12:30:49 mail authdaemond: FAIL, all modules rejected

紅色部分是出現問題的原因,usrname應該是test@test.com
,不知道怎麼改啊。??help help
《解決方案》

password_query = select username as user,password from mailbox where username = '%u' and active='1'
user_query = select maildir as home,500 as uid,501 as gid from mailbox where username='%u' and active='1'
《解決方案》

#password_query = select username as user,password from mailbox where substring(username,1,instr(username,'@')-1) = '%n' and active='1'

用%n或者%u實驗吧
最初這塊和密碼加密的問題,調試了很久
《解決方案》

原來foxmail需要把pop帳號填寫完全,這樣就不會那麼查詢了。
不過現在又有新問題了。

Jul 24 12:59:10 mail authdaemond: SQL query: SELECT username, password, "", '2525', '2525', concat('/mail/mailbox/',maildir), "", "", name, "" FROM mailbox WHERE username = "suigq@test.com"
Jul 24 12:59:10 mail authdaemond: password matches successfully
Jul 24 12:59:10 mail pop3d: chdir Maildir: No such file or directory
《解決方案》

原帖由 zuxi_sui 於 2008-7-24 13:05 發表 http://bbs.chinaunix.net/images/common/back.gif
原來foxmail需要把pop帳號填寫完全,這樣就不會那麼查詢了。
不過現在又有新問題了。

Jul 24 12:59:10 mail authdaemond: SQL query: SELECT username, password, "", '2525', '2525', concat('/mail/mailb ...

哎哎,authlib配置有問題,建議兄弟把authdaemon的debug模式打開
《解決方案》

原帖由 zuxi_sui 於 2008-7-24 13:05 發表 http://bbs.chinaunix.net/images/common/back.gif
原來foxmail需要把pop帳號填寫完全,這樣就不會那麼查詢了。
不過現在又有新問題了。

Jul 24 12:59:10 mail authdaemond: SQL query: SELECT username, password, "", '2525', '2525', concat('/mail/mailb ...


你已經標記出來了
定位不到maildir的目錄或者許可權不對

[火星人 ] postfix不能收信原因 sql查詢怎麼改??已經有554次圍觀

http://coctec.com/docs/service/show-post-28831.html