Email Trilug 7/9/2003 --------------------- Postfix: 1. cd /etc/postfix/ 2. vi main.cf 3. myhostname does not need to be changed if hostname is set properly 4. mydomain does not need to be changed... 5. myorigin = $mydomain 6. comment loopback under receiving mail 7. mydestination = $hostname, localhost.$mydomain, $mydomain 8. That is the minimum required to configure an email server. 9. service postfix start 10. /var/spool/mail/user or /var/mail/user (a sym link) 11. Enable IMAP (UW-IMAP is default) 12. chkconfig imap on (IMAP runs under xinetd) 13. service xinetd restart 14. Now you can connect with any IMAP compatible client 15. SquirrelMail 16. Unzip tar.gz into /var/www/html/ 17. Rename folder to webmail 18. chown -R apache:apache webmail/ 19. chmod -R 700 webmail/ 20. cd webmail 21. ./conf.pl 22. 1, example.com, ... UW IMAP, ... q to quit 23. http://example.com/webmail 24. Fetchmail (puts mail from another server into your local mailbox) 25. touch .fetchmailrc 26. vi .fetchmailrc poll students.durhamtech.edu proto pop3 user "otheruser" pass "otherpass" is user 27. chown user:user .fetchmailrc 28. chmod 700 .fetchmailrc 29. fetchmail (to run fetchmail) 30. fetchmail -d 600 (to run fetchmail on timed deamon) 31. Enable procmail edit /etc/postfix/main.cf 33. vi /etc/postfix/aliases 34. change root to alias to userx 35. postalias aliases (or newaliases) 36. Procmail 37. Global /etc/procmailrc or 38. User specific ~/.procmailrc 39. vi /etc/procmailrc 40. :0fw | /usr/bin/spamassassin (or /usr/bin/spamc for the deamon) 41. Now SpamAssassin will process emails 42. In Postfix, you can setup relayhost (to go through RR SMTP 43. relayhost = smtp-server.nc.rr.com 44. use /etc/postfix/transport for sending to AOL or others who do not accept email from dynamic IP hosts 45. aol smtp:smtp-server.nc.rr.com 46. Multiple Domains 47. vi /etc/postfix/main.cf 48. mydestination (add this to the line) otherexample.com 49. Commands to know 50. tail -f /var/log/maillog 51. members.iinet.net.au for smtp open relay test 52. postqueue -p to look, or postqueue -f to flush (tries to deliver, no guarantee)