Hi all!
I've decided to rotate the dovecot logs automatically on my freebsd
10.4 server using the system's newsyslog feature. I started with
logfile.info putting the line
/var/log/dovecot/logfile.info 600 31 * @T16 ZCU
/var/run/dovecot/master.pid 30
which should send a SIGUSER to the master process, which it seems to
do for I see in the log file:
master: Warning: Sent SIGKILL to 1 log processes
master: Warning: Killed with signal 15 (by pid=69871 uid=0 code=kill)
though the log process doesn't die.
What did I do wrong?
my doveconf -n says:
root at baobab:/var/log/dovecot # doveconf -n
# 2.2.28 (bed8434): /usr/local/etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.17 (e179378)
# OS: FreeBSD 10.4-RELEASE-p3 amd64 ufs
auth_cache_size = 3 k
auth_debug = yes
auth_debug_passwords = yes
auth_mechanisms = plain login
auth_verbose = yes
default_client_limit = 1228
default_vsz_limit = 712 M
disable_plaintext_auth = no
first_valid_gid = 0
first_valid_uid = 100
info_log_path = /var/log/dovecot/logfile.info
listen = *
log_path = /var/log/dovecot/logfile
login_greeting = Dovecot at Baobab ready.
login_trusted_networks = 127.0.0.0/8 212.45.144.0/24 192.168.134.0/24
mail_location =
mbox:/var/spool/mailboxes/%u:INBOX=/var/spool/mail/%u:DIRNAME=mbox:INDEX=/var/dovecot_indexes/%u
maildir_copy_with_hardlinks = no
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy
include variables body enotify environment mailbox date index ihave duplicate
mime foreverypart extracttext
mbox_lock_timeout = 443 secs
namespace {
inbox = yes
location =
prefix =
separator = .
type = private
}
passdb {
driver = pam
}
plugin {
mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
mail_log_fields = uid box msgid size
}
protocols = pop3 imap
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
user = root
}
service imap-login {
inet_listener imaps {
address = *
}
process_limit = 512
}
service pop3-login {
chroot =
executable = pop3-login -D
inet_listener pop3s {
address = *
}
process_limit = 512
}
ssl_ca = </usr/local/etc/ssl/ca.crt
ssl_cert = </usr/local/etc/ssl/certs/dovecot.pem
ssl_key = # hidden, use -P to show it
userdb {
driver = passwd
}
version_ignore = yes
protocol imap {
imap_client_workarounds = delay-newmail
mail_plugins = mail_log notify
}
protocol pop3 {
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
pop3_enable_last = yes
}
protocol lda {
info_log_path = /var/log/dovecot/lda.log
log_path = /var/log/dovecot/lda-errors.log
postmaster_address = postmaxxxster at mcs.it
}
Luciano.
--
/"\ /Via A. Salaino, 7 - 20144 Milano (Italy)
\ / ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250
X AGAINST HTML MAIL / E-MAIL: posthamster at sublink.sublink.ORG
/ \ AND POSTINGS / WWW: http://www.lesassaie.IT/
Hi, On Fri, Jan 19, 2018 at 05:00:33PM +0100, Luciano Mannucci wrote:> I've decided to rotate the dovecot logs automatically on my freebsd > 10.4 server using the system's newsyslog feature. I started with > logfile.info putting the line > > /var/log/dovecot/logfile.info 600 31 * @T16 ZCU /var/run/dovecot/master.pid 30 > > which should send a SIGUSER to the master process, which it seems to > do for I see in the log file: > > master: Warning: Sent SIGKILL to 1 log processes > master: Warning: Killed with signal 15 (by pid=69871 uid=0 code=kill) > > though the log process doesn't die. > > What did I do wrong?Remove "U" from the flags: U indicates that the file specified by path_to_pid_cmd_file will contain the ID for a process group instead of a process. And sometimes "B" (don't insert info message about log rotation) is useful too. --Andreas -- ! Andreas Jobs Network Operation Center ! ! Ruhr-Universitaet Bochum ! ! One Day I Will Find This Peer Guy and Then I Will Reset HIS Connection !
On Sat, 20 Jan 2018 15:23:42 +0100 Andreas Jobs <andreas.jobs at ruhr-uni-bochum.de> wrote:> Remove "U" from the flags: > > U indicates that the file specified by path_to_pid_cmd_file will > contain the ID for a process group instead of a process.Got the very same result: Jan 22 15:00:00 master: Warning: Sent SIGKILL to 1 log processes> And sometimes "B" (don't insert info message about log rotation) is useful > too.The only difference is that now I have no evidence of why the logfile.info is empty. I'll try to compile the last 2.2 version, mine is the 2.2.28 that comes with freebsd. Thanks anyway, Luciano. -- /"\ /Via A. Salaino, 7 - 20144 Milano (Italy) \ / ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250 X AGAINST HTML MAIL / E-MAIL: posthamster at sublink.sublink.ORG / \ AND POSTINGS / WWW: http://www.lesassaie.IT/ -- /"\ /Via A. Salaino, 7 - 20144 Milano (Italy) \ / ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250 X AGAINST HTML MAIL / E-MAIL: posthamster at sublink.sublink.ORG / \ AND POSTINGS / WWW: http://www.lesassaie.IT/