632 Part V . Running Servers If you

632 Part V . Running Servers If you want to have Fetchmail run in the background, you can use the –daemon (or -d) flags with a parameter telling it how often (in seconds) to poll the servers: $ fetchmail –daemon 300 To have Fetchmail automatically start when the system boots, add this to your crontab file: @reboot /usr/bin/fetchmail –daemon 300 Fetchmail cannot prompt for passwords when run in this manner, which means that you must store the passwords in .fetchmailrc for this to work. If you haven t configured a crontab file before, setting it up can be as easy as performing the following steps: $ cat > mycron @reboot /usr/bin/fetchmail –daemon 300 (hit Ctrl-D here) $ crontab mycron Configuring Web-Based Mail If you re running an IMAP server, you can offer Web-based access by installing IMP (http://horde.org/imp/, also in the imp3 package) or SquirrelMail (http:// squirrelmail.org/, also found in the squirrelmail package). Start by configuring your system as a LAMP server (Chapter 23), and then install and configure the appropriate package. IMP is considerably more complex to configure than SquirrelMail and may be more difficult to install. If you aren t sure which one is right for you, try the online demos for both and see which one you like best. Securing Communications with SSL/TLS Because communication between mail clients and the server often contains sensitive information such as passwords, it is usually desirable to enable SSL/TLS encryption. Here s how to enable SSL/TLS in Postfix and Courier-IMAP: 1. SSL/TLS for Postfix and Courier-IMAP are provided in the postfix-tls and courier-imap-tls packages, respectively. Use APT to install them: # apt-get install postfix-tls courier-imap-ssl 2. Third-party CA certificates are provided in the ca-certificates package. This will be referenced in the configuration, so install it too: # apt-get install ca-certificates Note Note
If you are in need for chaep and reliable webhost to host your website, our recommendation is http web server services.

Leave a Reply