On 2018-02-21 14:10, Mueller wrote:
First lookup the log-files:
exim -bP log_file_path will show you.
Here is mine:
Loading lookup modules from /usr/lib64/exim/4.72-7.el6/lookups
Loaded 0 lookup modules
log_file_path = /var/log/exim/%s.log
I have the same.
meine-oma ~ # exim -bP log_file_path
log_file_path = /var/log/exim/exim_%s.log
meine-oma ~ #
It seems dovecot-lda runs as the user the mail gets delivered to. I can
dovecot-lda configure like that:
protocol lda {
# Space separated list of plugins to load (default is global
mail_plugins).
mail_plugins = sieve
log_path = /var/log/dovecot-lda-errors.log
info_log_path = /var/log/dovecot-lda.log
}
but then those logfiles need to be world writeable.
thanks and cheers
t.
I think on centos this is the normal way it should be. My exim runs
with the user exim, so no problem to write logs. It debends on your Os
where to set: log_file_path = /your/path.
drwxr-x--- 2 exim exim 4096 20. Feb 10:12 .
drwxr-xr-x. 13 root root 12288 21. Feb 13:06 ..
-rw-r----- 1 exim exim 90754 21. Feb 13:58 main.log
-rw-r----- 1 exim exim 0 20. Feb 10:01 panic.log
-rw-r----- 1 exim exim 77472 21. Feb 13:58 reject.log
Ls -la /var/log/exim
ls -la /var/log/exim
insgesamt 192
drwxr-x--- 2 exim exim 4096 20. Feb 10:12 .
drwxr-xr-x. 13 root root 12288 21. Feb 13:06 ..
-rw-r----- 1 exim exim 90754 21. Feb 13:58 main.log
-rw-r----- 1 exim exim 0 20. Feb 10:01 panic.log
-rw-r----- 1 exim exim 77472 21. Feb 13:58 reject.log
Greetings
Daniel
-----Ursprüngliche Nachricht-----
Von: himbeere--- via Exim-users [mailto:[email protected]]
Gesendet: Mittwoch, 21. Februar 2018 13:41
An: [email protected]
Betreff: Re: [exim] exim dovecot sieve integration
On 2018-02-21 12:42, Mueller wrote:
This is my dovecot_delivery
dovecot_virtual_delivery:
driver = pipe
command = /usr/libexec/dovecot/dovecot-lda -d $local_part@$domain -f
$sender_address
message_prefix =
message_suffix =
delivery_date_add
envelope_to_add
return_path_add
log_output
user = vmail
temp_errors = 64 : 69 : 70: 71 : 72 : 73 : 74 : 75 : 78
Exim writes log-files to his own /var/log/exim... with exim as user
Thanks for your answer but that requires me to have some kind of
virtual users environment which i don't have. Aside from that i fail
to understand why your setup logs to exim log and mine to dovecots.
Any ideas on that?
thanks and cheers
t.
-----Ursprüngliche Nachricht-----
Von: himbeere--- via Exim-users [mailto:[email protected]]
Gesendet: Dienstag, 20. Februar 2018 14:07
An: [email protected]
Betreff: [exim] exim dovecot sieve integration
Hello all.
I have just a generic question. Exim delivers fine to dovecot-lda. My
problems are the logfiles. Whenever I recieve a message Exim writes to
dovecot.log as the user who recieves the mail. This forces me to have
that logfile world writeable. I don't really like that. How do you
guys deal with that? Here my transport:
dovecot_delivery:
driver = pipe
# You may or may not want to add -d $local_part@$domain depending
on if you need a userdb lookup done.
command = /usr/libexec/dovecot/dovecot-lda -f $sender_address
message_prefix =
message_suffix =
log_output
delivery_date_add
envelope_to_add
return_path_add
#group = mail
#mode = 0660
temp_errors = 64 : 69 : 70: 71 : 72 : 73 : 74 : 75 : 78
thanks and best regards
t.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/ ## Please use the Wiki with
this list - http://wiki.exim.org/
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/