« MACOSX » : différence entre les versions
| Ligne 22 : | Ligne 22 : | ||
tls_random_source=dev:/dev/urandom | tls_random_source=dev:/dev/urandom | ||
- 2 sudo nano /etc/postfix/sasl_passwd | - 2 sudo nano /etc/postfix/sasl_passwd | ||
smtp.gmail.com:587 user:password | smtp.gmail.com:587 user:password | ||
| Ligne 28 : | Ligne 28 : | ||
- 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 | ||
postmap /etc/postfix/sasl_passwd | |||
- 4 Autorun postfix on boot and restart postfix | - 4 Autorun postfix on boot and restart postfix | ||
| Ligne 39 : | Ligne 40 : | ||
Remove these lines to prevent exiting after 60s | Remove these lines to prevent exiting after 60s | ||
<string>-e</string> | <string>-e</string> | ||
<string>60</string> | <string>60</string> | ||
Add these lines before </dict> | Add these lines before </dict> | ||
<key>KeepAlive</key> | <key>KeepAlive</key> | ||
<true/> | <true/> | ||
<key>RunAtLoad</key> | <key>RunAtLoad</key> | ||
<true/> | <true/> | ||
Relaunch the daemon. | Relaunch the daemon. | ||
sudo launchctl unload /Library/LaunchDaemons/org.postfix.custom.plist | sudo launchctl unload /Library/LaunchDaemons/org.postfix.custom.plist | ||
sudo launchctl load /Library/LaunchDaemons/org.postfix.custom.plist | sudo launchctl load /Library/LaunchDaemons/org.postfix.custom.plist | ||
''security System Integrity Protection (SIP) | |||
démarrer le mac en recovery Pomme-R | |||
Temporarily Turn Off Your Mac’s System Integrity Protection (Recommended For Advanced Users Only!) | |||
Restart in Recovery Mode (press and hold Command + R at startup) | |||
Open the Terminal Utility | |||
Type the command csrutil disable | |||
This gives you full, unrestricted access to your Mac’s entire operating system and every file–so again, advanced users only | |||
For Terminal Users; | |||
Restart your Mac and open Terminal again | |||
Use Terminal with the commands that resulted in operation not permitted errors | |||
When done, follow steps 1-2 and turn SIP back on using the command csrutil enable | |||
Restart your Mac and SIP should be back in business'' | |||
- 4 relancer postfix | - 4 relancer postfix | ||