General Thankyou (still diagnosing fault)

Julian Field MailScanner at ecs.soton.ac.uk
Tue Jan 13 08:17:04 GMT 2009



On 12/1/09 22:07, Dave Filchak wrote:
> Julian Field wrote:
>>
>>
>> <snip>
>>>>>>
>>>>> OK ... this is what I got from the first addition:
>>>>>
>>>>> /usr/sbin/update_virus_scanners
>>>>> LOCKDIR = '/var/spool/MailScanner/incoming/Locks'
>>>>> RUNASU = 'postfix '
>>>>> RUNASG = 'postfix '
>>>>> lduid = , ldgid =
>>>>>
>>>>> Then with the addition of the second part, I get:
>>>>>
>>>>> /usr/sbin/update_virus_scanners
>>>>> LOCKDIR = '/var/spool/MailScanner/incoming/Locks'
>>>>> RUNASU = 'postfix'
>>>>> RUNASG = 'postfix'
>>>>> lduid = 80, ldgid = 80
>>>>>
>>>>> which looks much better ... yes?
>>>> Perfect! At last :-)
>>>>
>>>> Attached are new versions of mailscanner_create_locks and 
>>>> update_virus_scanners for you, which are slight improvements on the 
>>>> versions you now have. Please let me know if these work okay for 
>>>> you and correctly set the ownership of the files in 
>>>> /var/spool/MailScanner/incoming/Locks.
>>>>
>>>> I have gzipped the files to (a) save bandwidth and more importantly 
>>>> (b) stop my email client from attempting to add any signature to 
>>>> them or otherwise play with them :-) You will need to gunzip them 
>>>> before installing them, but I expect that's obvious ;)
>>>> Also, don't forget to ensure you have set them executable first.
>>>> chmod +x /usr/sbin/{mailscanner_create_locks,update_virus_scanners}
>>>> (Yes, that really is a valid shell command).
>>>>
>>>> Once you have tested them and confirmed they set the ownerships 
>>>> correctly, I'll re-release the latest stable MailScanner with this 
>>>> important fix in it.
>>>>
>>>> Jules
>>>>
>>> Hummm ... when I run the following ... you see what I get?
>>>
>>> /usr/sbin/update_virus_scanners LOCKDIR = 
>>> '/var/spool/MailScanner/incoming/Locks'
>>> RUNASU = 'postfix'
>>> RUNASG = 'postfix'
>>> /usr/sbin/update_virus_scanners: line 38: 
>>> /tmp/tmp/usr/sbin/mailscanner_create_locks: No such file or directory
>> Damn, sorry, knew I would screw up somewhere. Look for the string 
>> "/tmp/tmp" in /usr/sbin/update_virus_scanners and remove it.
>>
>> Once you can confirm that fixes it, I'll release a new version properly.
>>
>>
> OK, I run
>
> /usr/sbin/update_virus_scanners
> LOCKDIR = '/var/spool/MailScanner/incoming/Locks'
> RUNASU = 'postfix'
> RUNASG = 'postfix'
>
> Doesn't output the uid and gid but the Locks directory permissions 
> seem good. Can you verify that the following is correct?
>
> drwxr-x---  2 root    postfix   4096 Jan 11 16:13 Locks
That's exactly right. I have released 4.74.16-1 which contains a better 
implementation of this fix, and also fixes the same bug that appears in 
one other place too. So if you've got 5 minutes it would be worth upgrading.

Jules

-- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
PGP public key: http://www.jules.fm/julesfm.asc


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list