AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Stunnel for mac3/20/2023 This is already configured out of the box on macOS and no special configuration is needed. As soon a mail is written to the mail spool directory by sendmail, the Postfix master will be started to pickup and process the mail as usual. This is also the case for Postfix, which is way there is no process running unless a mail needs to be send. On macOS, services can automatically be started by triggers configured in the launchd init system. Therefore the best option is to embrace that as a feature and use it. However, due to the System Integrity Protection (SIP) on recent macOS versions, there is no way to disable the builtin Postfix. Luckily, this is also the mail daemon I am most experienced with, although other options such as msmtp or nullmailer exist. MacOS already includes Postfix in the base installation. Therefore I am running a local MTA on all the computers I administrate to relay mails to a central mail server. While most tools also allow you to configure an external SMTP server, it is on one hand tedious to configure it everywhere and on the other hand also insecure if you have to write the username and password for authentication to many user-readable configuration files on your system. Therefore the best way is to relay all outgoing mail through the mail server that is responsible for your domains. To fight spam, techniques like SPF have been developed that restrict the mail servers that are allowed to send mails for the domain name used in the From: field. However, mails cannot just be sent from any device and mail servers on the internet usually reject mails from dial-up IPs or public WiFi networks. It is also especially useful for things like git send-email or automatically sending GPG signatures with caff to others. I like to have a working mail setup on all machines as this allows to be notified about cronjobs that failed and also to be able to send other notifications that would otherwise be lost.
0 Comments
Read More
Leave a Reply. |