Création page HowtoMail/Autoconfig
This commit is contained in:
parent
402e9cbd16
commit
08fb05d30a
75
HowtoMail/Autoconfig.md
Normal file
75
HowtoMail/Autoconfig.md
Normal file
|
@ -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 <<EOF
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>PayloadContent</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>EmailAccountType</key>
|
||||
<string>EmailTypeIMAP</string>
|
||||
<key>IncomingMailServerAuthentication</key>
|
||||
<string>EmailAuthPassword</string>
|
||||
<key>IncomingMailServerHostName</key>
|
||||
<string>${imap_server}</string>
|
||||
<key>IncomingMailServerPortNumber</key>
|
||||
<integer>${imap_port}</integer>
|
||||
<key>IncomingMailServerUseSSL</key>
|
||||
<true/>
|
||||
|
||||
<key>OutgoingMailServerAuthentication</key>
|
||||
<string>EmailAuthPassword</string>
|
||||
<key>OutgoingMailServerHostName</key>
|
||||
<string>${smtp_server}</string>
|
||||
<key>OutgoingMailServerPortNumber</key>
|
||||
<integer>${smtp_port}</integer>
|
||||
<key>OutgoingMailServerUseSSL</key>
|
||||
<true/>
|
||||
<key>OutgoingPasswordSameAsIncomingPassword</key>
|
||||
<true/>
|
||||
|
||||
<key>PayloadDisplayName</key>
|
||||
<string>Email autoconfiguration profile</string>
|
||||
<key>PayloadIdentifier</key>
|
||||
<string>${hostname_reverse}</string>
|
||||
<key>PayloadType</key>
|
||||
<string>com.apple.mail.managed</string>
|
||||
<key>PayloadUUID</key>
|
||||
<string>$(uuidgen)</string>
|
||||
<key>PayloadVersion</key>
|
||||
<real>1</real>
|
||||
<key>SMIMEEnablePerMessageSwitch</key>
|
||||
<false/>
|
||||
<key>SMIMEEnabled</key>
|
||||
<false/>
|
||||
<key>disableMailRecentsSyncing</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</array>
|
||||
<key>PayloadDisplayName</key>
|
||||
<string>Email autoconfiguration</string>
|
||||
<key>PayloadIdentifier</key>
|
||||
<string>${hostname_reverse}</string>
|
||||
<key>PayloadRemovalDisallowed</key>
|
||||
<false/>
|
||||
<key>PayloadType</key>
|
||||
<string>Configuration</string>
|
||||
<key>PayloadUUID</key>
|
||||
<string>$(uuidgen)</string>
|
||||
<key>PayloadVersion</key>
|
||||
<integer>1</integer>
|
||||
</dict>
|
||||
</plist>
|
||||
EOF
|
||||
~~~
|
Loading…
Reference in a new issue