Changes between Version 16 and Version 17 of howto/SetupPostfix
- Timestamp:
- Jun 18, 2011, 2:41:06 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/SetupPostfix
v16 v17 31 31 32 32 {{{ 33 #!/ macports/bin/bash33 #!/opt/local/bin/bash 34 34 35 35 declare -a toInstall … … 62 62 === Step 1: '''setup main.cf''' === 63 63 64 You'll find all the default settings in '''/ macports/etc/postfix/main.cf.default''' - all of these settings are explained in some depth here [http://www.postfix.org/postconf.5.html postconf.5] or {{{man 5 postconf}}}. You'll find a sample primary configuration in '''/macports/etc/postfix/main.cf.sample'''. '''main.cf.sample''' is extensively commented, but to get an overview of the which setting are present in the file execute this command:64 You'll find all the default settings in '''/opt/local/etc/postfix/main.cf.default''' - all of these settings are explained in some depth here [http://www.postfix.org/postconf.5.html postconf.5] or {{{man 5 postconf}}}. You'll find a sample primary configuration in '''/opt/local/etc/postfix/main.cf.sample'''. '''main.cf.sample''' is extensively commented, but to get an overview of the which setting are present in the file execute this command: 65 65 66 66 {{{ 67 grep ' =' / macports/etc/postfix/main.cf.default67 grep ' =' /opt/local/etc/postfix/main.cf.default 68 68 }}} 69 69 … … 141 141 We'll need at least one entry in the aliases database. If aliases.db isn't present, the postfix master will start, but upon the first activity you'll get repeated lines of this kind : 142 142 {{{ 143 Jun 17 23:03:52 Pro17 postfix/master[262]: warning: / macports/libexec/postfix/smtpd: bad command startup -- throttling144 Jun 17 23:04:52 Pro17 postfix/smtpd[17162]: fatal: open database / macports/etc/postfix/aliases.db: No such file or directory145 Jun 17 23:04:53 Pro17 postfix/master[262]: warning: process / macports/libexec/postfix/smtpd pid 17162 exit status 1143 Jun 17 23:03:52 Pro17 postfix/master[262]: warning: /opt/local/libexec/postfix/smtpd: bad command startup -- throttling 144 Jun 17 23:04:52 Pro17 postfix/smtpd[17162]: fatal: open database /opt/local/etc/postfix/aliases.db: No such file or directory 145 Jun 17 23:04:53 Pro17 postfix/master[262]: warning: process /opt/local/libexec/postfix/smtpd pid 17162 exit status 1 146 146 }}} 147 147 … … 160 160 At present, we'll simply go with the default values 161 161 {{{ 162 alias_database = hash:/ macports/etc/postfix/aliases163 alias_maps = hash:/ macports/etc/postfix/aliases162 alias_database = hash:/opt/local/etc/postfix/aliases 163 alias_maps = hash:/opt/local/etc/postfix/aliases 164 164 }}} 165 165 and not change anything at all in main.cf