|
|
9. Testing the setup9.1. (Re-)Starting the daemonsNow all the software has been installed and configured. Lets do some testings now. First you have to (re-)start all the daemons affected
Hopefully all daemons started without any complaints. Note that this is assuming saslauthd is started in the cyrus startup script. Now you can verify if the daemons are running properly by issuing netstat -an|grep LISTEN The output should look similar like that:
The port are assigned like this:
9.2. Testing Web-cyradmNow you should be able to connect to http://localhost/web-cyradm/ Login with the credentials defined before. Define a domainname and some accounts. Be sure the domainname belongs to your server. If not you have to fake it by enter the domain in /etc/hosts. The domain must also be defined as local in /etc/postfix/main.cf (mydestination = domain) Please be sure that you are providing a unique domain prefix when adding a new domain. I.e. test for the domain test.org. If you don't provide such a prefix you will get a error message. 9.3. Testing postfixNow we are going to write a mail:
If you see such a message, then all seems to work fine. Be sure to specify a recipients address you previously defined in the web-cyradm database If you get an error like this:
Then either MySQL is not running, DB permission are not set properly or you miss-configured /etc/postfix/main.cf On any errors, I suggest to examine /var/log/mail. Often you will find some hints whats went wrong. 9.4. Testing the IMAP functionalityA lot of users like to test the cyrus-IMAPd with the Command Line Interface (CLI) »cyradm« and they are failing. To be successful with cyradm, you will need to add the cyrus user to /etc/sasldb2 because »cyradm« always authenticates against SASL AND IMAP. To add the Cyrus user to the sasldb use the command:
To use the »cyradm« CLI please take care that the tool does not recognize standard CLI-options like -u and similar. Please follow the syntax like described in the man page »cyradm 1« like the following example:
With the Cyrus command help you will see all possible commands and its abbreviations. To make that kind of tests. you just need a mailclient like kmail or netscape (Yes of course, M$-Products are working as well) but in this example I'm using kmail. If you enabled TLS/SSL, you may wish to test also the following: If login fails, and you are sure, you typed the right password, take care that MySQL is running. |

