Page 1 of 1

Webmail

Posted: Sat May 08, 2010 10:20 am
by phils
I just installed webmail, and all the files installed without any errors.

When the http: was stopped and then restarted, i received the following error message:

Stopping httpd: [ OK ]
Starting httpd: Syntax error on line 7 of /etc/httpd/conf.d/nbr-webmail.conf:
SSLCertificateFile: file '/etc/httpd/conf/webmail.crt' does not exist or is empty
[FAILED]

**********************************************************
The system has sent a Welcome and SPAM Test email to
mailusr@home.com to complete the mailbox setup.
**********************************************************


Your Amahi Mail System install is complete.
Navigate to http://webmail to access.

Since httpd will not start, I am unable to acess the dashboard.
I was able to determine that the webmail.crt did not get created/generated
the webmail.key file did.

What steps do I need to create the webmail.crt file that corresponds to the webmail.key file?

Re: Webmail

Posted: Sat May 08, 2010 1:02 pm
by bigfoot65
Hello,

This application is under heavy development, so it is only recommended for advanced users. Did you run the host-update-virtual-mail-175.sh first? If not, you will have issues.

Anyway, to make the cert file do these steps as user root.

1. cd /etc/httpd/conf
2. openssl genrsa -out webmail.key 1024
3. openssl req -new -key webmail.key -x509 -days 365 -out webmail.crt -subj '/C=country/ST=state/L=city/O=org/OU=unit/CN=hda.home.com/emailAddress=postmaster@home.com'

Replace the values after the equal signs with your own (i.e. C=US or OU=Home, etc). That should generate the applicable cert file needed.

If this still does not work, you can comment out the 2 lines in the nbr-webmail.conf file by adding a # in front of each line. Then do service httpd restart and you will be able to get to your dashboard.

If you still have trouble, please let us know.