« MACOSX » : différence entre les versions

Ligne 27 : Ligne 27 :


- 3 Générer le fichier .db nécessaire au bon fonctionnement de postfix
- 3 Générer le fichier .db nécessaire au bon fonctionnement de postfix
- 4 Autorun postfix on boot and restart postfix
Copy the postfix master plist out of System folder.
sudo cp /System/Library/LaunchDaemons/com.apple.postfix.master.plist /Library/LaunchDaemons/org.postfix.custom.plist
sudo vi /Library/LaunchDaemons/org.postfix.custom.plist
Change the label value from com.apple.postfix.master to org.postfix.custom
Remove these lines to prevent exiting after 60s
  <string>-e</string>
  <string>60</string>
Add these lines before </dict>
  <key>KeepAlive</key>
  <true/>
  <key>RunAtLoad</key>
  <true/>
Relaunch the daemon.
sudo launchctl unload /Library/LaunchDaemons/org.postfix.custom.plist
sudo launchctl load /Library/LaunchDaemons/org.postfix.custom.plist


postmap /etc/postfix/sasl_passwd
postmap /etc/postfix/sasl_passwd