Re: Need help installing postfix on my home server
Damian Gerow <[email protected]>
| Newsgroups | gmane.user-groups.linux.ottawa.general |
|---|---|
| Message-ID | <[email protected]> |
Thus spake Rob Young <[email protected]> [Sat, 6 Jun 2009 08:56:08 -0400]: : I have a small home server that I want to enable outgoing mail on, so : asterisk can send out email to me on certain events. Unfortunately, : I'm very clueless as to how to set this up. How does one set up : outgoing mail? I'm running a fairly current version of ubuntu : without X. Postfix -- at least recent packaged versions of postfix -- is a pretty much install-and-go type of software. Here's a quick step-by-step guide that should be enough to get you started: 1) Install the postfix package. 2) Find your 'main.cf' file; usually /etc/postfix/main.cf. 3) Edit 'main.cf', and set the following variables appropriately: - myhostname - mydomain - myorigin - mydestination - likely $myhostname, localhost, localhost.$mydomain - mynetworks_style (as you're just sending, set to 'host') - inet_interfaces (as you're just sending, set to 'localhost') 4) Run 'newaliases'. 4) Start postfix, and set it to start by default. Note that you may also want to set the 'relayhost' variable in main.cf, to be your ISPs mail servers. I would only suggest doing this if required, though. Voila, you now have a fully functional postfix setup. To test it, try running: # mail -s "Testing outbound mail" [email protected] < /dev/null You should, shortly, get a message in your inbox. If not, look in your mail logs for reasons why. -- OCLUG general discussion list [email protected] http://oclug.on.ca/mailman/listinfo/oclug