Howdy list,

What does this patch do?
------------------------
This patch adds functionality to sqwebmail. It allows the sys admin to add a file to 
the configuration directory
(/usr/local/share/sqwebmail on my FreeBSD 4.7 system) named 'domainmap'.

Once this file has been created, it can be populated with IP:DOMAIN pairs, or 
DOMAINALIAS:DOMAIN pairs.

The 'domainmap' file uses the following syntax:

IP1:DOMAIN1
IP2:DOMAIN2
IP3:DOMAIN3
etc...

or

DOMAINALIAS1:DOMAIN1
DOMAINALIAS2:DOMAIN2
DOMAINALIAS3:DOMAIN3
etc...

or any combination of DOMAINALIAS pairs and IP alias pairs together in the same file.


Getting to the point...
-----------------------
Creating a 'domainmap' file will allow sys admins to simplify the login process for 
their users.

Currently, most users have to log in with [EMAIL PROTECTED] in their userid field. The 
'domainmap' file allows for auto detection of the
domain portion of the userid.


For example:
------------
If your domain is 'mydomain.com', and 'mydomain.com' resolves to the IP address 
'31.31.31.31', and you access sqwebmail with the
following URL:

http://mydomain.com/cgi-bin/sqwebmail

You can create a 'domainmap' file with the following information:

31.31.31.31:mydomain.com

And instantly any user who accesses 'http://mydomain.com/cgi-bin/sqwebmail' can log in 
with ONLY their username, NOT
[EMAIL PROTECTED]

Similarly, if your domain is 'myotherdomain.com', and 'myotherdomain.com' is a virtual 
DNS domain that shares an IP address with 20
other virtual DNS domains, you can create a subdomain 'mail.mydomain.com' and tell 
your users to access sqwebmail with the following
URL:

http://mail.myotherdomain.com/cgi-bin/sqwebmail

Then add the following to your 'domainmap' file:

mail.myotherdomain.com:myotherdomain.com

And users can instantly log in to the 'myotherdomain.com' domain from the 
'http://mail.myotherdomain.com/cgi-bin/sqwebmail' URL
simply by entering their username and password, NOT [EMAIL PROTECTED]

NOTE: You could also allow users to log in using the following URL: 
http://myotherdomain.com/cgi-bin/sqwebmail simply by adding the
following statement to your 'domainmap' file:

myotherdomain.com:myotherdomain.com


What does this tar.gz contain?
------------------------------
Included in the tar.gz file that is attached to this email are two patches against the 
latest development version of sqwebmail:

sqwebmail-3.5.0.20030215

The first patch:

sqwebmail-3.5.0.20030215.patch

is a raw patch file. It modifies sqwebmail/Makefile.am, so you'll need automake to use 
it.

The second patch:

sqwebmail-3.5.0.20030215-automake.patch

contains the patch above, plus a patch for the sqwebmail/Makefile.in file, as 
generated by my system's automake 1.6.3.

Note that I must not have used the correct options with automake as some things were 
changed in sqwebmail/Makefile.in that shouldn't
have been changed. I'm sure Mr. Sam will want to run his own automake against the raw 
patch file.

--
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net

We are actively looking for companies that do a lot of long
distance faxing and want to cut their long distance bill by
up to 50%.  Contact [EMAIL PROTECTED] for more info.

Attachment: sqwebmail-3.5.0.20030215.patch.tar.gz
Description: GNU Zip compressed data

Reply via email to