| 44 | ==== set hostname and domain ==== |
| 45 | |
| 46 | Search for {{{my_computer}}} and {{{my_domain}}} in {{{main.cf}}} and replace them with the domain name and computer name of your computer. You can find them out with the {{{hostname}}} command. |
| 47 | |
| 48 | The following lines need attention: |
| 49 | |
| 50 | {{{ |
| 51 | myhostname = my_computer.local |
| 52 | mydomain = my_domain.com |
| 53 | mydestination = localhost,localhost.my_domain.com,my_computer,my_computer.local,my_computer.my_domain.com |
| 54 | masquerade_domains = my_domain.com |
| 55 | }}} |
| 56 | |
| 57 | Note: if you don't use an domain name apart from {{{.local}}} then you can remove the duplicate. |
| 58 | |
| 59 | ==== set relayhost ==== |
| 60 | |
| 61 | Your outbound mail needs to go to a relayhost as most of us can't send e-mail directly any more. My relayhost is {{{smtp.my_domain.com}}} this does not need to be for you. |
| 62 | |
| 63 | The following lines need attention: |
| 64 | |
| 65 | {{{ |
| 66 | relayhost = [smtp.my_domain.com] |
| 67 | }}} |
| 68 | |
| 69 | ==== /usr <-> /opt/local ==== |
| 70 | |
| 71 | Depending on which version of postfix (osx vs. macports) you use you have to change all lines containing {{{/usr}}} to {{{/opt/local}}}. |
| 72 | |
| 73 | ==== /private <-> /opt/local ==== |
| 74 | |
| 75 | Depending on which version of postfix (osx vs. macports) you use you have to change all lines containing {{{/private}}} to {{{/opt/local}}}. |
| 76 | |
| 77 | === Step 2: '''setup relay passwords''' === |
| 78 | |
| 79 | TODO |
| 80 | |
| 81 | === Step 3: '''starting the daemon''' === |
| 82 | |
| 83 | [attachment:Restart_Postfix.command] |
| 84 | |
| 85 | === Step 4: '''testing the deamon''' === |
| 86 | |
| 87 | The attached [attachment:Test_Postfix.command] will send a test e-mail to your self - provided you replaced {{{my_name}}} and {{{my_computer}}} with your own name and computer name. |