12.07.2015 Views

download

download

download

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 13Postfix configuration files are located under /usr/local/etc/postfix. Unlikesendmail, the postfix configuration files are more readable and have clear inlinedocumentation, so that you can easily tweak the configuration values and startusing your MTA. However, for a simple mail routing scenario, postfix will work outof the box.There are two main configuration files that you will want to have a look into—themain.cf file and the master.cf file. The main.cf file contains main configurationparameters such as queue locations, hostname, and permissions.At least you may want to modify myhostname and mydomain variables with your owninformation, so that postfix is able to receive your incoming emails. You should alsoset up postfix to know your internal network in order to relay messages correctly. Youcan do this by restricting the subnets that can transmit outgoing emails.Another configuration that you may want to look at, is the master.cf file thatcontrols the behavior of postfix's master process. Here, you can configure variousmodules. For example, you can configure a module to enable TLS or interface withother third-party services, such as mailman for running mailing lists.WebFreeBSD has proven to be a reliable and high-performance platform for runningHTTP service. Millions of websites (Including Yahoo!, NYI, and Pair.com) are relyingon FreeBSD to run their web hosting solution (as well as other services of course).The httpd daemon from Apache Project (also known as Apache Web Server) is thede facto standard for hosting websites using HTTP and HTTPS protocols.Despite the fact that httpd is the dominant web server of Internet, there are also otherlightweight and robust alternatives that are available to httpd. A good example islighttpd, which offers less complexity and more flexibility in some cases.This section discusses setting up basic web servers using apache httpd andlighttpd web servers.Both of the mentioned web servers (among many others) are available in ports treeunder the /usr/ports/www subdirectory.[ 227 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!