IMAP Server dropping connection

Discussion in 'HOWTO-Related Questions' started by liquid 1520, Jan 5, 2011.

  1. liquid 1520

    liquid 1520 New Member

  2. falko

    falko Super Moderator Howtoforge Staff

    Are there any errors in your mail log (in the /var/log/ directory)?
     
  3. liquid 1520

    liquid 1520 New Member

    None at all
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Did you send a welcome email before you logged into webmail?
     
  5. liquid 1520

    liquid 1520 New Member

    Yep, I did it through mailx and such, and that said it was OK.
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Can you send an email to that account and then try to log into your webmail and post and excerpt of your mail log here?

    Did you disable SELinux?
     
  7. liquid 1520

    liquid 1520 New Member

    Code:
    Jan  7 16:28:19 li238-236 postfix/trivial-rewrite[25172]: warning: do not list domain 360chatter.com in BOTH mydestination and virtual_mailbox_dom$
    Jan  7 16:28:19 li238-236 postfix/smtpd[25183]: E6FDF16B19: client=unknown[127.0.0.1]
    Jan  7 16:28:20 li238-236 postfix/cleanup[25177]: E6FDF16B19: message-id=<C607E984A72A4B14B5B767CFE9391DFD@CassidyChanPC>
    Jan  7 16:28:20 li238-236 postfix/smtpd[25183]: disconnect from unknown[127.0.0.1]
    Jan  7 16:28:20 li238-236 postfix/qmgr[7752]: E6FDF16B19: from=<[email protected]>, size=2215, nrcpt=1 (queue active)
    Jan  7 16:28:20 li238-236 postfix/trivial-rewrite[25172]: warning: do not list domain 360chatter.com in BOTH mydestination and virtual_mailbox_dom$
    Jan  7 16:28:20 li238-236 amavis[18080]: (18080-05) Passed CLEAN, [174.136.50.43] [96.252.125.29] <[email protected]> -> <[email protected]$
    Jan  7 16:28:20 li238-236 postfix/smtp[25178]: C5BCE16B18: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.4, delays=0.15/0$
    Jan  7 16:28:20 li238-236 postfix/qmgr[7752]: C5BCE16B18: removed
    Jan  7 16:28:20 li238-236 postfix/local[25185]: E6FDF16B19: to=<[email protected]>, relay=local, delay=0.67, delays=0.19/0.42/0/0.06, dsn=5.1$
    Jan  7 16:28:20 li238-236 postfix/cleanup[25177]: 95D2416B1A: message-id=<[email protected]>
    Jan  7 16:28:20 li238-236 postfix/bounce[25186]: E6FDF16B19: sender non-delivery notification: 95D2416B1A
    Jan  7 16:28:20 li238-236 postfix/qmgr[7752]: 95D2416B1A: from=<>, size=4050, nrcpt=1 (queue active)
    Jan  7 16:28:20 li238-236 postfix/qmgr[7752]: E6FDF16B19: removed
    Jan  7 16:28:22 li238-236 postfix/smtp[25187]: 95D2416B1A: to=<[email protected]>, relay=al-rs.net[174.136.50.43]:25, delay=2.2, delays=0/0.01$
    Jan  7 16:28:22 li238-236 postfix/qmgr[7752]: 95D2416B1A: removed
    Jan  7 16:29:00 li238-236 imapd: Connection, ip=[::1]
    Jan  7 16:29:00 li238-236 imapd: LOGIN FAILED, [email protected], ip=[::1]
    Jan  7 16:29:00 li238-236 imapd: authentication error: Input/output error
    Jan  7 16:29:00 li238-236 authdaemond: authmysql: MYSQL_SERVER nor MYSQL_SOCKET set in/etc/authlib/authmysqlrc.
     
  8. cyrus1977

    cyrus1977 New Member

    have you adressed this ?

    Jan 7 16:28:20 li238-236 postfix/trivial-rewrite[25172]: warning: do not list domain 360chatter.com in BOTH mydestination and virtual_mailbox_dom$
     
  9. falko

    falko Super Moderator Howtoforge Staff

    Jan 7 16:28:20 li238-236 postfix/trivial-rewrite[25172]: warning: do not list domain 360chatter.com in BOTH mydestination and virtual_mailbox_dom$Please remove 360chatter.com from the mydestination line in /etc/postfix/main.cf and restart Postfix.
     
  10. liquid 1520

    liquid 1520 New Member

    Still getting an error

    Code:
    Jan  8 13:55:44 li238-236 clamd[5472]: SelfCheck: Database status OK.
    Jan  8 13:56:07 li238-236 imapd: Connection, ip=[::1]
    Jan  8 13:56:07 li238-236 authdaemond: authmysql: MYSQL_SERVER nor MYSQL_SOCKET set in/etc/authlib/authmysqlrc.
    Jan  8 13:56:07 li238-236 imapd: LOGIN FAILED, [email protected], ip=[::1]
    Jan  8 13:56:07 li238-236 imapd: authentication error: Input/output error
    
    But my file contains this

    Code:
    MYSQL_SERVER localhost
    MYSQL_USERNAME mail_admin
    MYSQL_PASSWORD **********
    MYSQL_PORT 0
    MYSQL_DATABASE mail
    MYSQL_USER_TABLE users
    MYSQL_CRYPT_PWFIELD password
    #MYSQL_CLEAR_PWFIELD password
    MYSQL_UID_FIELD 5000
    MYSQL_GID_FIELD 5000
    MYSQL_LOGIN_FIELD email
    MYSQL_HOME_FIELD "/home/vmail"
    MYSQL_MAILDIR_FIELD CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')
     
    Last edited: Jan 8, 2011
  11. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    netstat -tap
    ?
     
  12. liquid 1520

    liquid 1520 New Member

    Code:
    
    [root@li238-236 ~]# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
    tcp        0      0 localhost:10024             *:*                         LISTEN      7727/amavisd (maste
    tcp        0      0 localhost:10025             *:*                         LISTEN      7966/master
    tcp        0      0 *:mysql                     *:*                         LISTEN      6054/mysqld
    tcp        0      0 *:ftp                       *:*                         LISTEN      9341/vsftpd
    tcp        0      0 *:ssh                       *:*                         LISTEN      2006/sshd
    tcp        0      0 *:smtp                      *:*                         LISTEN      7966/master
    tcp        0      0 localhost:mysql             localhost:50558             ESTABLISHED 6054/mysqld
    tcp        0      0 localhost:mysql             localhost:51707             ESTABLISHED 6054/mysqld
    tcp        0      0 localhost:51707             localhost:mysql             ESTABLISHED 27661/amavisd (ch4-
    tcp        0      0 360chatter.com:ssh          pool-96-252-125-29.bs:60745 ESTABLISHED 29786/0
    tcp        0      0 localhost:50558             localhost:mysql             ESTABLISHED 26557/amavisd (ch10
    tcp        0      0 *:imaps                     *:*                         LISTEN      8022/couriertcpd
    tcp        0      0 *:pop3s                     *:*                         LISTEN      8034/couriertcpd
    tcp        0      0 *:pop3                      *:*                         LISTEN      8028/couriertcpd
    tcp        0      0 *:imap                      *:*                         LISTEN      8015/couriertcpd
    tcp        0      0 *:http                      *:*                         LISTEN      7841/httpd
    tcp        0      0 *:ssh                       *:*                         LISTEN      2006/sshd
    tcp        0      0 *:smtp                      *:*                         LISTEN      7966/master
    tcp        0      0 *:https                     *:*                         LISTEN      7841/httpd
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51256 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51258 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51317 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51309 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51249 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51307 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51232 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51266 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51245 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51216 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51273 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51234 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51238 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51219 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51251 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51296 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51243 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51310 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51274 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-72-73-14-152.bng:17609 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51239 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51247 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51315 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51271 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         cpe-75-80-8-67.socal.:39073 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51276 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51269 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         71-80-131-104.dhcp.h:mmaeds TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51218 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51255 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51221 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51225 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51230 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51236 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51223 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51231 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51278 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51250 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51227 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51240 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51253 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51260 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51282 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51277 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51279 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51281 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51217 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51224 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51308 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         71-80-131-104.dhcp.:mmacomm TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51261 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51304 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51257 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51303 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51270 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-72-73-14-152.bng:17612 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51215 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         cpe-75-80-8-67.socal.:54980 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51241 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51267 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51306 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         24-158-141-23:scipticslsrvr TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51305 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51275 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51252 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         24-158-141-23.dhcp.:mpfoncl TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51280 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51263 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51314 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51311 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51244 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51295 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51259 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-72-73-14-152.bng:17614 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51226 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51229 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51237 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51246 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51268 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51265 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51294 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51313 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51272 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51228 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51242 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51319 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51233 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51316 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51312 TIME_WAIT   -
    tcp        0      0 360chatter.com:http         pool-71-107-90-136.ls:51262 TIME_WAIT   -
    
     
  13. falko

    falko Super Moderator Howtoforge Staff

    Looks ok. Did you save /etc/authlib/authmysqlrc with Unix or with Windows linebreaks? If you saved it with Windows linebreaks, there's probably something like ^M at the end of each line.

    Also, did you disable SELinux?
     
  14. liquid 1520

    liquid 1520 New Member

    I wrote authmysqlrc in nano

    And SELinux is disabled
     
  15. falko

    falko Super Moderator Howtoforge Staff

    Did you copy&paste from the tutorial, or did you type the file manually? IF the latter, maybe there's a typo somewhere in your file.
     
  16. liquid 1520

    liquid 1520 New Member

    I copy and pasted it from the tutorial
     
  17. liquid 1520

    liquid 1520 New Member

    I'm still getting a connection dropped by IMAP server, I can PM you SSH details if it'd help
     
  18. falko

    falko Super Moderator Howtoforge Staff

Share This Page