Upgrading from CWMail/DMailWeb
CWMail/DMailWeb product has been FROZEN and only supported for existing customers!!
One option for our current CWMail/DMailWeb customers is upgrading to WebMail to get the newer features and better looking templates.
 
Basic WebMail Setup
Your first step is to download and install WebMail on the same system that you have CWMail setup on. You need to ensure that the workarea of WebMail is separate to CWMail/DMailWeb. WebMail directories and files layout are NOT compatible with CWMail/DMailWeb.
Warning: If they use the same directories it will damage your data.
 
Play with WebMail for a while to get the feel of it to ensure that it's what you are after. It's possible to re-designed the templates to what you need.
NOTE: WebMail's templates are not compatible with CWMail/DMailWeb templates.
 
Once you are ready to convert cwmail users as they login, you should first remove any current WebMail user profile directories that have been created while you were testing.
 
rm -rf /var/spool/webmail/u_* /var/spool/webmail/n_*
 
The next step is to setup a few WebMail ini settings.
 
cvt_cwmail_live true
cwmail_workarea /var/spool/cwmail
cwmail_hash_method 1
cwmail_host_num 2
cwmail_pophost pop.domain.com
webmail_host domain.com
 
cwmail_folder "New Mail" "(delete)"
cwmail_folder "Trash" "(delete)"
cwmail_folder "Copies to self" "Sent Items"
 
cwmail_no_dist_list true
 
cwmail_allow_dash true
#cwmail_allow_dot true
#cwmail_allow_slash true

 
What the above settings are doing is telling the CGI that CWMail workarea is located at '/var/spool/cwmail' directory using Hash method 1. Hash method 1 is cwmail's default setting.
 
When users are converted over, WebMail will delete the 'New Mail' and 'Trash' folders, while renaming 'Copies to self' to 'Sent Items'. You can add other folders if you wish.
 
The 'cwmail_no_dist_list' setting means that all cwmail address books will be setup in WebMail address books without having the dist entries (ie work=lynden@1.2.3.4,john@1.2.3.4) being seperated out.
 
The cwmail_allow_* are setting that cwmail also has and should match the same cwmail ones.
 
What will happen is that any time a user logs into Webmail for the first time, WebMail will check CWMail/DMailWeb workarea for any user information to translate. It will translate the user.dat and any address books that have been setup.
Using IMAP instead of POP
The default installation of WebMail uses your POP server. To change WebMail to use your IMAP server you need to change 1 ini setting:
 
pophost pop.domain.com
to:
imaphost imap.domain.com

 
If you have users that have already logged in before you change this setting they will still default to use your POP server. To stop this you need to add this ini setting:
 
bypass_last_default_port true

 
This will then make all user accounts use your IMAP server. The next step is setting up a cron job to upload all the cwmail converted POP folder upto your IMAP server. Every time a user is converted, WebMail will add 1 line to the file:
 
/var/spool/webmail/cwmail_cvt.dat

 
You will need to to write a script that will move this file to another location and then pass this back to WebMail as a command line parameter like this:
 
./webmail.cgi -imap_upload cwmail_cvt.dat

 
A simple example script is:
del -f /tmp/cwmail_cvt.dat
mv /var/spool/webmail/cwmail_cvt.dat /tmp/cwmail_cvt.dat
/home/httpd/cgi-bin/webmail.cgi -imap_upload /tmp/cwmail_cvt.dat