LINUXOR.SK ... open source notes ...

Email - logrotate rule for the encryption filter

category: solutionz · date: 2019-12-31 · updated: 2026-10-02 · author: LALA

Email Solution · Config document · referenced from Automatic email encryption

The logrotate rule for the log file the encryption filter writes itself. Daily rotation, seven old files kept.

ItemValue
Path on the server/etc/logrotate.d/bash-postfix-encrypt-filter
Shown hereDC2-A-VCMSX001
Also onDC2-B-VCMSX001 and DC2-A-VCMSX002, identical (diff is empty)
Rotates/var/spool/postfix/bash-postfix-encrypt-filter/log/bash-postfix-encrypt-filter.log
Activated withnothing; the daily logrotate cron job picks it up
SELinuxthe log directory is labelled like /var/log, and the module postfix-local lets logrotate_t work under the Postfix spool

The file

ini
/var/spool/postfix/bash-postfix-encrypt-filter/log/bash-postfix-encrypt-filter.log
{
    missingok
    daily
    copytruncate
    rotate 7
    notifempty
}

Reading it today

← solutionz