
 |
Testing
|
Now that you have installed everything, they should all be just working fine. Setup a domain, create a user account and check. To log in via email client apps you must use full email address as the username and the client must be capable of and enabled for smtp authentication.
In addition, you can test all parts of ECM2 via command line:
EXIM (SMTP)
Telnet via llocalhost to see if Exim is functioning correctly:
telnet localhost 25
If everything is OK, it should respond with something like this:
220 FULL_HOSTINFO ESMTP Exim 4.62+ppsw+1 Mon, 29 May 2006 12:15:47 -0700
close telnet connection '^]' (control closing bracket) than type quit.
telnet> quit
COURIER POP & IMAP
And now we can test POP and IMAP one after the other:
telnet localhost 110
If everything is OK, something like this will appear:
+OK Hello there.
close telnet connection '^]' (control closing bracket) than type quit.
telnet> quit
telnet localhost 143
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc. See COPYING for distribution information.
close telnet connection '^]' (control closing bracket) than type quit.
telnet> quit
CLAM AV
Let's just check if the necessary processess for Clam AV are running:
ps -auxww | grep clam | grep -v grep
It should show 2 processes similar to these two lines below:
root 288 /usr/local/clamav/sbin/clamd
clamav 291 /usr/local/clamav/bin/freshclam -d -c 24 -l /var/log/clam-upd
SPAMASSASSIN
First stop SpamAssassin if it's already running:
ps -auxww | grep spam | grep -v grep
kill -2 <process-id>
(replace <process-id> with the "root" process number that shows the startup line...)
Start up spamd in debug mode:
spamd -D -q
open an other terminal window and run this spam test:
echo -e "From: user\nTo: user\nSubject: Test\n\n" | spamc -u '$GLOBAL'
if the response includes 'required=5.0' as shown in the next line, your up and running!
X-Spam-Status: No, score=-0.0 required=5.0 tests=NO_RECEIVED,NO_RELAYS
close both terminal window (terminate them) and in a new one start spamd again:
/usr/bin/spamd -d -x -q -Q -L -u clamav --socketpath=/tmp/spamd
MYSQL
ps -auxww | grep mysqld | grep -v grep
|