1

Topic: how to reach logs from 3 months ago ?

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): v0.9.7
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version: Ubuntu
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

dear all

how can i reach logs from sep/2019 ?

sent / received  messages i mean.

best regards.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: how to reach logs from 3 months ago ?

i dont know if IredAdmin-Pro will backup such old logs.

but the normal logrotation (postfix) dont save such "old" logs.
So if you dont have a old backup with the old Logs in it, they are lost.

3

Re: how to reach logs from 3 months ago ?

iRedAdmin-Pro doesn’t store old log.

4

Re: how to reach logs from 3 months ago ?

i search in : /var/log/mail.log 
it just have logs to 17\Nov Not before.

thanks for response.

5

Re: how to reach logs from 3 months ago ?

You should see many compressed log files under /var/log/, e.g. mail.log.1.gz, mail.log.2.gz, etc, do they contain any old log you're looking for?

6

Re: how to reach logs from 3 months ago ?

If you want to start logging more in future you can edit your rsyslog logrotate file at /etc/logrotate.d/rsyslog

eg, set "rotate 365" to keep 1 year of logs.
Here's a sample of mine:

/var/log/syslog
{
    rotate 7
    daily
    missingok
    notifempty
    delaycompress
    compress
    sharedscripts
    postrotate
        invoke-rc.d rsyslog rotate > /dev/null 2>&1 || true
#        invoke-rc.d rsyslog rotate > /dev/null
    endscript
}

/var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
/var/log/daemon.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
{
    rotate 365
    weekly
    missingok
    notifempty
    compress
    delaycompress
    sharedscripts
    postrotate
        invoke-rc.d rsyslog rotate > /dev/null 2>&1 || true
    endscript
}