View Full Version : "@yourdomain.com" in squirrelmail
etegration
02-21-2004, 05:28 AM
anyway to insert "@mydomain.com" in Squirrelmail login page under "EMail:" instead of having to type the my full e-mail addy myname@mydomain.com then password?
existenz
02-21-2004, 08:46 AM
Yes it is possible through plug-ins. Keep in mind that if you do it this way the next time they upgrade squirrelmail it will overwrite the plug-in.
http://squirrelmail.org/plugins.php
ProWebUK
02-21-2004, 09:51 AM
Even with plug-ins this wouldnt be a 1-2-3 type install process... it would be easier to just modify the SM login form yourself, and add it using a shell script...
you would basically need to use the grep function on the /home/users/domains/*/ to get a list of domains, cut them to get rid of any unwanted spaces etc then run a loop
FOR EACH ${domain} DO
then run a command to echo the line as a drop down form menu:
echo -e "\t <option value=\"Domain.com\">Domain.com</option>" >> form_domains.php
then your additional field would be somewhere along the lines of:
<select name="select">
<?php
// only use these php tags if they are not already open here...
include "form_domains.php";
?>
</select>
you then have to put your username and email together:
[USERNAME]@[DOMAIN.COM][^]
$ActualEmail = "$username@$domain"
The last bit i'm not getting involved with... I personally wouldnt use this due to the fact that any user can see *all* domains on your server with no problems... My suggestion would be to do some apache configs for a redirect using the domain - and a nifty script it would be :)
Look out soon for a hack / feature that gives
Domain.com/squirrelmail
that includes "@domain.com" already in the SM username login field :)
Chris
Hi,
Why dont u just using vlogin plugin from squirrelmail?
see this thread:
http://www.directadmin.com/forum/showthread.php?threadid=5102&highlight=vlogin
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.