Re: [Exim] intermittent 'permission denied'. Update.

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: tsh
Data:  
Para: exim-users
Temas antigos: Re: [Exim] intermittent 'permission denied'
Asunto: Re: [Exim] intermittent 'permission denied'. Update.
I was wrong about the problem being intermittent.

. Mail arriving at server1 gets scanned for spam if the
user has requested it. If it is found to be spam, it
is dumped in a per-user spambucket on server1 if the
user has requested it, otherwise it is just discarded.
. Almost all users' mail arriving at server1, which
survives any per-user spam check, is then
forwarded on to another host (alf1 at present)
except for user pdh.
. pdh has accounts on server1 and alf1. webmaster is aliased
to pdh@server1 and postmaster is aliased to pdh@alf1.
. The problem only occurs when mail for pdh or webmaster (which
would have been delivered to his account on server1), fails the
spam check and gets dumped into his spam bucket, but it
*always* occurs under these conditions.
Mail to postmaster which fails the spam check
gets dumped into pdh's spam bucket with no problem.

This is why I thought the problem was intermittent.
Its as if the expansion of $local_part in the spam_transport
(below) is not happening correctly for spam-mail aimed at the
local machine (server1).


Cheers,
Terry.


>On Fri, 14 Nov 2003 tsh@??? wrote:
>
>> 2003-11-14 08:37:39 1AKPA7-0004wR-00 == pdh@???
>> <pdh@???> R=localuser T=spam_transport defer (13):
>> Permission denied: creating lock file hitching post
>> /var/exim/mailcontrol/scanner/pdh/spambucket.lock.server1.mrc-lmb.cam.
>> ac.uk.3fb49453.00004edd (euid=343 egid=343)
>
>> I've checked the protections on the relevant mail files
>> and they are the same as everyone else's:
>>
>> -rw-r--r--   1 exim     exim           0 Sep 22 09:15 enablebucket
>> -rw-r--r--   1 exim     exim           0 Nov  6 14:23 enablescan
>> -rw-r--r--   1 exim     exim      106496 Nov  6 14:23 goodlist.db
>> -rw-------   1 exim     exim       22749 Nov 14 18:44 spambucket
>> -rw-------   1 exim     exim      680160 Nov 14 03:56 spambucket.prev
>> -rw-r--r--   1 exim     exim      155648 Nov  6 14:23 spamlist.db

>
>What are the permissions on the directory that contains these files?
>What are the permissions on
>
>/var/exim/mailcontrol/scanner/pdh


# ls -l /var/exim/mailcontrol/scanner
.
.
drwxr-xr-x   2 exim     exim        4096 Nov 17 16:58 pdh
.
.


>



>In the config file:
>
>
>localuser:
> driver = accept
> domains = @
> check_local_user
>
>  condition =   ${if and { \
>                           {exists{/var/exim/mailcontrol/scanner/$local_part/enablescan}} \
>                           {eq \
>                               {${run{/bin/csh /usr/exim/spam.csh $local_part ${spool_directory} ${message_id}}{true}{true}}} \
>                               {true} \
>                           } \
>                         }{true}{true} \
>                 }
>  transport =   ${if = {$runrc}{3} {spam_transport}{local_delivery} }
>  headers_add = ${if > {$runrc}{1} {X-Bogosity: LMB}{} }
>  no_more

>
>.
>.
>.
>
>spam_transport:
> driver = appendfile
> file = /var/exim/mailcontrol/scanner/$local_part/spambucket
>



>?
>
>
>--
>Philip Hazel            University of Cambridge Computing Service,
>ph10@???      Cambridge, England. Phone: +44 1223 334714.
>Get the Exim 4 book:    http://www.uit.co.uk/exim-book

>