Now all the software has been installed and configured, lets do some testings now. First you have to (re-)start all the daemons affected
postfix start
/etc/init.d/cyrus start
/etc/init.d/mysql.server start
/usr/local/apache/bin/apachectl startssl
Hopefully all daemons started without any complaints...
Now you can verify if the daemons are running properly by issuing netstat -an|grep LISTEN
The output should look similar like that:
bond:~ # netstat -an|grep LISTEN tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN |
The port are assigned like this:
993 imap-ssl
995 pop3-ssl
3306 mysql
110 pop3
143 imap
2000 sieve
80 http
25 smtp
443 https
Now you should be able to connect to http://localhost/mailadmin/ 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)
Now we are going to write a mail:
telnet localhost 25 Trying ::1... Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 mail ESMTP Postfix helo localhost 250 mail mail from: luc@delouw.ch 250 Ok rcpt to: rcpt to: luc@localhost 250 Ok data 354 End data with <CR><LF>.<CR><LF> some text . 250 Ok: queued as B58E141D33 quit |
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:
rcpt to: luc@localhost 451 <luc@localhost>: Temporary lookup failure |
Then eighter 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.
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'll 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