Recommended way to auto-start postfix

Joined
Sep 12, 2011
Messages
76
Reaction score
1
Points
8
I'm new to mac. Most familiar with linux. There's a lot of material from the
web on the best way to auto-start (on bootup or login) postfix.
I like a recommendation from staff. :Cool: Because I know that you all
give the best advice.
thanks
 
Joined
Sep 13, 2011
Messages
100
Reaction score
2
Points
18
Location
Kentucky, USA
Your Mac's Specs
Mac Pro 2 x 2.66 Xeon 6gb DDR2 1TB OSX Server
Open up the postfix .plist file.

Code:
sudo vi /System/Library/LaunchDaemons/org.postfix.master.plist

And add/make these and configured as such.

Code:
<key>RunAtLoad</key>
<true>
<key>OnDemand</key>
</true><false>
</false>
 
OP
T
Joined
Sep 12, 2011
Messages
76
Reaction score
1
Points
8
Open up the postfix .plist file.

Code:
sudo vi /System/Library/LaunchDaemons/org.postfix.master.plist

And add/make these and configured as such.

Code:
<key>RunAtLoad</key>
<true>
<key>OnDemand</key>
</true><false>
</false>
I did so, and restarted, but I do not see postfix in the process list.
Should I?
Furthermore, I see no indication that when I sent a test email, that it had started.
In addition from
agile approach | How to Enable Local SMTP Server (Postfix) on OS-X Leopard
I found that following the command
Code:
sudo launchctl launchd% start org.postfix.master
Generated the error
Unknown subcommand "launchd%"
thnx
 
OP
T
Joined
Sep 12, 2011
Messages
76
Reaction score
1
Points
8
Solved.
The proper command sequence is
Code:
 sudo launchctl
and then I see the launchctl command prompt:
Code:
launchd%
and then enter the command
Code:
start org.postfix.master
And I did get the error message:
launchctl start error: No such process
But postfix starts when I reboot the computer.
I can easily verify with
Code:
 telenet localhost 25
thanks
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
Solved.
The proper command sequence is
Code:
 sudo launchctl
and then I see the launchctl command prompt:
Code:
launchd%
and then enter the command
Code:
start org.postfix.master
You can easily combine that:
Code:
sudo launchctl start org.postfix.master
Helpful for the future. ;)
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top