PDA

View Full Version : postfix courier with mysql and sasl authentification prpoblem


junfan
25th February 2009, 12:38
Hello,

I'm glad to register here and i hope you'll can help me...

I follow this howto: http://www.howtoforge.com/virtual-users-and-domains-with-postfix-ubuntu-7.10

if i test postfix with "telnet mydomain.com 25" i have some logs into /var/log/mail.log :
Feb 25 09:50:25 ks2****2 postfix/smtpd[31519]: connect from localhost.localdomain[127.0.0.1]
Feb 25 09:51:27 ks2****2 postfix/smtpd[31519]: 286BB99293: client=localhost.localdomain[127.0.0.1]
Feb 25 09:51:46 ks2****2 postfix/cleanup[31694]: 286BB99293: message-id=<20090225085127.286BB99293@ks2****2.kimsufi.com>
Feb 25 09:51:46 ks2****2 postfix/qmgr[30868]: 286BB99293: from=<postmaster@mondomaine.com>, size=396, nrcpt=1 (queue active)
Feb 25 09:51:46 ks2****2 postfix/smtp[31695]: 286BB99293: to=<contact@mondomaine.com>, relay=none, delay=54, delays=54/0.01/0/0, dsn=5.4.6, status=bounced (mail for ks2****2.kimsufi.com loops back to myself)
Feb 25 09:51:46 ks2****2 postfix/cleanup[31694]: 23E9D99298: message-id=<20090225085146.23E9D99298@ks2****2.kimsufi.com>
Feb 25 09:51:46 ks2****2 postfix/qmgr[30868]: 23E9D99298: from=<>, size=2249, nrcpt=1 (queue active)
Feb 25 09:51:46 ks2****2 postfix/bounce[31696]: 286BB99293: sender non-delivery notification: 23E9D99298
Feb 25 09:51:46 ks2****2 postfix/qmgr[30868]: 286BB99293: removed
Feb 25 09:51:46 ks2****2 postfix/smtp[31695]: 23E9D99298: to=<postmaster@graphik-3d.com>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.4.6, status=bounced (mail for ks2****2.kimsufi.com loops back to myself)
Feb 25 09:51:46 ks2****2 postfix/qmgr[30868]: 23E9D99298: removed
Feb 25 09:52:00 ks2****2 postfix/smtpd[31519]: disconnect from localhost.localdomain[127.0.0.1]
Is it normal ?

With Thunderbird, I receive notifications like "Undelivered Mail Returned to Sender" when i try to send an email from an other mailbox toward my mailbox@mydomaine.com ...

tail -f /var/log/mail.log

return :
Feb 25 09:52:00 ks2****2 postfix/smtpd[31519]: disconnect from localhost.localdomain[127.0.0.1]
Feb 25 09:58:12 ks2****2 imapd: Connection, ip=[::ffff:1**.*3.*.**6]
Feb 25 09:58:13 ks2****2 authdaemond: authmysql: MYSQL_SERVER nor MYSQL_SOCKET set in/etc/courier/authmysqlrc.
Feb 25 09:58:13 ks2****2 imapd: LOGIN FAILED, method=PLAIN, ip=[::ffff:1**.*3.*.**6]
Feb 25 09:58:13 ks2****2 imapd: authentication error: Input/output error
Feb 25 09:59:37 ks2****2 postfix/smtpd[31965]: connect from mx2.machin.***.fr[1**.**4.1**.6]
Feb 25 09:59:37 ks2****2 postfix/smtpd[31965]: EF21699293: client=mx2.machin.***.fr[1**.**4.1**.6]
Feb 25 09:59:37 ks2****2 postfix/cleanup[31969]: EF21699293: message-id=<49A468C6.1050607@gmail.com>
Feb 25 09:59:38 ks2****2 postfix/qmgr[30868]: EF21699293: from=<netwebnet@gmail.com>, size=1295, nrcpt=1 (queue active)
Feb 25 09:59:38 ks2****2 postfix/smtpd[31965]: disconnect from mx2.machin.***.fr[1**.**4.1**.6]
Feb 25 09:59:38 ks2****2 postfix/smtp[31970]: EF21699293: to=<contact@mondomaine.com>, relay=none, delay=0.04, delays=0.04/0.01/0/0, dsn=5.4.6, status=bounced (mail for ks2****2.kimsufi.com loops back to myself)
Feb 25 09:59:38 ks2****2 postfix/cleanup[31969]: 049B999298: message-id=<20090225085938.049B999298@ks2****2.kimsufi.com>
Feb 25 09:59:38 ks2****2 postfix/qmgr[30868]: 049B999298: from=<>, size=3218, nrcpt=1 (queue active)
Feb 25 09:59:38 ks2****2 postfix/bounce[31971]: EF21699293: sender non-delivery notification: 049B999298
Feb 25 09:59:38 ks2****2 postfix/qmgr[30868]: EF21699293: removed
Feb 25 09:59:38 ks2****2 postfix/smtp[31970]: 049B999298: to=<netwebnet@gmail.com>, relay=gmail-smtp-in.l.google.com[66.249.93.114]:25, delay=0.65, delays=0.01/0/0.14/0.5, dsn=2.0.0, status=sent (250 2.0.0 OK 1235552379 j27si777949ugc.12)

