Postfix's main.cf
Ryan Schmidt
ryandesign at macports.org
Sun Oct 26 18:45:06 PDT 2008
On Oct 26, 2008, at 20:13, Charles Darwin wrote:
> On 26-Oct-08, at 5:28 PM, Ryan Schmidt wrote:
>
>> On Oct 26, 2008, at 10:10, Charles Darwin wrote:
>>
>>> I have two main.cf here:
>>>
>>> $ ls /Volumes/neo/opt/etc/postfix/main*
>>> /Volumes/neo/opt/etc/postfix/main.cf.default /Volumes/neo/opt/etc/
>>> postfix/main.cf.sample
>>>
>>> I am guessing that I should go with the default one if want to
>>> make any changes (is that correct?) and then do I rename the file
>>> to main.cf when I am done?
>>
>> You should not edit either main.cf.default or main.cf.sample;
>> these will be overwritten when you upgrade or reinstall the port
>> and postfix won't use them anyway. You should copy one of these
>> files to main.cf and edit that.
>
> $ sudo cp PATH/to/opt/etc/postfix/master.cf.sample PATH/to/opt/etc/
> postfix/master.cf
>
> $ sudo postfix start
> PATH/to/opt/etc/postfix/postfix-script: line 220: ls: command not
> found
I get that too. It can't find the operating system's "ls" command.
I modified postfix-script to print out the value of PATH when it's
running. I get:
/opt/local/bin:/usr/bin:/sbin:/usr/sbin
So /bin, where ls resides, is not in the PATH. I don't know why
postfix is excluding that vital path.
More information about the macports-users
mailing list