Roundcube Community Forum

Release Support => Release Discussion => Topic started by: unwise on January 14, 2011, 09:19:07 AM

Title: [0.5]Monitor incoming and outgoing mail
Post by: unwise on January 14, 2011, 09:19:07 AM
I'm an admin of a mail server for a small non-profit company. But to be sure that every mailadress wil be used only for the bussiness i wanna monitor all incoming and outgoing mails. Is there a way to do this?

It would be nice to login in a mailbox without using the password of the owner. Just to repair some settings. (We use Fullcalender plugin. And not everyone nows how to isert a feed :o)
Title: [0.5]Monitor incoming and outgoing mail
Post by: rosali on January 15, 2011, 01:40:20 AM
Please PM'me. I have an 'impersonate' plugin. As I respect the privacy of users I have not published it. I'll give it away, if you convice me that the policy of your company allows you to login to anonymously.
Title: [0.5]Monitor incoming and outgoing mail
Post by: SKaero on January 15, 2011, 05:14:36 AM
Out of curiosity how did you make that plugin? Wouldn't it require setup on the mail server?
Title: [0.5]Monitor incoming and outgoing mail
Post by: JohnDoh on January 15, 2011, 06:29:12 AM
There is one in the plugin list on trac called Dovecot Impersonate

QuoteImpersonate another user using the dovecot masteruser feature. Useful for helpdesk/support issues.

That uses a special feature of Dovecot.
Title: [0.5]Monitor incoming and outgoing mail
Post by: rosali on January 15, 2011, 08:08:48 AM
Cor has developed one for Dovecot. Mine works for all backends. The downside is, that you have to use my 'savepassword' plugin.

It works like that:

login: [email protected]#[email protected]
pass: password of master

Pick up (encrypted) password from user and overwrite the
session with user and password of user.
Title: [0.5]Monitor incoming and outgoing mail
Post by: unwise on January 16, 2011, 02:48:48 PM
I got the plugin from Rosali. It works great i added some logging to it but now i'm looking for a way to enter a reason.

The way i think it needs to work is:

I log in a mailbox from someone else using [email protected]*[email protected]

Then a popup comes up so i can enter a reason. The reason needs to be written in the log file. But i don't know how i can do this. Because php is server side and (i think i need to do the popup with java) Java is client side. I don't know a way to pass a variable from the popup to php.
Title: [0.5]Monitor incoming and outgoing mail
Post by: rosali on January 17, 2011, 04:18:04 AM
jquery $.ajax or rcmail.http_post/rcmail.addEventListener are your friends ;-)
Title: [0.5]Monitor incoming and outgoing mail
Post by: unwise on January 17, 2011, 09:23:45 AM
Where can i find more info or maybe some example for those functions?
Title: [0.5]Monitor incoming and outgoing mail
Post by: dshepherd on January 17, 2011, 12:27:43 PM
You can find the jQuery Ajax documentation here Ajax – jQuery API (http://api.jquery.com/category/ajax/)