Retention in tracking center

Discussion in 'Mail Gateway: Installation and configuration' started by taurix, May 3, 2018.

  1. taurix

    taurix New Member
    Proxmox Subscriber

    Joined:
    Apr 9, 2018
    Messages:
    6
    Likes Received:
    0
    Hi, by law I have to keep maillogs for 2 years. Can I set a retention time in proxmox? It would be ideal if lookup in the tracking center would go that far back
     
  2. tom

    tom Proxmox Staff Member
    Staff Member

    Joined:
    Aug 29, 2006
    Messages:
    13,404
    Likes Received:
    384
    Not really, for such a use case you need to implement a powerful log server where you can store this huge amount of logs.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. taurix

    taurix New Member
    Proxmox Subscriber

    Joined:
    Apr 9, 2018
    Messages:
    6
    Likes Received:
    0
    Actually, everyone in Belgium using proxmail would be obligated to do that, a lot smaller providers like myself probably ignore it though.
    Still, the current retention in the tracking center is not that long, I started the gateway on april 10 and the first log entry I can still access is april 26...

    Guy
     
  4. tom

    tom Proxmox Staff Member
    Staff Member

    Joined:
    Aug 29, 2006
    Messages:
    13,404
    Likes Received:
    384
    The tracking center is a front-end to the syslog and the syslog files are available for 7 days, just standard Debian Linux.

    If you want to store gigabytes of logs from every day for 2 years, you need a huge server. You will find a lot of tools exactly for this task.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. taurix

    taurix New Member
    Proxmox Subscriber

    Joined:
    Apr 9, 2018
    Messages:
    6
    Likes Received:
    0
    So, for my own comfort, I'd like a retention of at least a month in the message center. If I change the logrotation, it will be visible in tracking center?

    Secondly, I will probably push the logs to an elasticsearch server to (unfortunatly) comply with draconian law.
     
  6. tom

    tom Proxmox Staff Member
    Staff Member

    Joined:
    Aug 29, 2006
    Messages:
    13,404
    Likes Received:
    384
    yes, if you syslogs are availabe for 30 days, you can also query them via the message tracking (check Debian howto for changing the log rotation)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Sommer

    Sommer Member

    Joined:
    Jun 7, 2018
    Messages:
    47
    Likes Received:
    5
    Exactly. Increase rotate count at /etc/logrotate.d/rsyslog on /var/log/syslog {}
     
  8. towerman

    towerman New Member

    Joined:
    Jan 22, 2019
    Messages:
    9
    Likes Received:
    0
    Sorry for the noob question, but how can I increase the limit?
    I would like to keep at least one month.
     
  9. heutger

    heutger Active Member

    Joined:
    Apr 25, 2018
    Messages:
    478
    Likes Received:
    115
    As posted above: Increase rotate count at /etc/logrotate.d/rsyslog on /var/log/syslog

    However, ensure that longer logging comply as well with GDPR
     
    towerman likes this.
  10. towerman

    towerman New Member

    Joined:
    Jan 22, 2019
    Messages:
    9
    Likes Received:
    0
    Do I have to restart sth later?
    And if I will update my PMG, do I have to change again that setting? Can I do sth like a custom file?

    ps: Damn, I hate GDPR :/
     
  11. heutger

    heutger Active Member

    Joined:
    Apr 25, 2018
    Messages:
    478
    Likes Received:
    115
    This setting seems to be outside the template system. I also won’t believe, you need to restart anything to get it running.
     
  12. guletz

    guletz Active Member

    Joined:
    Apr 19, 2017
    Messages:
    801
    Likes Received:
    108
    GDPR doesn't say nothing about logging. But could be a law specifically in your country, and in this case you must be follow.
     
  13. heutger

    heutger Active Member

    Joined:
    Apr 25, 2018
    Messages:
    478
    Likes Received:
    115
    Yes and no, GDPR doesn’t say anything about logging but says many things about processing personal data and they are also processed in logs. GDPR then also says many things about storage limitation. So you can‘t read anything directly but the data protection supervisory bodies like to reduce the log files storage, if containing personal data and it does: sender, recipient, ...
     
  14. guletz

    guletz Active Member

    Joined:
    Apr 19, 2017
    Messages:
    801
    Likes Received:
    108
    This is very true!
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice