banner

[Rule] Rules  [Home] Main Forum  [Portal] Portal  
[Members] Member Listing  [Statistics] Statistics  [Search] Search  [Reading Room] Reading Room 
[Register] Register  
[Login] Loginhttp  | https  ]
 
Forum Index Thảo luận hệ điều hành *nix Hỏi về email Postfix & Dovceot cài trên Ubuntu  XML
  [Question]   Hỏi về email Postfix & Dovceot cài trên Ubuntu 18/06/2013 09:50:01 (+0700) | #1 | 276699
phankimanh
Member

[Minus]    0    [Plus]
Joined: 27/12/2007 13:21:26
Messages: 11
Offline
[Profile] [PM]
Dear all,

Hiện nay, cty có sử dụng email postfix và dovecot sử dụng IMAP dùng webmail là squirremail. Cách đây một tháng có hiện tượng email thi thoảng vào rất chậm và không xác thực được khi kết nối bằng outlook và thường thì phải stop dịch vụ dovecot và start lại .Tôi xem log emailerror thì có lỗi sau

Jun 18 09:17:05 postfix01 dovecot: master: Error: service(auth-worker): Socket already exists: /var/run/dovecot/auth-worker
Jun 18 09:17:05 postfix01 dovecot: master: Error: service(anvil): Socket already exists: /var/run/dovecot/anvil
Jun 18 09:17:05 postfix01 dovecot: master: Error: service(anvil): Socket already exists: /var/run/dovecot/anvil-auth-penalty
Jun 18 09:17:05 postfix01 dovecot: master: Fatal: Failed to start listeners


Cấu hình dovecot của tôi như sau:


protocols = imap
listen = *
mail_location = maildir:~/Maildir
disable_plaintext_auth = no

auth default {
socket listen {
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
auth_cache_size = 4096
auth_cache_ttl = 14400
}
}
mechanisms = plain login
}

Tôi sử dụng chứng thực StartTLS cho imap và smtp

Nếu ai đã gặp lỗi như tôi mong được chia sẻ.Cty tôi có khoảng 180 nhân viên

[Up] [Print Copy]
  [Question]   Hỏi về email Postfix & Dovceot cài trên Ubuntu 18/06/2013 10:30:00 (+0700) | #2 | 276701
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]
Đoạn log trên là do Dovecot chưa stop được thì bạn lại start lên thôi.

Lúc "có hiện tượng email thi thoảng vào rất chậm và không xác thực được khi kết nối bằng outlook" thì trong log có những thông tin gì?
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Hỏi về email Postfix & Dovceot cài trên Ubuntu 18/06/2013 10:45:00 (+0700) | #3 | 276702
phankimanh
Member

[Minus]    0    [Plus]
Joined: 27/12/2007 13:21:26
Messages: 11
Offline
[Profile] [PM]
Đây là toàn bộ log ngày hôm nay của mình nhưng nếu ngày nghỉ mọi người không dùng outlook thì không bao giờ bị hiện tượng này(webmail thoải mái luôn)

