Mail Server Using Postfix, Roundcube, Vimbadmin, and MySQL, reporting scripts
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Mail Server Using Postfix, Roundcube, Vimbadmin, and MySQL, reporting scripts
Hello,
i have Mail server 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)
i have Mail server 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
Help with what? If you want a script, write it. There are many scripting tutorials you can find on Google. We will be glad to help you with specific questions....so post them with your scripts
Help with what? If you want a script, write it. There are many scripting tutorials you can find on Google. We will be glad to help you with specific questions....so post them with your scripts
i do not want a script, i am already writing it, my question is how i can find the number of read and unread message for each mailbox without invading the privacy and conditionality of there mail boxes is there a flag that i can monitor for each message or not.
and the second thing is how i can monitor there access is there another way than the log files, that each time somebody access his mail box to get the date and if possible the protocol and write it on other file?
these are my question i don't want any body to write any script on behalf of me, because i am already writing it.
If it's maildir format, you can use find command to find all new folders in users directory and than count all files in them. Those are unread mails and those in cur folders are read. But I think this is already invading their privacy.
I don't think you can do anything else than monitor log file of POP3/IMAP service to find out about their access.
but as i have seen in the new and cur folders there is some files in them contains more than one message, and we will not know what is in there mailboxes from data or the contents of the email, but i will use this script to know whose emails is active and whose not, is there any mailboxes that just take a space without being used....etc.
i have another question , in postfix i can put a quota to for all the mailboxes, put how i can put different quotas to different users??
Each file in new is a newly delivered mail message. The
modification time of the file is the delivery date of the
message.
I see what you are trying to accomplish, but new mail in mailboxes doesn't mean that account is active. New mails can be spam mails, or sender isn't aware that recipient isn't using that account any more. Best thing is to watch for logging.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.