Bug 10373 - file locking prevents email delivery
Summary: file locking prevents email delivery
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.1.4
Hardware: x86 Linux
: P5 critical (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-13 04:54 UTC by anctop
Modified: 2014-01-14 05:39 UTC (History)
0 users

See Also:


Attachments
smb.conf (1.60 KB, text/plain)
2014-01-13 04:54 UTC, anctop
no flags Details
step 2 (17.69 KB, image/jpeg)
2014-01-13 04:55 UTC, anctop
no flags Details
step 4 (Samba 3.6.6) (20.68 KB, image/jpeg)
2014-01-13 04:56 UTC, anctop
no flags Details
step 6 (Samba 4.1.3) (20.65 KB, image/jpeg)
2014-01-13 04:56 UTC, anctop
no flags Details
step 6 (Samba 3.6.6) (20.65 KB, image/jpeg)
2014-01-13 04:57 UTC, anctop
no flags Details
step 8 (Samba 3.6.6) (23.21 KB, image/jpeg)
2014-01-13 04:57 UTC, anctop
no flags Details
level 10 log (Samba 4.1.3) (2.05 MB, application/octet-stream)
2014-01-13 04:59 UTC, anctop
no flags Details
level 10 log (Samba 3.6.6) (1.29 MB, application/octet-stream)
2014-01-13 04:59 UTC, anctop
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description anctop 2014-01-13 04:54:04 UTC
Our system has been running Samba-3.6.6 since mid-2012 without great troubles.

Recently we upgraded Samba to 4.1.3 and found that the file locking mechanism seemed to prevent email delivery when the inbox was kept open by the mailer on WinXP/Win7 clients.

Server environment : Linux kernel 3.8.8; GLibC-2.18; Python-2.6.8
Samba-4.1.3 build options : --with-quotas --prefix=/10/samba-4.1.3 --datarootdir=/10/samba-4.1.3
Samba-3.6.6 build options : --prefix=/10/samba-3.6.6 --datarootdir=/10samba-3.6.6 --enable-shared --with-quotas --with-sys-quotas
smb.conf : (see attachment)
MTA : sendmail-8.14.6
Clients OS : WinXP/Win7
MUA : PC-Pine 4.64
INBOX path : "~user/.mail/inbox" on server, "X:\.mail\inbox" on clients

Steps to reproduce error :
1. map home directory under X: "net use X: \\server\username"
2. invoke PC-Pine and open INBOX (see attached "step2.jpg")
3. send new message to "username@domain"
4. refresh list of messages, Samba-4.1.3 shows no change, Samba-3.6.6 works correctly (see attached "step4-3.6.6.jpg")
5. quit PC-Pine
6. invoke PC-Pine and open INBOX (see attached "step6-4.1.3.jpg" and "step6-3.6.6.jpg)
7. send a further message to "username@domain"
8. refresh list of messages, Samba-4.1.3 shows no change, Samba-3.6.6 works correctly (see attached "step8-3.6.6.jpg")
9. disconnect drive mapping "net use X: /d"

The message sent in step 3 was written to INBOX, just not shown on refreshing,
but the one sent in step 7 had never been written to INBOX, hence the mail was lost.

Attached please also find the level 10 Samba logs of the sessions of steps 1-9.
Comment 1 anctop 2014-01-13 04:54:45 UTC
Created attachment 9578 [details]
smb.conf
Comment 2 anctop 2014-01-13 04:55:42 UTC
Created attachment 9579 [details]
step 2
Comment 3 anctop 2014-01-13 04:56:23 UTC
Created attachment 9580 [details]
step 4 (Samba 3.6.6)
Comment 4 anctop 2014-01-13 04:56:53 UTC
Created attachment 9581 [details]
step 6 (Samba 4.1.3)
Comment 5 anctop 2014-01-13 04:57:20 UTC
Created attachment 9582 [details]
step 6 (Samba 3.6.6)
Comment 6 anctop 2014-01-13 04:57:45 UTC
Created attachment 9583 [details]
step 8 (Samba 3.6.6)
Comment 7 anctop 2014-01-13 04:59:10 UTC
Created attachment 9584 [details]
level 10 log (Samba 4.1.3)
Comment 8 anctop 2014-01-13 04:59:48 UTC
Created attachment 9585 [details]
level 10 log (Samba 3.6.6)
Comment 9 anctop 2014-01-14 05:39:04 UTC
This problem also happens in the latest Samba-4.1.4 .