un 18 09:08:00 postfix01 dovecot: imap-login: Error: read(anvil) failed: EOF
Jun 18 09:08:01 dovecot: last message repeated 3 times
Jun 18 09:08:01 postfix01 dovecot: master: Error: service(auth): Socket already exists: /var/run/dovecot/auth-login
Jun 18 09:08:01 postfix01 dovecot: master: Error: service(auth): Socket already exists: /var/run/dovecot/auth-client
Jun 18 09:08:01 postfix01 dovecot: master: Error: service(auth): Socket already exists: /var/run/dovecot/auth-userdb
Jun 18 09:08:01 postfix01 dovecot: master: Error: service(auth): Socket already exists: /var/run/dovecot/auth-master
Jun 18 09:08:01 postfix01 dovecot: master: Error: service(auth): Socket already exists: /var/spool/postfix/private/auth
Jun 18 09:08:01 postfix01 dovecot: master: Fatal: Failed to start listeners
Jun 18 09:08:01 postfix01 dovecot: master: Error: service(auth): Socket already exists: /var/run/dovecot/auth-login
Jun 18 09:08:01 postfix01 dovecot: master: Error: service(auth): Socket already exists: /var/run/dovecot/auth-client
Jun 18 09:08:01 postfix01 dovecot: master: Error: service(auth): Socket already exists: /var/run/dovecot/auth-userdb
Jun 18 09:08:01 postfix01 dovecot: master: Error: service(auth): Socket already exists: /var/run/dovecot/auth-master
Jun 18 09:08:01 postfix01 dovecot: master: Error: service(auth): Socket already exists: /var/spool/postfix/private/auth
Jun 18 09:08:01 postfix01 dovecot: master: Fatal: Failed to start listeners
Jun 18 09:08:02 postfix01 dovecot: master: Error: service(auth): Socket already exists: /var/run/dovecot/auth-login
Jun 18 09:08:02 postfix01 dovecot: master: Error: service(auth): Socket already exists: /var/run/dovecot/auth-client
Jun 18 09:08:02 postfix01 dovecot: master: Error: service(auth): Socket already exists: /var/run/dovecot/auth-userdb
Jun 18 09:08:02 postfix01 dovecot: master: Error: service(auth): Socket already exists: /var/run/dovecot/auth-master
Jun 18 09:08:02 postfix01 dovecot: master: Error: service(auth): Socket already exists: /var/spool/postfix/private/auth
Jun 18 09:08:02 postfix01 dovecot: master: Fatal: Failed to start listeners
Jun 18 09:08:02 postfix01 dovecot: master: Error: service(auth): Socket already exists: /var/run/dovecot/auth-login
Jun 18 09:08:02 postfix01 dovecot: master: Error: service(auth): Socket already exists: /var/run/dovecot/auth-client
Jun 18 09:08:02 postfix01 dovecot: master: Error: service(auth): Socket already exists: /var/run/dovecot/auth-userdb
Jun 18 09:08:02 postfix01 dovecot: master: Error: service(auth): Socket already exists: /var/run/dovecot/auth-master
Jun 18 09:08:02 postfix01 dovecot: master: Error: service(auth): Socket already exists: /var/spool/postfix/private/auth
Jun 18 09:08:02 postfix01 dovecot: master: Fatal: Failed to start listeners
Jun 18 09:08:05 postfix01 postfix/smtpd[23442]: fatal: no SASL authentication mechanisms
Jun 18 09:09:44 postfix01 postfix/smtpd[30096]: fatal: no SASL authentication mechanisms
Jun 18 09:11:42 postfix01 postfix/smtpd[23038]: fatal: no SASL authentication mechanisms
Jun 18 09:11:42 postfix01 postfix/smtpd[30098]: fatal: no SASL authentication mechanisms
Jun 18 09:13:42 postfix01 postfix/smtpd[30104]: fatal: no SASL authentication mechanisms
Jun 18 09:13:42 postfix01 postfix/smtpd[30105]: fatal: no SASL authentication mechanisms
Jun 18 09:15:26 postfix01 postfix/smtpd[30109]: fatal: no SASL authentication mechanisms
Jun 18 09:17:02 postfix01 postfix/smtpd[30114]: fatal: no SASL authentication mechanisms
Jun 18 09:17:05 postfix01 dovecot: master: Error: service(auth-worker): Socket already exists: /var/run/dovecot/auth-worker
Jun 18 09:17:05 postfix01 dovecot: master: Error: service(anvil): Socket already exists: /var/run/dovecot/anvil
Jun 18 09:17:05 postfix01 dovecot: master: Error: service(anvil): Socket already exists: /var/run/dovecot/anvil-auth-penalty
Jun 18 09:17:05 postfix01 dovecot: master: Fatal: Failed to start listeners
Jun 18 09:40:45 postfix01 dovecot: master: Error: service(imap-login): fork() failed: Cannot allocate memory
Jun 18 09:40:45 postfix01 dovecot: master: Error: service(imap-login): command startup failed, throttling
Jun 18 09:41:45 postfix01 dovecot: imap-login: Fatal: read(ssl-params) failed: Interrupted system call
Jun 18 10:45:07 postfix01 dovecot: master: Error: service(anvil): Socket already exists: /var/run/dovecot/anvil
Jun 18 10:45:07 postfix01 dovecot: master: Error: service(anvil): Socket already exists: /var/run/dovecot/anvil-auth-penalty
Jun 18 10:45:07 postfix01 dovecot: master: Fatal: Failed to start listeners


Mình nghĩ lỗi xảy ra lúc khoảng 9h8 phút vì có dòng :

un 18 09:08:00 postfix01 dovecot: imap-login: Error: read(anvil) failed: EOF
Jun 18 09:08:01 dovecot: last message repeated 3 times
Jun 18 09:08:01 postfix01 dovecot: master: Error: service(auth): Socket already exists: /var/run/dovecot/auth-login

---> Mình chưa biết có phải do dùng outlook bị hiện tượng này không vì mình có xem một số giải thích trên mạng nhưng có vẻ chưa hợp lý lắm.Nếu dùng thunderbird thì mail tự reconnect và get mail nhanh hơn outlook
[Up] [Print Copy]
  [Question]   Hỏi về email Postfix & Dovceot cài trên Ubuntu 19/06/2013 08:58:51 (+0700) | #4 | 276726
phankimanh
Member

[Minus]    0    [Plus]
Joined: 27/12/2007 13:21:26
Messages: 11
Offline
[Profile] [PM]
Có ai có kinh nghiệm về vụ này không support me?
[Up] [Print Copy]
  [Question]   Hỏi về email Postfix & Dovceot cài trên Ubuntu 20/06/2013 21:30:11 (+0700) | #5 | 276754
