Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
TetraWiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Main Page/postfix mail statistics
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
[[category:Tetra Clients]] [[category:BLK Hospital]] '''Postfix mail statistics via log analyzer (on Debian platform )''' '''Pflogsumm''' is a log analyzer for Postfix. The generated report can show you patterns in email traffic so you can better determine mail server abusers or if your mail server needs to be upgraded. Statistics can be very helpful in showing, for example, when most of your mail is sent or received or if that one mail user is sending out more than their fair share of mail. Pflogsumm is a single perl file and its only dependancies are perl, the perl module Date::Calc (which is probably already installed on your system) and the proper location of a Postfix log file. There are 2 ways to install pflogsumm : == process 1 : == Step 1: To get started you first need to download the pflogsumm.pl perl script. from the link : jimsun.linxnet.com/downloads/pflogsumm-1.1.0.tar.gz Step 2: Extract the files from the tar ball and put _only_ the perl script pflogsumm.pl into /usr/sbin/ . Make sure the permissions are 700 for security. Step 3: get statistics out of logs : /usr/sbin/pflogsumm -u 5 -h 5 -d today /var/log/mail.log == process 2: == install pflogsumm apt-get install pflogsumm get statistics out of logs : /usr/sbin/pflogsumm -u 5 -h 5 -d today /var/log/mail.log ==INSTALL A NEW CRONTAB FOR GETTING REGULAR UPDATE OF EACH DAYS MAIL STATISTICS == 59 23 * * * /usr/sbin/pflogsumm -u 5 -h 5 -d today /var/log/mail.log | mail -s "pflogsumm report " root@localhost
Summary:
Please note that all contributions to TetraWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TetraWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)