General Thankyou (still diagnosing fault)

Dave Filchak submit at zuka.net
Mon Jan 12 22:07:30 GMT 2009


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

Dave



More information about the MailScanner mailing list