diff --git a/HowtoMail/Autoconfig.md b/HowtoMail/Autoconfig.md new file mode 100644 index 00000000..ef3a9c8c --- /dev/null +++ b/HowtoMail/Autoconfig.md @@ -0,0 +1,75 @@ + +## Apple + +Pour générer une fichier d'autoconfiguration pour les clients mails d'Apple : +~~~ sh +hostname=mail00.example.com +hostname_reverse=$(echo "$hostname" | tr . '\n' | tac | tr '\n' . | sed 's/.$//') +imap_server=imap.example.com +imap_port=993 +smtp_server=smtp.example.com +smtp_port=597 + +cat < + + + PayloadContent + + + EmailAccountType + EmailTypeIMAP + IncomingMailServerAuthentication + EmailAuthPassword + IncomingMailServerHostName + ${imap_server} + IncomingMailServerPortNumber + ${imap_port} + IncomingMailServerUseSSL + + + OutgoingMailServerAuthentication + EmailAuthPassword + OutgoingMailServerHostName + ${smtp_server} + OutgoingMailServerPortNumber + ${smtp_port} + OutgoingMailServerUseSSL + + OutgoingPasswordSameAsIncomingPassword + + + PayloadDisplayName + Email autoconfiguration profile + PayloadIdentifier + ${hostname_reverse} + PayloadType + com.apple.mail.managed + PayloadUUID + $(uuidgen) + PayloadVersion + 1 + SMIMEEnablePerMessageSwitch + + SMIMEEnabled + + disableMailRecentsSyncing + + + + PayloadDisplayName + Email autoconfiguration + PayloadIdentifier + ${hostname_reverse} + PayloadRemovalDisallowed + + PayloadType + Configuration + PayloadUUID + $(uuidgen) + PayloadVersion + 1 + + +EOF +~~~ \ No newline at end of file