any idea ?

THANK YOU !

EDIT :
In my admin mailbox, i receive from CRON this message : "/usr/share/sendmail/sendmail: line 826: /usr/sbin/sendmail-msp: Aucun fichier ou répertoire de ce type (in english: no files or folder like this)"

Normal ?

EDIT2 :
With tail -f /var/log/mail.err
There is this log :
Feb 25 10:38:13 ks2****2 authdaemond: authmysql: MYSQL_SERVER nor MYSQL_SOCKET set in/etc/courier/authmysqlrc.
Feb 25 10:38:13 ks2****2 imapd: authentication error: Input/output error
Feb 25 10:48:13 ks2****2 authdaemond: authmysql: MYSQL_SERVER nor MYSQL_SOCKET set in/etc/courier/authmysqlrc.
Feb 25 10:48:13 ks2****2 imapd: authentication error: Input/output error
Feb 25 10:51:12 ks2****2 authdaemond: authmysql: MYSQL_SERVER nor MYSQL_SOCKET set in/etc/courier/authmysqlrc.
Feb 25 10:51:12 ks2****2 imapd: authentication error: Input/output error
Feb 25 10:52:47 ks2****2 authdaemond: authmysql: MYSQL_SERVER nor MYSQL_SOCKET set in/etc/courier/authmysqlrc.
Feb 25 10:52:47 ks2****2 imapd: authentication error: Input/output error
Feb 25 11:49:59 ks2****2 postfix/smtpd[4588]: fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit
Feb 25 11:51:00 ks2****2 postfix/smtpd[4633]: fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit

Probleme come from main.cf ?! I don't understand ...

junfan
25th February 2009, 15:56
I check /etc/postfix/master.cf like explain in the post here : http://www.howtoforge.com/forums/archive/index.php/t-417.html at the end of page by the user "BenDaDon"

"there must be the following line - without the #:

tlsmgr unix - - n 1000? 1 tlsmgr"

After i check the master.cf and i uncomment this line :
smtps inet n - - - - smtpd

Now i can send message with Thunderbird !

But receipt still don't work...

Thunderbird ask to me the user password, for user@mydomain.com@imap.mydomaine.com but it don't work..

Is it normal that ther is two "@" ? (user@mydomain.com@imap.mydomaine.com

I try with user "user" opposit to "user@mydomain.com" so Thunderbird ask me the password for "user@imap.mydomain.com" but this doesn't work to... :(

Problème is coming from Thunderbird or my server ?

Thanks to help me ! :)

PS: sorry for my poor english...

I tought it work but no... i forgot i setup account in Thunderbird with an other smtp server... :(

junfan
25th February 2009, 19:33
I think and i think about my problem.. and i wonder if the problem come from sasl ? Because the telnet test work, so why authentication in Thunderbird or roundcube doesn't work ?

Any ideas ?

junfan
25th February 2009, 21:33
if i test to send an email to mymailbox@mydomaine.com with an other email account like a gmail address it's doesn't work, i receive an "Undelivered Mail Returned to Sender" mail

This is the mail system at host ks****2.kimsufi.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

<mymailbox@mydomain.com>: mail for ks****2.kimsufi.com loops back to myself



Reporting-MTA: dns; ks****2.kimsufi.com
X-Postfix-Queue-ID: 36A7A992A9
X-Postfix-Sender: rfc822; othermail@gmail.com
Arrival-Date: Wed, 25 Feb 2009 20:28:04 +0100 (CET)

Final-Recipient: rfc822; mymailbox@mydomain.com
Original-Recipient: rfc822;mymailbox@mydomain.com
Action: failed
Status: 5.4.6
Diagnostic-Code: X-Postfix; mail for ks****2.kimsufi.com loops back to myself


Help please ! :(

falko
26th February 2009, 21:05
Please add ks****2.kimsufi.com to mydestination in /etc/postfix/main.cf and restart Postfix.

junfan
27th February 2009, 16:25
thx falko, There was some other problem, but now it's ok...

Thanks you very much