Topic: 執行export_last_login.py 的紀錄 , 系統的log查不到
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? dowload
- Linux/BSD distribution name and version: CentOS 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx):Ngix
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi , 版主:
系統定時執行 export_last_login.py (員工上班前的時間執行)
crontat -e
45 6 * * * python /opt/www/iredadmin/tools/export_last_login.py
今出現(不應該)的時間裡登入紀錄: (這時段應沒有人會使用的)
3 | test@mydomain.com | 2019-10-19 04:23:45
4 | postmaster@mydomain.com | 2019-10-19 04:23:45
5 | spam@mydomain.com | 2019-10-19 04:23:45
6 | admin@mydoamin.com | 2019-10-19 04:23:45
7 | noreply-dmarc@mydomain.com | 2019-10-19 04:23:44
8 | alert@mydomain.com | 2019-10-19 04:23:44
查了 log ,皆查不到相關紀錄:
搜尋無紀錄:
egrep 'Oct 19 04:23' /var/log/iredapd/iredapd.log
egrep 'Oct 19 04' /var/log/dovecot/pop3.log
egrep 'Oct 19 04' /var/log/dovecot/imap.log
egrep 'Oct 19 04' /var/log/dovecot/dovecot.log
egrep '2019\/10\/19 04' /var/log/nginx/error.log
除了下面:
egrep '19/Oct/2019:04' /var/log/nginx/access.log
45.65.128.250 - - [19/Oct/2019:04:04:46 +0800] "GET / HTTP/1.1" 301 178 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
77.247.108.229 - - [19/Oct/2019:04:09:10 +0800] "GET / HTTP/1.1" 301 178 "-" "libwww-perl/6.05"
77.247.108.229 - - [19/Oct/2019:04:09:11 +0800] "GET / HTTP/1.1" 200 54 "-" "libwww-perl/6.05"
請問版主, 哪裡可查到?
另 此程式的主要功用是什麼?
後端無效(長期未登入) user 的刪除之用?
對 ldap 平台, 要如何把 user 登入的 IP 也記錄下來?
在 https://docs.iredmail.org/track.user.last.login.html
last_login 只有3個欄位 ,無IP欄位.
未來的iRedAdmin-Pro LDAP 版有可能加入此功能?
Thanks.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.