View Full Version : Email Level Plugin
DirectAdmin Support
11-30-2007, 02:38 AM
Hello,
version 0.1-beta
Due to popular demand, I've created a basic Email Level plugin.
The plugin allows users to install some php scripts into their accounts which then allows any pop account to login to those scripts to access their pop account setup.
It shows them their current disk usage, ability to change their password, set vacation messages (without bugging the webmaster), and provides them with the 3 links to the webmail programs.
To disable any of the webmail programs, set them to false in the "include/config.php" file.
Installation:
1) To install the plugin:
Admin Level -> Plugin Manager.
Enter the url:
http://www.directadmin.com/email_level.tar.gz
type in your password, and click "Add Plugin".
2) After that, Users will see the "Email Level installer" link in the User Level.
They can click it, and click "Create" to install it. Change values as desired.
Note: NO username or password are required. The email/password do the authenticating. Also, system accounts don't work, so stick with virtual accounts (eg pop@domain.com)
Note, during the creation of this plugin a bug was found and fixed:
http://www.directadmin.com/features.php?id=836
It will be avaiable for the next DA release.
Note that the plugin is able to handle the bug so you won't notice it affecting anything.
Please provide all bugs and feedback in this thread
and avoid emailing us questions about it, as if you have a question, I'm sure someone else will have the same quetion too, as we don't want to be replying to the same emails over and over ;)
Go easy on it, as it's 0.1-beta.
Bug Note: I did notice a random error when viewing the vacation message, but it didn't always show up. I wasn't able to duplicate it on all boxes, so I'm not sure if it's specific to just that one box and the php compile.. etc.. so if you see "socket returned no error, but there is data missing. Try reloading this page", let me know in this thread, with your system details. I debugged it quite a bit, but DA was doing it's job, and the httpsocket.php was functioning properly as far as I could tell. Again, this may just be isolated to the 1 build system. Just giving you a heads up ;)
John
welch
11-30-2007, 03:28 AM
Nicely done. This will work. Thanks
rldev
11-30-2007, 08:29 AM
Can you post some screen shots?
rldev
11-30-2007, 09:07 AM
I get a blank screen when logging in.
pucky
11-30-2007, 12:55 PM
I really dont get the concept of what i could be used for.
rldev
11-30-2007, 01:41 PM
The concept is that if you have an account that has 20 email accounts, this interface will allow each email user to log into their individual email control panel to change things like password, autoresponder, etc.
iceuk626
11-30-2007, 02:23 PM
Installation went ok, after i entered my email and password on the login page to try it out i just get a 500 internal error.
DirectAdmin Support
11-30-2007, 03:41 PM
Installation went ok, after i entered my email and password on the login page to try it out i just get a 500 internal error.
I take it then you're running suphp. Check the /var/log/suphp.log for clues as to why it's complaining. It's probably either the user/group or permissions of the copied files. Check the log and check to see what the permissions are.
Attached are some screenshots.. note fc6.com isn't ours, nor is it "real" in this case, it's just a fake domain on our fedora 6 box on an internal network.
John
jlandes
11-30-2007, 09:52 PM
DA,
I think this is a great start. Thanks. :)
pucky
12-01-2007, 02:45 AM
Error about not being able to find private_html which is interesting because this is created by DA when a site is created is it not so it should be there.
No futher tests were done (Freebsd). After this error i quit.
karl0smoo
12-01-2007, 06:41 AM
Install went fine after creating/setting permissions on private_html, apart from when trying to view i got the following, any suggestions wouldbe great.
Warning: session_start() [function.session-start]: open_basedir restriction in effect. File(/var/tmp/) is not within the allowed path(s): (/home/userhere/:/tmp:/usr/local/lib/php/) in /public_html/email/login.php on line 9
Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: files (path: ) in
/public_html/email/login.php on line 9
Thanks.
DirectAdmin Support
12-02-2007, 03:48 PM
Install went fine after creating/setting permissions on private_html, apart from when trying to view i got the following, any suggestions wouldbe great.
Warning: session_start() [function.session-start]: open_basedir restriction in effect. File(/var/tmp/) is not within the allowed path(s): (/home/userhere/:/tmp:/usr/local/lib/php/) in /public_html/email/login.php on line 9
Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: files (path: ) in
/public_html/email/login.php on line 9
Thanks.
Hello,
/var/tmp isn't the default tmp path the php.ini.
You'd want to check your php.ini and make sure you've got:
session.save_path = /tmpin it.
For CLI php:
/usr/local/lib/php.ini
For suPhp:
/usr/local/etc/php5/cgi/php.ini
OR
change your templates to include /var/tmp in the openbasedir path.
http://help.directadmin.com/item.php?id=2
John
How hard would it be to adapt this plugin to let email users manage their spamassassin settings?
DirectAdmin Support
12-03-2007, 08:47 AM
Very hard considering the spamassassin settings are not a per pop option. The S.A. settings are only per system account.
John
jlandes
12-03-2007, 10:08 AM
John,
In your plugin file, there is a directory called data. I believe this is the directory that contains the files that get installed into the user's public_html directory. Instead of installing this as a plugin, can we just take the files from this data directory and place them into /var/www/html/email_panel and then setup an alias called something like email or user in the server's main httpd.conf file? Then, there would be no need for each user to install this and it would be available for the whole server. Is that possible?
DirectAdmin Support
12-03-2007, 11:28 AM
Yes you can.
If you run suPhp though, you'd have to set them up with the webapps user.
John
jlandes
12-03-2007, 12:05 PM
I like this idea rather than requiring each user to install the files to their public_html directory. One single install that can be managed by the server admin and also one place that DA would need to update if changes were made. I think this is probably the best method, rather than doing it as a plugin. I'll give this a try and see if it works. Thanks John.
pucky
12-03-2007, 09:01 PM
Yes you can.
If you run suPhp though, you'd have to set them up with the webapps user.
John
I guess you didnt see my error
Error about not being able to find private_html
After installing and trying to enable it on a domain.
jlandes
12-03-2007, 09:26 PM
pucky,
Is your private_html directory a symlink to public_html or is it a separate directory? Also, what's the owner and permissions on that vs. your public_html directory? Just trying to help gather some information for troubleshooting. Thanks.
pucky
12-03-2007, 09:29 PM
The creation of all files and directories should be standard. In other words i created a domain then tried to install the plugin on the domain. No errors should appear in regarding to anything. Its a standard installation of CREATE DOMAIN.
elvandar
12-04-2007, 04:01 AM
Hello,
The inbox stats are displayed twice in the overview... and indeed I would prefer a 'general' approach to this (being that it lives next to squirrelmail etc in /var/www/html).
//Remko
Dillard
01-04-2008, 03:32 AM
Nice plugin!
We were looking for something like this for some clients with many users, so they can manage their users themselves.
However, after logging in, I get a blank screen and in the log-files I find a 302 notice when posting data to the index.php. Probably some redirect is not yet found, but I'll look into this later this weekend.
Jensemann
01-04-2008, 06:21 AM
No problem on my setup. It works wonderfull... thanks for the tool!
Nice plug in,
One thing I am having issue with is when I try to log in I get a .index.php file trying to save to my HD (or open).
It might something simple I am overlooking, but can someone help me?
Eduard
01-05-2008, 05:01 PM
Hello,
I install this plugin, i dont have an error at install but when i try to autentificate with my email adress and password i have this message: Email Login Page
You have entered and invalid email or password
Please enter your Username and Password
i try to autentificate this: - user@domain.com & pass
- user & pass
But is not working, any sugestion?
DirectAdmin Support
01-05-2008, 07:00 PM
Nice plug in,
One thing I am having issue with is when I try to log in I get a .index.php file trying to save to my HD (or open).
It might something simple I am overlooking, but can someone help me?
Usually means php isn't working at all.. not an issue with the plugin, but a more major issue with the php setup.
Make sure the domain has php turned on in the domain settings, and also try /webmail to see if that works.
John
Eduard
01-06-2008, 10:58 AM
Hy,
Yes the PHP is turned on for all my domains and the /webmail is working fine.
Have any sugestion?
Eduard.
DirectAdmin Support
01-06-2008, 11:35 AM
Try creating an info.php file with
<?
phpinfo();
?>and then few the info.php through apache. If that doesn't work, also try
<?php
phpinfo();
?>Also check for any .htaccess files, or any apache handlers you may have added through DA for php files.
John
Eduard
01-06-2008, 11:52 AM
Hy again, The PHP is working fine, when i access www.domain.com/email/ it is loading the index, with the screen login but i cant login to any email say the password or username is incorect.
Eduard
DirectAdmin Support
01-06-2008, 11:54 AM
Test the exact same email/password with /webmail.
Also make sure you have an updated version of DirectAdmin.
John
Eduard
01-06-2008, 12:02 PM
Hy, adn tnx for answer.
I test same email & password to webmail and is working fine,
the DA version is 1.31.2
Eduard
DirectAdmin Support
01-06-2008, 12:10 PM
Ok, then check the /var/log/directadmin/error.log for clues.
Also run DA in debug mode to see if you can spot anything as well:
cd /usr/local/directadmin
killall -9 directadmin
./directadmin b800You'll get a lot of output, so try and sift through as best you can. Note if, you need to paste any of that output to the forum, make sure you remove or block the password snips, as that would be insecure ;)
John
SajtXL
01-06-2008, 04:22 PM
No problem on my setup. It works perfect.. thanks for the plugin! :)
Eduard
01-07-2008, 02:19 AM
Hy,
I found the problem, when i install email level filter in /include/config.php is set the port 2222, and my port to directadmin is another because i change them.
Modify in /usr/local/directadmin/plugins/email_level/data/include/config.php
<?
$host="localhost";
$port="PORT-FOR-ACCESS-DA";
$ssl=false;
$show_roundcube=true;
$show_squirrelmail=true;
$show_uebimiau=true;
?>
Eduard.
Dillard
01-07-2008, 10:00 AM
I did solve my issue as well (blank screen after login).
Since we redirect all traffic to port 2222 over SSL, it's necesarry to enable SSL in the config-file :)
So, that fixed my issue...
Works well by the way!
mattb
01-07-2008, 07:41 PM
Installed and works well.
Using the "/var/www/html" site-wide install method.
TYVM... love it.. and so will the users! :D
mikec
01-24-2008, 11:29 AM
Nice Plug-in... Just want to know if there is any way to configure so that when the user is logged into the /email gui and he clicks on the wmail client of his/her choice they don't get prompted for user/pass again?
Also has anyone tried skinning this plug-in?
jlandes
01-24-2008, 02:52 PM
I had thought about trying to skin the plug-in to match the Enhanced skin in DA. But, I have not done that yet. :(
hostpc.com
01-31-2008, 07:11 PM
Install went fine, plugin works fine
However, tried to edit the config file to disable Uebimiau .. but it still shows up.
Thanks,
Nick
Eduard
01-31-2008, 11:46 PM
Hello,
If u want to disable webmiau edit :
nano /usr/local/directadmin/plugins/email_level/data/include/config
$show_uebimiau=false;
Eduard.
hostpc.com
01-31-2008, 11:51 PM
Yes, we found the config file, however making it false and restarting DA resulted in nothing.
The link is still there
Thanks,
Nick
Sheldon
02-10-2008, 12:26 PM
Hello all,
When I tried to activate this inside the user account by clicking create link or whatever it locked up my system and I had to call in to the DC and ask for a remote reboot!
Running PHP 5 with Apache 2
Any advice?
ssi.inc
02-14-2008, 10:52 PM
Yes, we found the config file, however making it false and restarting DA resulted in nothing.
The link is still there
Click on the "Email Level Installer" link in the "Advanced Features" of your control panel, Click "Create".
Basically, reinstall the plugin at the user level. That will solve your problem.
kktsang
03-13-2008, 09:39 PM
can I setup forward for that email address in the plugin ?
Thanks.
albatroz
05-19-2008, 10:25 AM
How did you integrate Roundcube in the equation?
I take it then you're running suphp. Check the /var/log/suphp.log for clues as to why it's complaining. It's probably either the user/group or permissions of the copied files. Check the log and check to see what the permissions are.
Attached are some screenshots.. note fc6.com isn't ours, nor is it "real" in this case, it's just a fake domain on our fedora 6 box on an internal network.
John
Mattie
06-01-2008, 08:46 AM
Is it possible to let the users create e-mail accounts?
nobaloney
06-01-2008, 11:37 AM
Users can create email accounts.
Users are people who own domains.
Do you mean is it possible for email-accounts (someone with one email account) to create another email account?
No.
Jeff
tim874536
06-15-2008, 08:50 PM
A bug!
Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 8192 bytes) in /home/username/domains/domain.com/public_html/email/include/httpsocket.php on line 250
Server:
Apache 1.3.37 Running
PHP Version 5.2.2
DirectAdmin 1.32.1 Running
Exim 4.67 Running
MySQL 4.1.21 Running
Named 9.2.4 Running
ProFTPd 1.3.0a Running
sshd Running
vm-Pop3d 1.1.7f-DA-2 Running
nobaloney
06-16-2008, 02:53 PM
What were you running when you got this?
Jeff
tim874536
06-16-2008, 08:48 PM
i just installed this plug-in in admin level, enabled it in one of my client account
after that, i just entered http://xxx.com/email in IE and this message was shown out
nobaloney
06-17-2008, 08:11 AM
When I attempt to visit your link I get a warning that it's an adult site. So I disabled the link.
Please check here (http://homepages.tesco.net./~J.deBoynePollard/FGA/dont-obscure-your-dns-data.html).
The problem is probably that you don't have a high enough limit set in your php.ini file.
Jeff
tim874536
06-18-2008, 02:37 AM
When I attempt to visit your link I get a warning that it's an adult site. So I disabled the link.
Please check here (http://homepages.tesco.net./~J.deBoynePollard/FGA/dont-obscure-your-dns-data.html).
The problem is probably that you don't have a high enough limit set in your php.ini file.
Jeff
first, i am sorry that make you confuse
my site is not that xxx.com, i just want to tell u that xxx is a domain name with tld .com
second, i have tried today, and the problem is still here..
and what is your suggest in php.ini??
my php config
http://61.238.149.199/phpinfo_.php
Scormen
06-18-2008, 12:05 PM
Hi all,
I have succesfull installed the plugin, but when someone want to login, he is asked to "open or saved" the file index.php. I have never saw this problem, with other PHP scripts I have no problem.
Thanks,
Kris
dannygoh
06-22-2008, 08:47 PM
Hello,
How can this instaill in server-wide?
nobaloney
06-23-2008, 07:57 PM
I have succesfull installed the plugin, but when someone want to login, he is asked to "open or saved" the file index.php. I have never saw this problem, with other PHP scripts I have no problem.
Generally this means the user is not allowed to run PHP.
Jeff
Mattie
06-24-2008, 02:51 AM
Is it possible to create "e-mail only" accounts. So the user's dont have ftp and stuff?
jlandes
06-24-2008, 06:14 AM
Virtual e-mail accounts, by default, do not have FTP and other services.
Scormen
06-24-2008, 09:27 AM
Generally this means the user is not allowed to run PHP.
Jeff
Hmm, not this time I think, PHP is working fine with other scripts.
Kris
nobaloney
06-24-2008, 11:47 AM
I'm not a webprogrammer so perhaps someone else will respond, but perhaps it's using some kind of header that's not recognized by your httpd.conf file.
Jeff
bruin03
06-25-2008, 01:49 AM
Would someone kindly explain how to use this once installed?
Thank you. :)
cyberneticos
06-25-2008, 07:11 AM
Congrats on this plugin.
We were using some home-made script for password changing (a mod of that password changing page) but we'd rather use this plugin since it's a DA maintained plugin (or would be)
Can't seem to load the screenshots. Can you check your links ?
thanks !!
hklcf
06-26-2008, 10:42 PM
try it first..
rutekp
07-01-2008, 12:01 PM
I install it but when i write login and pass a see "Page not found" in my browser and in apache logs i have:
[Tue Jul 01 19:48:07 2008] [notice] child pid 5935 exit signal Segmentation fa
ult (11)
[Tue Jul 01 19:48:09 2008] [notice] child pid 10070 exit signal Segmentation f
ault (11)
What PHP version it require ?
My DA is on other port then 2222 but i change it in config.php
jlestrade
07-16-2008, 10:41 AM
Yeah!. Good Plugin!. Congratulations!.
I'm using it right now, if I find some bugs the comment here.:)
Julian
empowering
07-22-2008, 10:42 AM
1. IMHO this should be installed server wide and not per customer. Makes it harder to maintain the code. In our case we've taken the code off the control panel and making it available on our support web site. It autodetects the the server and connects to that server to login.
2. Looking at the source code, while it works, I hope to god the control panel code is much better developed and has more error checking. It appears this was developed very quickly and hope the reason why the code looks this way.
3. DA is aware of this bug.... If you use the Email API calls remotely it does not work if SSL is disabled. It only works if SSL is enabled.
nclot1
08-02-2008, 11:13 AM
This is a good starts ;). It works perfect on our new server. All the while we're using http://www.domain.com:2222/CMD_CHANGE_EMAIL_PASSWORD to enable our users to change email password without logging in.
This is what we're looking for so that it'll ease the site owner / webmaster.
Better still if DA can upgrade this plugin so that a site owner can manage his users ie create / delete / edit without logging in. There are some reasons for this. Here's the scenario:
We are a web design company offering affordable services in our region. Our main business is in webdesign and not the webhosting. But recently we are upgrading ourselves slowly by offering webhosting as well. Our target mainly for our current clients as a starting.
Therefore we offer a very attractive package with free hosting for the first year. The package is on our higher class design but with a lower price. The catch is that we don't give the client to access the control panel so they'll not get the source files. If they wish to move hosting, then they'll have to pay the exit fee ie the difference between our higher class with the lower class. This way we'll have a long term revenue by having a repeat sales on the yearly hosting fee. And our hosting is still among the cheapest in our region.
Therefore if they'll need to add users, at this stage they'll have to contact us and we'll do it for them for free. So if DA can upgrade this plugin to enable the site owner (super user for this email login) to manage their users (But must have a different login details to the DA Control panel, otherwise he'll still be able to login to the CP), these will be a GREAT plugin as it'll reduce our workload. :) . We hope the DA team will have a positive move on this idea as this is good for a webdesign company to start offering webhosting and earn the revenue yearly. We're not sure for other region but this marketing strategies work well in our region.
DirectAdmin Support
08-02-2008, 11:52 PM
Hello,
Creating new email accounts from within an email account editor is far beyond the scope of this plugin.
However, what you're looking for already does exist (on the DA side anyway)
It's the API for email accounts. You'd have to write the client side of it to interface with DA, but it would allow you to create email accounts without giving them a DA login.
Info:
http://www.directadmin.com/api.html
http://www.directadmin.com/api.html#email
Here is a sample for creating DA users, just to give you an idea of how it works:
http://www.directadmin.com/sample_api.txt
John
Could you add the support for AtMail webmail?
getUP
08-17-2008, 01:49 AM
Could you add the support for AtMail webmail?
AtMail is already supported by custombuild. What do you mean exactly?
I mean the Email Level Plugin. I have AtMail installed but in the Email Level Plugin only links to Roundcube, Squirrelmail and Uebimiau are being displayed. I had to modify the code to show Atmail link.
donkeyKICK
09-06-2008, 12:22 PM
The install seemed to go fine for me, but when I go to www.mysite/email (http://www.mysite/email) the page comes up, but when I enter my email/pass I just get "page cannot be displayed" error. The files are there, so I don't know what I am missing... could be lack of sleep
donkeyKICK
09-06-2008, 01:45 PM
In my apache error log, I get:
[Sat Sep 6 12:14:48 2008] [notice] child pid 10077 exit signal Segmentation fault (11)
Snoopy
09-11-2008, 07:16 PM
Hi all
im trying to get the email plugin to work but am getting this error and cant find how to fix it.
Warning: session_start() [function.session-start]: open_basedir restriction in effect. File(/var/tmp/) is not within the allowed path(s): (/home/cybernet/:/tmp:/usr/local/lib/php/)
Can anybody tell me how to solve this..
Im using the recent version of DA and on Freebsd7.0
ben29
10-16-2008, 04:19 AM
hi man
first thanks
but
i got blank page after i do "CREATE"
donkeyKICK
10-16-2008, 11:28 AM
I still haven't been able to get it to work... I just gave up on it.
youds
10-16-2008, 04:03 PM
Brilliant - these features are what makes DirectAdmin awesome for me!!
You spelt modification wrong in the footer though
donkeyKICK
10-16-2008, 04:04 PM
How were you able to get it to work?
youds
10-16-2008, 06:44 PM
I installed the plugin as directed, edited the files on the server to better suit my needs, then deleted the plugin because the files in the plugin don't actually take into account what web mails are installed or the theme of DA etc
I'm now running this plugin from /var/www/html/settings and all the webmail.domain.com domains are reflecting this.
donkeyKICK
10-16-2008, 06:49 PM
So it won't work out of the box? What did you edit specifically to get it to work? Is there a how-to that I missed?
youds
10-16-2008, 07:04 PM
1) To install the plugin:
Admin Level -> Plugin Manager.
Enter the url:
http://www.directadmin.com/email_level.tar.gz
type in your password, and click "Add Plugin".
2) After that, Users will see the "Email Level installer" link in the User Level.
???
I edited the files it outputs on the server then deleted the plugin, I edited all of them I think
donkeyKICK
10-16-2008, 07:06 PM
How did you edit them? I did steps 1) & 2), but still I get "page can not be displayed" when I enter my user/pass.
remikk
10-18-2008, 09:09 AM
I also have blank page after I put e-mail and password.
Thank you! This is exactly what I have been looking for - AWESOME!
I have this up and running (works great BTW) and am working on some heavy customization (look & feel). I am curious to learn how difficult it would be to have the success/error messages for Password Changes & Updating Vacation Messages appear on the same page rather than refreshing to a new page? (just like how the login page messages are currently displayed)
Does anyone have any recommendations or suggestions?
Thanks for any assistance you can provide!
(programming is not my strong suit :o)
kktsang
12-09-2008, 02:29 AM
Can the directadmin developer make CMD_API_EMAIL_FORWARDERS similar to CMD_EMAIL_ACCOUNT_VACATION so that it do not need a username to setup a forward ?
Thanks.
DirectAdmin Support
12-09-2008, 02:05 PM
Hello,
Unfortunately, the forwarders are not dependant on the email accounts. Forwarders can exist without the presence of an account, and since there are no passwords with forwarders, DA wouldn't be able to authenticate for them. If the account did exist with the same name, then in theory it would work, however a local copy of the email would always get saved (if the account exists) so isn't likely the desired behavior.
John
kktsang
12-09-2008, 07:08 PM
Is it possible to extend this plugin to let the email user setup his own forwarders ?
I don't want to store the da admin password in a file that is accessible to user's php script.
Thanks.
nobaloney
12-11-2008, 09:41 AM
I thought John's email directly above yours explained why it couldn't be done without creating a security issue.
For example, a user who could set up his own forwarders could make a copy of any email address on the domain, and forward the contents to himself/herself.
Jeff
kktsang
12-11-2008, 09:28 PM
This could be solved by creating another forwarder's API that restrict the forwarder to be the same as the email address. So that it become a email user's level API.
I just want provide a user-friendly environment and not going to create security issues.
DirectAdmin Support
12-11-2008, 09:35 PM
Yes, but in order for the user to login, DA needs to check a password somewhere, so the email account needs to exist, since forwarders don't have passwords. Then if you have both an email account and a forwarder, you get 2 copies of the email which isn't usually desired. The account needs to be deleted for exim not to deliver to it. I understand what you're looking for, but it's just not possible without having a seperate password database and access to DA with the DA user account/pass.
John
fossie
12-12-2008, 07:52 AM
Maybe it's not possible, I'm just thinking ...
A user can login with their username@domain.tld and password (real email account)
DA check if the user can authenticate (email wise for example)
Let the user create forwarder only if the forwarder doesn't exist as an email account or forward address on that server.
This limits the risk to let a user on a domain steele the email of another user, right?
Maybe it's not possible to do it this way (don't know how the authentication is setup for the moment). I didn't read the whole thread, just came on this due a search for password change.
HTH,
Fossie
nobaloney
12-12-2008, 08:55 PM
Obviously you've never been part of an organization where someone wants to read someone else's email :).
Since I've never loaded or used the plugin I don't know if this is already available or not; someone please help me:
I think it reasonable that an email user should be able to set up or remove a forward from his own email address. And I think that wouldn't be a security issue.
Is it possible? Someone who uses the plugin please let me know. Otherwise perhaps it can be added.
Thanks.
Jeff
Excuse me, how about the AUTORESPONDERS for virtual POP accounts?
I checked some posts here, and found that people had been asking for "Virtual POP users can manage their own password, autoresponder and vacation message" since 2003 (http://www.directadmin.com/forum/showthread.php?t=202&highlight=autoresponder). However until now only autoresponder is left behind.
(About forwarder: forwarders seems to be impossible because they are not directly related to any POP users, but if I send my full email address and password to DA, DA is able to limit me to set up forwarder(s) from my email ONLY to other address(es), either in the same domain or an external address. This is possible right? I think people sometimes need to automatically forward a copy of their emails to another address. If this can be achieved this will help a lot of people! ... or this is already possible somewhere else? Actually this idea is just the same as jlasman's.)
We have many clients asking for this feature for a long time, and as a developer and also an administrator I think this is a required function.
Since this plugin (and the related APIs) has not been updated for a while, I want to ask about the progress on this remaining function. Is this a difficult API/function to develop, that taking the team so much time?
Thank you for any reply, especially from DA team.
(This is the first time I ever post in this forum, please forgive me if I said something wrong. Thank you.)
Ken
Edit: (Maybe better to post elsewhere?) I know that user can check their own email usage via CMD_EMAIL_ACCOUNT_QUOTA, but it does not provide the user's quota limit. Is it possible to put it in? For example return limit=10485760 means quota limit is 10MB and limit=0 is no limit.
FaSan
12-28-2008, 04:22 AM
Installed on my DA 1.33 and work good (CentOS 5.2 64bit).
...but it's a little ugly interface :-) how i can change it ?
Thank you very much
DirectAdmin Support
12-28-2008, 05:08 PM
Excuse me, how about the AUTORESPONDERS for virtual POP accounts?
Hello,
The autoresponders cannot be put into the plugin because autoresponders, just like forwarders, do not require a pop account to be present. As such, the plugin doesn't have any way to authenticate a non-passworded autoresponder, thus it cannot be added to the plugin.
Note that vacation messages are very similiar to autoresponders, and vacation messages DO require the account to be present, thus they do exist in the plugin. You can just use the vacation messages for autoresponders instead, and just set them to be on forever, thus giving you an autoresponder.
John
John, Thank you for your reply.
The autoresponders cannot be put into the plugin because autoresponders, just like forwarders, do not require a pop account to be present.
Yes it is, so I said:
... if I send my full email address and password to DA, DA is able to limit me to set up forwarder(s) from my email ONLY
So a POP user can create their own autoresponder/forwarder, for their email address, while other situations (autoresponders with forwarders, forwarders without POP accounts, etc.) still limit to system accounts. I don't think POP users should be allowed to create such types of autoresponders/forwarders, they simply don't need that.
As such, the plugin doesn't have any way to authenticate a non-passworded autoresponder
What I mean is, we are not authenticate a autoresponder, but a POP user, and allow him/her to create his/her own autoresponder/forwarder. We just deny any autoresponder/forwarder that is not created for his/her account. Again, system accounts are not limited (normal limitations should still apply, of course), just POP accounts. All limitations should be done on API level, of course.
Note that vacation messages are very similiar to autoresponders, and vacation messages DO require the account to be present, thus they do exist in the plugin. You can just use the vacation messages for autoresponders instead, and just set them to be on forever, thus giving you an autoresponder.
Well, I know that this is possible, but how can I set it to "forever"?
Anyway, it will be the best if a native function is avaliable, for both autoresponders and forwarders.
Ken
youds
01-26-2009, 09:18 AM
This plugin has been adapted as a plugin for RoundCube Web Mail
See link http://www.roundcubeforum.net/downloads/plugins-patches/3/change-password-directadmin-roundcube0-2stab-16/
Thanks for your efforts
stables
02-16-2009, 01:37 PM
Love it! But first I login to get the Email Modifcation Tool screen, then, when I choose my program, I have to login in again with the same info. Is this working as designed or an error in configuration?
bruin03
02-16-2009, 02:34 PM
Love it! But first I login to get the Email Modifcation Tool screen, then, when I choose my program, I have to login in again with the same info. Is this working as designed or an error in configuration?
My users are experiencing the same double login issue. Please advise.
DirectAdmin Support
03-21-2009, 01:38 AM
Hello,
A bug was reported where you get this error message after viewing an already existing vacation message:
socket returned no error, but there is data missing. Try reloading this pageI've found the issue to be in DA. It was caused by 4 repeated sends of strings to the socket, which was correctly coded, but simply not working for some reason. I changed the code to assemble the 4 strings into 1, then did 1 send, and that works now, so if you get the above error, it will be fixed for the next release of DA.
John
cyberneticos
03-21-2009, 03:53 AM
Hello John,
Just installed the plugin for the first time. Very interesting. It's like an "User Email Control Panel"
I think the way this is looking, it could replace/change the way users manage their webmail completely.
1- Gives directadmin users ability to set thier own webmail login page
2- Gives user's email users ability to manage thier own email account password, vacation message.
I think you could easily add a fowarder only for the pop account the user has authenticated with.
For example. john@directad.com will only be able to create fowarders from john@directad.com -> xxxxxxxxxx and only from that account. He will not be able to create john.doe@directad.com -> xxxxxxxx or john@directadministration.com -> xxxxxxxx (that would be a security issue) And john@directad.com should only be allowed to create/modify/delete those fowarders and even perhaps allow the user to keep a copy in his inbox, or not with a check box.
What do you think ?
If you could make this happen, I think we would probably install this plugin on all of our shared hosting servers, and make this "The Way" to login to webmail for all users, since using the current method gives you much less features.
I would also think about rearanging things a bit,. to save space, and to prepare this plugin for what it's going to end up being :) For example, get rid of all of the table space between sections,. and keep the webmail client icons on top (since eventually that wil be used the most).
Excellent work on this plugin :D
I think you could easily add a fowarder only for the pop account the user has authenticated with.
John think this is impossible, while it is possible ...
... in order for the user to login, DA needs to check a password somewhere, so the email account needs to exist, since forwarders don't have passwords. Then if you have both an email account and a forwarder, you get 2 copies of the email which isn't usually desired. The account needs to be deleted for exim not to deliver to it. I understand what you're looking for, but it's just not possible without having a seperate password database and access to DA with the DA user account/pass.
What if this behavior IS DESIRED? And any one having a pop account want to REDIRECT emails should ask their admin for help (remove pop and create forwarder).
Again autoresponder is possible too.
You may see my previous posts.
Ken
johny_gjx
04-06-2009, 07:50 AM
What is the proper ownership of "/usr/local/directadmin/plugins" ? Should that be root:root or diradmin:diradmin ?
and what about: /usr/local/directadmin/plugins/email_level/user
Thanks
When I try to login, it always says my username and/or password is incorrect. I tried editing the login.php and echoed socket result which returns an empty string.
Any help someone?
Martyn Day
08-11-2009, 03:08 PM
brilliant! :)
zacusnyr
08-12-2009, 02:17 PM
When I try to login, it always says my username and/or password is incorrect. I tried editing the login.php and echoed socket result which returns an empty string.
Any help someone?
I have this same problem
littleoak
08-12-2009, 06:50 PM
This plugin simply does not work on our servers anymore. It used to work fine. Now it times out.
DirectAdmin Support
08-13-2009, 01:16 AM
Hello,
Check /var/log/directadmin/error.log .. as well as the inbox size for that account.
If the account has huge amount of email in it, then the disk usage count may be timing out which going through each email.
If the account is large, try emptying it:
User Level -> Email accounts -> empty
John
zacusnyr
08-13-2009, 06:32 AM
Inboxes are empty and error.log has two entries only (both the same)
2009:08:12-15:00:47: Error reading from (my remote client IP)
Both time stamps are different - not sure if that is from the email plugin.
It recognizes incorrect email addies, but I put in the correct password and it complains of wrong password.
zacusnyr
08-13-2009, 06:48 AM
Figured it out - must be cleansing the password field because I had a password which was
pass?word (different words around a question mark)
And it didn't work like that. I changed it to a straight alpha/numeric pw and it worked fine.
littleoak
08-13-2009, 02:27 PM
I was also using empty email boxes and the login area times out every time.
on r174 of file httpsocket.php, there stands a 10 which indicates the default socket timeout, I replaced it by 30
for now it works when I try to login...
the original file is at /usr/local/directadmin/plugins/email_level/data/include/httpsocket.php
but you'll have to change it manually/copy it to every public_html directory in which you've installed it
EDIT: perhaps DA should put up an SVN repo for this one?
tsiou
09-07-2009, 04:09 AM
Hi, i've just updated to php-cgi and tried to install email level plugin.
I get a : Premature end of script headers: index.php
This is the only problem i faced. All other sites are working..
permissions are 644 for files, 755 for directories and the right owner.
Any help would be appreciated..
massive
09-09-2009, 08:13 AM
I am getting this error in the directadmin error.log
A failure in the SSL library occurred, usually a protocol error
My current settings are :
port -> 2222
ssl -> true
Hi, i've just updated to php-cgi and tried to install email level plugin.
I get a : Premature end of script headers: index.php
This is the only problem i faced. All other sites are working..
permissions are 644 for files, 755 for directories and the right owner.
Any help would be appreciated..
So check the error log it will tell you more information.
tsiou
09-10-2009, 05:21 AM
So check the error log it will tell you more information.
That's the only log i can get....
AndyII
09-18-2009, 07:02 AM
Thanks, works for my server, I chose just the public folder as the site doesnt have ssl , the only complaint I would have is that you have to re login after you choose which email client you like.:confused:
AndyII
10-08-2009, 07:42 AM
had a couple users add this and they come back with a complaint that it is like having one more step to get to the email, as they have to log in twice, once for the plugin GUI then again to actually read the email :confused:
nobaloney
10-08-2009, 11:28 AM
The plugin is for managing mail, not for reading it. For reading mail they should log into one of the webmail clients with which you provide them, or set up a local system on their own desktop; Outlook, Outlook Express, Microsoft Mail, etc.
Jeff
tsiou
10-09-2009, 02:40 AM
I see that php (cgi) is segfault when trying to access the page.
I also get in my logs (modsecurity) only a premature end of script.
Any ideas?
deja_wu
10-12-2009, 12:42 AM
Hello
i have installed Email Level Plugin on my panel success but when i try create that plugin in any account i am receiving one error message and for this reason i can not create that plugin under accounts on my DA panel.
my error is ;
cannot find /home/randomuser/domains/usersdomain.com, aborting
How will be able to create that plugin under my users ?
Thanks for your time...
nobaloney
10-13-2009, 09:18 AM
The first thing to do is to look at the real error message you're receiving (hopefully the username really isn't randomuser and the domain name isn't really usersdomain.com, but I suppose that's possible :)), and log into your server as root, and then check to see if the path really exists:
ls -al /home/USERNAME/domains/EXAMPLE.COM
replacing both USERNAME and EXAMPLE.COM with the real username and domain name.
What do you get?
Jeff
deja_wu
10-15-2009, 03:14 PM
The first thing to do is to look at the real error message you're receiving (hopefully the username really isn't randomuser and the domain name isn't really usersdomain.com, but I suppose that's possible :)), and log into your server as root, and then check to see if the path really exists:
ls -al /home/USERNAME/domains/EXAMPLE.COM
replacing both USERNAME and EXAMPLE.COM with the real username and domain name.
What do you get?
Jeff
Thank you for your reply. Of course i am trying to install under real users and i checked user's directories. Really example:
i try create Email Level Plugin but in the panel i am receiving that error message:
cannot find /home/cepteam/domains/cepteam.net, aborting
but for that user everything normal ;
[root@olympos ~]# ls -la /home/cepteam/domains/cepteam.net/
total 32
drwxr-xr-x 8 cepteam cepteam 4096 Sep 21 00:13 .
drwxr-xr-x 3 cepteam cepteam 4096 Sep 20 06:28 ..
drwxr-xr-x 4 root root 4096 Oct 15 00:16 awstats
drwxr-xr-x 2 cepteam cepteam 4096 Sep 20 00:31 .htpasswd
drwx------ 2 cepteam cepteam 4096 Oct 15 00:16 logs
drwx--x--x 3 cepteam cepteam 4096 Sep 20 00:31 public_ftp
drwxr-xr-x 13 cepteam cepteam 4096 Oct 15 22:10 public_html
drwxr-xr-x 2 root root 4096 Oct 1 00:13 stats
[root@olympos ~]#
any idea ? :)
nobaloney
10-16-2009, 11:28 AM
No, but hopefully DirectAdmin staff will give us some input.
Jeff
DirectAdmin Support
10-16-2009, 01:31 PM
Hello,
The plugins call the stat() function (might be fstat, can't recall of the top of my head). If that function call fails, it gives you that error.
Make stats and fstat are not in your disable_functions in your php.ini.
John
deja_wu
10-18-2009, 01:43 PM
Hello,
The plugins call the stat() function (might be fstat, can't recall of the top of my head). If that function call fails, it gives you that error.
Make stats and fstat are not in your disable_functions in your php.ini.
John
Thanks for your reply John but i did try after disabled all functions and i have same problem. Do you have any idea ?
Warm Regards.
Herbert
10-25-2009, 04:08 AM
I have the same problem.
cannot find /home/xxxxxxx/domains/xxxxxxx.nl, aborting
Is it possible to install server wide so that it is by default enabled for new users?
Also: Can I edit the default index.php file so that is is my edited version that gets installed for a new user?
skruf
10-28-2009, 09:38 AM
Hey,
Thanks for your reply John but i did try after disabled all functions and i have same problem. Do you have any idea ?
Did you restart httpd after the change?
David
aquila
11-03-2009, 12:51 AM
Hello,
We have recently moved servers (now on CentOS 5.4) and the email level installer no more works.
Keep getting segmentation faults:
[Tue Nov 03 13:02:16 2009] [notice] child pid 8130 exit signal Segmentation fault (11)
[Tue Nov 03 13:02:22 2009] [notice] child pid 8133 exit signal Segmentation fault (11)
I've tried disabling zend and ioncube with no change. I also tried disabling the disabled_functions in php.ini with no effect.
Can someone help please?
Thanks
jschurawlow
11-08-2009, 01:42 AM
welp got this running on my freebsd 7.2 64bit and it seems fine. I haven't tested the vacation msg portion but the password changer works fine which would be the main thing this will get used for on my box.
Davec
01-12-2010, 10:38 PM
Does this email level plugin work now on 32 bits CentOs 5.x version, thanks.
Love to integrate if it work.:)
aquila
01-12-2010, 10:45 PM
Yes, it works
thanhdiepts
01-14-2010, 03:32 AM
How do I disable it (not remove) if I temporary do not want to use it?
Thanks,
panosru
01-17-2010, 02:53 AM
Not works for me... :(
I installed it successfully but then when I installed it for a user and then accessed his domain like www.example.com/email after I logged in safari couldn't find a page and firefox instead prompted me to download index.php file.
I checked ftp and I saw email folder with the these contents in it:
images [folder]
include [folder]
change_pass.php [file]
index.php [file]
login.php [file]
logout.php [file]
vacation.php [file]
So I guess there is an error there which should be fixed... :)
Davec
01-23-2010, 08:14 AM
I also have the "blank page" after login.
The config file already modified to:
<?
$host="localhost";
$port="2222";
$ssl=true;
$show_roundcube=true;
$show_squirrelmail=true;
$show_uebimiau=true;
?>
Any suggestions, thankyou.
Davec
01-23-2010, 12:26 PM
ok..i got it working when $ssl=true;
i type http://www.domain.com/email
It login success and the Vacation messages / Password modification work
However, clicking those 3 web mail interface icons which required to login once again.
Anyone has the same expereince?
Davec
01-28-2010, 01:40 AM
May I ask everyone login these 3 interface without the need to re-enter the password, thankyou?
youds
05-24-2010, 09:20 AM
Hi
I know DA staff are very busy and bug checking is hard to do so this won't be a priority, but FYI "ereg" and "split" are both deprecated functions as of PHP 5.3.0.
Kind regards
enginaar
07-04-2010, 09:07 AM
Hello,
I was getting error below
"Cannot find /home/user/domains/domain.com/ aborting"
Couldn't find any solution here so I copied
"/usr/local/directadmin/plugins/email_level/data" directory
to
"/var/www/html/email"
and created an alias in httpd-alias.conf file as "Alias /email "/var/www/html/email/"" and now its working in server-wide.
Hope it helps people who has the same problem or want it to work server-wide.
enginaar
07-12-2010, 08:05 AM
Yes it's working for all accounts
Are there any plans to get the Spamassassin Setup and Spam Filters in this great Plugin
Kind regards
nealdxmhost
12-15-2010, 04:58 AM
I installed this plugin well over a year ago and after install it worked great. Recently however, when I go to use it, after entering the email address and password to login all I get now is a blank page. There were a couple of references in this thread about it but I could not find an answer to the problem. Anybody have any ideas?
donkeyKICK
12-15-2010, 10:47 AM
I have had the same trouble on every one of my installs, and would love to know the answer. I'm just posting to let you know you are not the only one with the trouble currently.
tsiou
12-15-2010, 10:52 AM
+1
The error that i see (never managed to solve it) in my log files is "premature end of script"...
donkeyKICK
12-15-2010, 10:58 AM
Hmm... I don't have it installed anymore becuase I also could never get it to work. I was sorta waiting for a new version in hopes that possibly it would work then.
What log specifically did you find that error in?
DirectAdmin Support
12-16-2010, 04:20 PM
For anyone who gets a blank page, are you running DA with SSL?
If so, you must set:
include/config.php:
$ssl=true;To set this for new instances of the plugin, edit:
/usr/local/directadmin/plugins/email_level/data/include/config.php
and set the $ssl=true; value there as well.
John
tsiou
12-17-2010, 01:05 AM
Did that, but my logs say : premature end of script for index.php when i login to tha page..
nealdxmhost
12-18-2010, 02:49 AM
For anyone who gets a blank page, are you running DA with SSL?
If so, you must set:
include/config.php:
$ssl=true;To set this for new instances of the plugin, edit:
/usr/local/directadmin/plugins/email_level/data/include/config.php
and set the $ssl=true; value there as well.
John
Hi John, I checked and $ssl=true; is set in my config file
I made an attempt to login to it tonight and this what showed up in my error log;
[Sat Dec 18 01:43:42 2010] [notice] child pid 26563 exit signal Segmentation fault (11)
[Sat Dec 18 01:43:45 2010] [notice] child pid 26684 exit signal Segmentation fault (11)
Does this help?
Neal
nealdxmhost
12-21-2010, 01:45 AM
Hi John,
Any progress on this?
DirectAdmin Support
12-21-2010, 03:15 AM
Hello,
If php is segfaulting, then it would be an issue with php or it's included libraries.
Trying php in different modes (cli vs cgi) may have an effect. Also Zend/Ioncube could also play a role (all just speculative guesses). Another guess is perhaps a FD_SETSIZE limit being hit, in which removing some file descriptors (http://help.directadmin.com/item.php?id=9) may help (comment out logs, increase limits, etc..). Determining the exact cause of the php segfault would be difficult.. a debugger (gdb) may be able to shed some light on the cause.
John
keefe007
12-23-2010, 11:34 AM
I'm getting the same exact thing:
[Thu Dec 23 12:27:12 2010] [notice] child pid 19652 exit signal Segmentation fault (11)
[Thu Dec 23 12:27:21 2010] [notice] child pid 12690 exit signal Segmentation fault (11)
[Thu Dec 23 12:28:26 2010] [notice] child pid 25052 exit signal Segmentation fault (11)
[Thu Dec 23 12:28:37 2010] [notice] child pid 24882 exit signal Segmentation fault (11)
zEitEr
12-23-2010, 11:56 AM
Check output of
php -v
from console. Is there any error message?
After PHP upgrade it's a must to re-compile extensions. After ImageMagick/PNG/Other-related-software it's a must to re-compile MagickWand and imagick PHP extensions and so on.
keefe007
12-23-2010, 11:57 AM
php -v yields no error messages. All other PHP scripts on the server are working fine.
zEitEr
12-23-2010, 12:04 PM
If so, that complicates sollution founding.
Try recollect what soft did you recently update? How long do you get this error?
Perhaps, you'll need re-compile PHP with or without it's extensions. Check domains error logs in order to find any 500 errors. Probably some scripts fail to run.
tsiou
12-24-2010, 01:25 AM
Did that already.
Trying to reinstall it after php/apache upgrades during the last 1-1.5 years.
Never managed to make it work. Always the same error : premature end of script at index.php...
keefe007
12-30-2010, 05:47 PM
I just noticed that I'm getting errors in the directadmin.log file when I try to use this plugin.
2010:12:30-18:29:00: Can't connect to ssl!
2010:12:30-18:29:00: -> A failure in the SSL library occurred, usually a protocol error.
2010:12:30-18:29:00: -> error:00000001:lib(0):func(0):reason(1)
I can login to Directadmin directly with SSL and no errors are generated in the log.
DirectAdmin Support
01-01-2011, 08:41 PM
Does that show up in the error.log when you click the plugin's page within DA, or are you referring to when you're using the scripts the plugin installs, and they try connect to DA?
My guess would be that ssl is not enabled in the plugin.. check:
/email/include/config.php
and ensure you have:
$ssl=true;
John
steventay
03-18-2011, 02:37 AM
My users are experiencing the same double login issue. Please advise.
if this can be solved, best...
is there any solution?
martinostlund
05-18-2011, 02:44 AM
I just noticed that I'm getting errors in the directadmin.log file when I try to use this plugin.
2010:12:30-18:29:00: Can't connect to ssl!
2010:12:30-18:29:00: -> A failure in the SSL library occurred, usually a protocol error.
2010:12:30-18:29:00: -> error:00000001:lib(0):func(0):reason(1)
I can login to Directadmin directly with SSL and no errors are generated in the log.
Im also experiencing this error.
I have $ssl=true; in config.php. in public_html/email/include/config.php aswell in /usr/local/directadmin/plugins/email_level/data/include/
Im running php as suPHP
/Martin
Elfodellanotte
06-23-2011, 12:58 AM
with php5.3x is not working anymore ...
DirectAdmin Support
06-26-2011, 05:26 PM
Hello,
Thanks for the report. I've swapped split with preg_spit and regex with preg_match.
Version updated to 1.0 (essentially no changes other than that)
Admin Level -> Plugin Manager -> select the plugin, enter password, click "Update".
Users will also need to reinstall it (User Level) to have the new version overwrite the existing one.
John
nobaloney
06-27-2011, 02:20 PM
Will the new version also work with PHP5.x earlier than 5.3? How about with 4.x?
Sorry, but I'm not an expert on php versions.
Thanks.
Jeff
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.