tommysmith
Member

[Minus]    0    [Plus]
Joined: 04/10/2010 07:20:45
Messages: 47
Offline
[Profile] [PM]
Outlook hình như nó hay bị lỗi hay sao ý, mình cũng build 2 cái mail server, 1 cái Postfix + Courier + Roundcube, 1 cái dùng Zimbra, cái đầu thì chỉ dùng webmail và thunderbird thấy ok, nhưng zimbra thì cho cty khác dùng, chỉ dùng outlook thì support lỗi mệt nghỉ lun !!! mình thấy nó load chậm và cà giựt sao í.
[Up] [Print Copy]
  [Question]   Hỏi về email Postfix & Dovceot cài trên Ubuntu 21/06/2013 08:01:12 (+0700) | #6 | 276760
phankimanh
Member

[Minus]    0    [Plus]
Joined: 27/12/2007 13:21:26
Messages: 11
Offline
[Profile] [PM]
Tks bạn đã có một ý kiến trả lời giống trên một forum của nước ngoài cũng đã nói vậy? Mọi người ơi còn ai đã có kinh nghiệm về vụ này cho ý kiến tiếp đi nhé để những ae đi sau biét được lỗi chính xác mà fix
[Up] [Print Copy]
  [Question]   Hỏi về email Postfix & Dovceot cài trên Ubuntu 21/06/2013 14:17:56 (+0700) | #7 | 276769
vncybernet
Member

[Minus]    0    [Plus]
Joined: 24/01/2005 02:15:17
Messages: 28
Location: 1011
Offline
[Profile] [PM] [Yahoo!]
Mình có thử tra qua trên google thì thấy có 1 link : https://bugs.launchpad.net/ubuntu/+source/dovecot/+bug/873390
Bug này là do parent process đã kill nhưng child process thì không nên khi start lên sẽ bị tranh chấp port hoặc socket do các child process trước đó chưa bị kill đang nắm giữ.
Cách giải quyết chắc là phải update dovecot thôi.

Có chỗ nào sai các bạn chỉ giúp mình nhé.
[Up] [Print Copy]
  [Question]   Hỏi về email Postfix & Dovceot cài trên Ubuntu 24/06/2013 11:03:06 (+0700) | #8 | 276837
phankimanh
Member

[Minus]    0    [Plus]
Joined: 27/12/2007 13:21:26
Messages: 11
Offline
[Profile] [PM]
Mình cũng nói thêm trước đây khi user không sử dụng outlook nhiều chủ yếu dùng webmail thì không có hiện tượng này.Chắc thử upgrade dovecot last version xem nó có thay đổi gì không...! ai có kinh nghiệm chia sẻ cho mình cũng như mọi người trong diễn đàn sau này không bị lỗi tuơng tự nhé
[Up] [Print Copy]
  [Question]   Hỏi về email Postfix & Dovceot cài trên Ubuntu 24/06/2013 16:57:07 (+0700) | #9 | 276854
KhanhLN
Member

[Minus]    0    [Plus]
Joined: 19/06/2013 20:29:45
Messages: 3
Offline
[Profile] [PM]
Mình đã từng được sử dụng một hệ thống mail thuê của 1 nhà cung cấp dịch vụ, sử dụng Outlook kết nối imap lúc được lúc không, nhưng với Thunderbird thì ko bao giờ bị.
Mình nghĩ vấn đề nằm ở Outlook, sử dụng với một số hệ thống mail (khác Exchange) tương thích không tốt lắm.
[Up] [Print Copy]
  [Question]   Hỏi về email Postfix & Dovceot cài trên Ubuntu 25/06/2013 13:02:44 (+0700) | #10 | 276885
phankimanh
Member

[Minus]    0    [Plus]
Joined: 27/12/2007 13:21:26
Messages: 11
Offline
[Profile] [PM]
Ngoài bạn KhanhLN ra còn ai có ý kiến khác không nhỉ? những ai đã dùng postfix và dovecot rồi cho mình hỏi tiếp đi
[Up] [Print Copy]
  [Question]   Hỏi về email Postfix & Dovceot cài trên Ubuntu 25/06/2013 13:02:56 (+0700) | #11 | 276886
phankimanh
Member

[Minus]    0    [Plus]
Joined: 27/12/2007 13:21:26
Messages: 11
Offline
[Profile] [PM]
Ngoài bạn KhanhLN ra còn ai có ý kiến khác không nhỉ? những ai đã dùng postfix và dovecot rồi cho mình hỏi tiếp đi
[Up] [Print Copy]
[digg] [delicious] [google] [yahoo] [technorati] [reddit] [stumbleupon]
Go to: 
 Users currently in here 
1 Anonymous

Powered by JForum - Extended by HVAOnline
 hvaonline.net  |  hvaforum.net  |  hvazone.net  |  hvanews.net  |  vnhacker.org
1999 - 2013 © v2012|0504|218|