Gestion du daemon de messagerie Postfix sur OsX

One shot

arrêter postfix :

 sudo launchctl stop org.postfix.master ou sudo postfix stop 


lancer postfix

 sudo launchctl start org.postfix.master ou sudo postfix stop 
 

Démarrage automatique au boot en relay

 

editer le fichier /System/Library/LaunchDaemons/org.postfix.master.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/Propert$
<plist version="1.0">
<dict>
       <key>Label</key>
       <string>org.postfix.master</string>
       <key>Program</key>
       <string>/usr/libexec/postfix/master</string>
       <key>ProgramArguments</key>
       <array>
               <string>master</string>
       </array>
       <key>QueueDirectories</key>
       <array>
               <string>/var/spool/postfix/maildrop</string>
       </array>
       <key>OnDemand</key>
       <false/>
</dict>
</plist>


désactiver le démarrage automatique de postfix au boot

 sudo launchctl unload -w /System/Library/LaunchDaemons/org.postfix.master.plist 

activer le démarage automatique de postfix au boot

 sudo launchctl load -w /System/Library/LaunchDaemons/org.postfix.master.plist 

 

Average (0 Votes)