This article provides instructions and recommendations on how to configure the mail services that constitute the Linux Mail Service Module so that no personal data is written to the log files of the mail services.

qmail, Courier IMAP, Dovecot, and SpamAssassin

The qmail, Courier IMAP, Dovecot, and SpamAssassin services do write personal data to their log files by default. To prevent the services from writing personal data, on every host where these services are installed, turn off the logging of messages with the mail facility. For example, you can do this in the following way:

  1. Log in to a host where one or more of the services are installed.

  2. In /etc/rsyslog.conf, find all rules containing the mail facility.

  3. Either remove the mail facility from the rules or comment out the rules. Then, save your changes.

  4. Execute the command:

    service rsyslog restart
    

DrWeb

The DrWeb service does write personal data to its log files by default. To prevent the service from writing personal data, on each host where the service is installed, configure its logging so that no personal data is written to log files. For example, you can adjust the configuration of logging in the following way:

  1. Log in to a host where the service is installed.

  2. In /etc/drweb/drweb32.ini, check and adjust the values of logging settings, such as SyslogFacility, SyslogFacility, and so on. Save your changes.

  3. Execute the command:

    service drwebd restart
    

Internal content