Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th February 2009, 12:38
junfan junfan is offline
Junior Member
 
Join Date: Feb 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default postfix courier with mysql and sasl authentification prpoblem

Hello,

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

I follow this howto: http://www.howtoforge.com/virtual-us...ix-ubuntu-7.10

if i test postfix with "telnet mydomain.com 25" i have some logs into /var/log/mail.log :
Code:
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 :
Code:
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 :
Code:
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 ...

Last edited by junfan; 25th February 2009 at 13:01. Reason: adding information
Reply With Quote
Sponsored Links
  #2  
Old 25th February 2009, 15:56
junfan junfan is offline
Junior Member
 
Join Date: Feb 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy

Quote:
I check /etc/postfix/master.cf like explain in the post here : http://www.howtoforge.com/forums/arc...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...

Last edited by junfan; 25th February 2009 at 16:10.
Reply With Quote
  #3  
Old 25th February 2009, 19:33
junfan junfan is offline
Junior Member
 
Join Date: Feb 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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 ?
Reply With Quote
  #4  
Old 25th February 2009, 21:33
junfan junfan is offline
Junior Member
 
Join Date: Feb 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Code:
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 !

Last edited by junfan; 25th February 2009 at 21:37. Reason: forgot something
Reply With Quote
  #5  
Old 26th February 2009, 21:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Please add ks****2.kimsufi.com to mydestination in /etc/postfix/main.cf and restart Postfix.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 27th February 2009, 16:25
junfan junfan is offline
Junior Member
 
Join Date: Feb 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

thx falko, There was some other problem, but now it's ok...

Thanks you very much
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SASL Postfix MySQL issues Moten Server Operation 9 6th November 2008 01:00
SMPT issue (Virtual Users And Domains With Postfix, Courier, MySQL) tonkyman HOWTO-Related Questions 2 25th October 2008 00:11
SASL Authentical Error with Virtual Users And Domains With Postfix, Courier, MySQL An atjensen11 HOWTO-Related Questions 2 7th June 2008 17:42
Upgrade question for "Virtual Users And Domains With Postfix, Courier And MySQL" emresumengen HOWTO-Related Questions 3 1st December 2006 16:33
Virtual Users And Domains With Postfix, Courier And MySQL: POP/IMAP authentication SeanG HOWTO-Related Questions 3 1st January 2006 18:08


All times are GMT +2. The time now is 02:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.