LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Mail Server Using Postfix, Roundcube, Vimbadmin, and MySQL, reporting scripts (https://www.linuxquestions.org/questions/debian-26/mail-server-using-postfix-roundcube-vimbadmin-and-mysql-reporting-scripts-4175418914/)

jamil.isayyed 07-27-2012 04:28 AM

Mail Server Using Postfix, Roundcube, Vimbadmin, and MySQL, reporting scripts
 
Hello,

i have Mail server (debian) using Postfix, roundcube, vimbadmin and MySQL. what i want to do is to create a script report that gives:

1- the Mailbox Size, which i think i will use du -sh to find the size but also i want the qouta for each user and what is the space the the user still have.
2- the Amount of unread/read emails for each user. which i do not have any idea about how i can do it.
3- Last logon/access (if possible also by protocol POP3 or HTTP)


So any Help

Dutch Master 07-27-2012 05:26 AM

http://www.google.com and do your homework :)

jamil.isayyed 07-27-2012 05:37 AM

Quote:

Originally Posted by Dutch Master (Post 4739253)
http://www.google.com and do your homework :)

hahaha actually i am doing it, butt all what i want is little help
which how i can find the number of unread messages, or last time access... etc

by the way don't worry if you don't know how to do it i will keep this thread updated :D

Dutch Master 07-27-2012 07:20 AM

You won't know the number of unread messages unless you open the user's mailbox. But that's a breach of confidentiality, you're actually reading some other peoples email! Unless you're prepared to do battle with your users, including those who are in charge of your pay-check, don't go there... As for access times, look in /var/log. Again, you are on the cutting edge of legality here, and probably on the wrong side of it...

jamil.isayyed 07-27-2012 07:27 AM

aha what i am searching for if there is a flag for example in the database or any where else that i can use it to know if the message is read or not, without even knowing the content of the message, from where,..etc. i do not want to get in privacy and confidentiality problems.

what i am thinking about access time is to build a script that monitor the users access when they access there email for example i will write in other file the time and if possible to get what protocol.

unSpawn 07-30-2012 04:16 AM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate of http://www.linuxquestions.org/questi...ts-4175418910/


All times are GMT -5. The time now is 05:25 AM.