Re: [exim] ?? perm problem with log_output in LDA transport

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: OpenMacNews
CC: exim users LIST
Betreff: Re: [exim] ?? perm problem with log_output in LDA transport
On Mon, 11 Sep 2006, OpenMacNews wrote:

> i'm using dovecot's LDA via pipe for local delivery in exim, w/
> transport:
>
> dovecot_lda:
>   debug_print    = "EXIM-DEBUG [T:dovecot_lda] for $local_part@$domain"
>   driver         = pipe
>   command        = /usr/local/dovecot/libexec/dovecot/deliver \
>                    -c DM_CONF_DIR/Dovecot/dovecot.conf \
>                    -d $local_part@$domain
>   message_prefix = ""
>   message_suffix = ""
>   delivery_date_add
>   envelope_to_add
>   return_path_add
>   log_output
>   user           = dovecot_mail_auth

>
> dovecot logs to its logfile just fine ... directly.
>
> BUT, when i've 'log_output' enabled in the exim transport, above, EXIM
> LOG complains:
>
> "Can't open log file /var/MailServer/Logs/dovecot/dovecot.log:
> Permission denied"
>
> disabling 'log_output' makes the error disappear.


That means that Dovecot has written that message to its standard
output or standard error. You have asked Exim to write such output to
its log by setting log_output, so it has. If you ask it not to, it
doesn't. (The output is discarded.)

> fwiw, EXIM execs as user 'testuser', DOVECOT execs as root ... and
> creates its log as:
>
>    -rw------- 1 root  testuser 271 2006-09-11 07:58 dovecot.log

>
> also, chmod'ing dovecot.log to 0666 also does the trick ...
>
> why does exim care about the perms on the dovecot log?


It doesn't. You need to find out why Dovecot is writting that message.


-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book