Changes between Version 16 and Version 17 of howto/SetupPostfix


Ignore:
Timestamp:
Jun 18, 2011, 2:41:06 AM (13 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

use standard macports prefix

Legend:

Unmodified
Added
Removed
Modified
  • howto/SetupPostfix

    v16 v17  
    3131
    3232{{{
    33 #!/macports/bin/bash
     33#!/opt/local/bin/bash
    3434
    3535declare -a toInstall
     
    6262=== Step 1: '''setup main.cf''' ===
    6363
    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:
     64You'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:
    6565
    6666{{{
    67 grep ' =' /macports/etc/postfix/main.cf.default
     67grep ' =' /opt/local/etc/postfix/main.cf.default
    6868}}}
    6969
     
    141141We'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 :
    142142{{{
    143 Jun 17 23:03:52 Pro17 postfix/master[262]: warning: /macports/libexec/postfix/smtpd: bad command startup -- throttling
    144 Jun 17 23:04:52 Pro17 postfix/smtpd[17162]: fatal: open database /macports/etc/postfix/aliases.db: No such file or directory
    145 Jun 17 23:04:53 Pro17 postfix/master[262]: warning: process /macports/libexec/postfix/smtpd pid 17162 exit status 1
     143Jun 17 23:03:52 Pro17 postfix/master[262]: warning: /opt/local/libexec/postfix/smtpd: bad command startup -- throttling
     144Jun 17 23:04:52 Pro17 postfix/smtpd[17162]: fatal: open database /opt/local/etc/postfix/aliases.db: No such file or directory
     145Jun 17 23:04:53 Pro17 postfix/master[262]: warning: process /opt/local/libexec/postfix/smtpd pid 17162 exit status 1
    146146}}}
    147147
     
    160160At present, we'll simply go with the default values
    161161{{{
    162 alias_database = hash:/macports/etc/postfix/aliases
    163 alias_maps = hash:/macports/etc/postfix/aliases
     162alias_database = hash:/opt/local/etc/postfix/aliases
     163alias_maps = hash:/opt/local/etc/postfix/aliases
    164164}}}
    165165and not change anything at all in main.cf