postfix courier with mysql and sasl authentification prpoblem

Discussion in 'Installation/Configuration' started by junfan, Feb 25, 2009.

  1. junfan

    junfan New Member

    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 :
    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=<[email protected]>, size=396, nrcpt=1 (queue active)
    Feb 25 09:51:46 ks2****2 postfix/smtp[31695]: 286BB99293: to=<[email protected]>, 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=<[email protected]>, 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 [email protected] ...

    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=<[email protected]>
    Feb 25 09:59:38 ks2****2 postfix/qmgr[30868]: EF21699293: from=<[email protected]>, 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=<[email protected]>, 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=<[email protected]>, 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: Feb 25, 2009
  2. junfan

    junfan New Member

    I tought it work but no... i forgot i setup account in Thunderbird with an other smtp server... :(
     
    Last edited: Feb 25, 2009
  3. junfan

    junfan New Member

    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 ?
     
  4. junfan

    junfan New Member

    if i test to send an email to [email protected] 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
    
    <[email protected]>: 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; [email protected]
    Arrival-Date: Wed, 25 Feb 2009 20:28:04 +0100 (CET)
    
    Final-Recipient: rfc822; [email protected]
    Original-Recipient: rfc822;[email protected]
    Action: failed
    Status: 5.4.6
    Diagnostic-Code: X-Postfix; mail for ks****2.kimsufi.com loops back to myself
    
    Help please ! :(
     
    Last edited: Feb 25, 2009
  5. falko

    falko Super Moderator Howtoforge Staff

    Please add ks****2.kimsufi.com to mydestination in /etc/postfix/main.cf and restart Postfix.
     
  6. junfan

    junfan New Member

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

    Thanks you very much
     

Share This Page