Do you own an Ipswitch Service Agreement?It provides you with unlimited live support and all product updates.Purchase an Ipswitch Service Agreement |
||
IMail - How do I use the ODBC connector |
||
| Product: | Version: | Platform: |
| IMail | 5.0+ | NT,Win2000,XP,Win2003 |
Question/Problem: How do I use the ODBC connector that is available with IMail? Answer/Solution: IMail provides a means of interfacing with external database through a dynamic link library that is defined for each host. This external user database is designed to be used with ODBC, but in reality it can support any method of external database by modification of the "odbcuser.dll".
Download
2006.2 ODBC User Source (Update 3/13/2007) (An unsupported odbcuser.dll with third-party modifications for Oracle version 8
is also available:
ftp.ipswitch.com/ipswitch/Product_Support/IMail/odbc/oracle_odbc_dll.zip) NOTE: The ODBCuser.dll source code is provided as a tool, not as part of the IMail product. As provided, it works with SQL and with MS Access. If you have the development skill and know-how to work with it, you can modify it to use other databases. At this time we do not have the resources to help with C programming and debugging. Here is a link to get the 8.20 odbcuser.zip: ftp://ftp.ipswitch.com/Ipswitch/Product_Support/IMail/odbcuser.zip IMail supports the use of up to 10 different DLL's. Using our provided DLL, you can have an unlimited number of tables within a DLL. Each DLL is loaded on demand and remains loaded after first load until all applications using IMAILSEC.DLL are stopped. Configuration (See also: IMail - Configure SQL Server for use with IMail) Go to, IMail Administrator | localhost | Add Host. For each defined host you have a choice of one of three user databases: 1.) IMail User Database When you select the "External User Database", the "Configure..." button is activated. Pressing the configure button presents a dialog where the external database is defined. The first option is where you specify the FULL pathname to the DLL that exports the following functions: GetUserEntry The second option is where you specify the ODBC System Data Source Name for the database where the user information is stored. The third option is where you specify the table name for the data. This defaults (if the field is blank or contains "[default]") to the host name with periods replaced by underscores. These three options are written to a registry entry under the domain named "AuthDatabaseDLL". The three entries are concatinated with an asterisk (*) as the seperator. Default ODBC Tables The default ODBC table consists of 9 entries: See below for changes in version 7.0. The provided implementation expects these entries to be in sequence. Additional information (after flags) MAY exist in the table. Modification of the ODBCUSER.DLL The source for ODBCUSER.DLL is provided in the ZIP file "odbcuser.zip". Any language may be used to write the ODBCUSER.DLL provided it exports the necessary routines with the proper arguments and calling stack type. The provided source and project files are written for MS Visual C++ 4.1. Please refer to "odbcuser.h" and "codbc.cpp" for additional information. Table modifications may be made in "CreateTable", "InsertUser", "UpdateUser", and "GetUser". Note that entry sequence is defined in "CreateTable" and "GetUser". Note: It is recommended that you save your custom DLL to the IMail directory using a filename other than odbcuser.dll. The new filename should be eight characters or less with a 3 character extension (mysql.dll for example). You must specify this new filename in IMail Administrator's External Database Configuration window. If you have domains that use different external databases (such as SQL and Access), you will need a separate odbcuser.dll for each database, one can be named odbcuser.dll and the other DLL(s) renamed to designate the other database(s). See also: Configure SQL Server for use with IMail External Database Changes in version
7.0: These database column additions must be made before Database Column Default For all existing user records, these columns should be set to the default
values shown in the table above. There are no ODBC changes between version 7.1x and version 8.1x |
||
| Document #: | Revision Date: | |
| IM-19990211-ES01 | 03/14/07 | |