You also need an SMTP-server. I suggest postfix. (apt-get install postfix
)
Then, you should make sure that you use the `~/Maildir'. If this folder doesn't exist or you gave it the wrong permissions, this is a common error. Make sure you configure Postfix to use it:
postconf -e "home_mailbox = Maildir/"
postconf -e "mailbox_command = "
/etc/init.d/postfix restart
If it is still not working, try telnetting into your machine and test it that way.
Test SMTP (port 25)
Trying 10.0.1.40...
Connected to test.freetown.local.
Escape character is '^]'.
220 test.freetown.local ESMTP Postfix (Ubuntu)
ehlo test.freetown.local
mail from: [email protected]
rcpt to: [email protected]
data
Subject: First Mail
Looking good!
.
quit
Test IMAP (port 143)
Trying 10.0.1.40...
Connected to test.freetown.local.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2010 Double Precision, Inc. See COPYING for distribution information.
a login bart bart
a OK LOGIN Ok.
a logout
* BYE Courier-IMAP server shutting down
a OK LOGOUT completed
Test POP3 (port 110)
Trying 10.0.1.40...
Connected to test.freetown.local.
Escape character is '^]'.
+OK Hello there.
user bart
+OK Password required.
pass bart
+OK logged in.
quit
+OK Bye-bye.
If that works, your squirlmail should be fine too.