[Samba] Samba 4 & Thunderbird Mail Client

Marco Shmerykowsky PE marco at sce-engineers.com
Thu Aug 1 18:15:35 UTC 2019


The email server is hosted outside the office.

In Thunderbird, under Options->Server Settings there
is an option under "Message Storage" to save the
message mbox files to a "Local Directory".

Rather than saving on the local drive of a given PC,
a user's message files are saved to a samba share on
the network.  That shared drive is on a server which
is configured in a RAID setup and has various
files being routinely backed up.

FWIW, this seemed to also occur on a Samba 3 setup
running on Centos.  I'm wondering if it's a related
to some kind of file access issue.

Requested info:

Samba Version 4.9.4-Debian
Samba Server Linux Debian GNU/Linux 9 (stretch)
Client: Windows 10, Thunderbird 60.8.0

smb.conf:

[global] 

         workgroup = INTERNAL 

         security = ADS 

         realm = INTERNAL.SCE-ENGINEERS.COM 

         server string = Samba 4 Client %h 

 

         winbind use default domain = yes 

         winbind expand groups = 2 

         winbind refresh tickets = yes 

 

         ## maps ids outside of domain to tdb files 

 

         idmap config *:backend = tdb 

         idmap config *:range = 2000-9999 

 

         ## maps ids from the domain (The ranges may not overlap) 

 

         idmap config INTERNAL : backend = rid 

         idmap config INTERNAL : range = 10000-999999 

 

         # uncomment next line to allow login 

         # template shell = /bin/bash 

         template homedir = /server/users/%U 

 

         domain master = no 

         local master = no 

         preferred master = no 

 

         # User Administrator workaround 

 

         username map = /etc/samba/user.map 

 

         # For ACL support on Domain Member 

 

         vfs objects = acl_xattr 

         map acl inherit = yes 

         store dos attributes = yes 

 

         # Disable printing completely 

         # remove these lines to print 

 

         load printers = no
         printing = bsd 

         printcap name = /dev/null 

         disable spoolss = yes 

 

         # logging 

         log level = 0 

 

[share-files] 

         path = /server/share-files 

         read only = no 

 

[users] 

         path = /server/users 

         read only = no

-- 

Marco

On 8/1/2019 10:51 AM, Rowland penny via samba wrote:
> On 01/08/2019 15:27, Marco Shmerykowsky PE via samba wrote:
>> I'm running Samba 4 and I've created a share on a
>> member server to hold the message files for the
>> Thunderbird email client.
>>
>> Over time I seem to get corruption of the message
>> files to the point where the folder file needs
>> to be reconstructed outside of Thunderbird.
>>
>> In other cases, the file corruption in combination
>> with folder compaction results in deletion of
>> the messages in the folder.
>>
>> This doesn't appear to happen if the message file
>> are stored locally.  I'm starting to suspect something
>> with how Thunderbird and Samba are interacting with
>> respect to handling the files.
>>
>> Any ideas?
>>
> No, mainly through lack of information.
> 
> I know you are using Samba, but what version ? On what OS ? What is in 
> your smb.conf ?
> 
> How are you connecting Thunderbird to Samba ?
> 
> Rowland
> 
> 
> 



More information about the samba mailing list