## DELETE AFTER INstALLING SO CANNOT BE VIEWED ##
this confitg setup for files in /var/www/html/mailconfig
built with Gemini help
untar the tarball to /var/www/html/mailconfig/
install ccichecksmtp.php in cci admin tree
apt-get install swaks
setup the two apache sites-enabled files
add the three config lines to dns (autoconfig, Autodiscover, and the tcp entry)
setup/add two domains to certbot
a2ensite autoconfig*
systemctl restart apache2
=========================================
/etc/apache2/sites-available/autoconfig.nebnet.net-ssl.conf
ServerName autoconfig.nebnet.net
ServerAlias autodiscover.nebnet.net
DocumentRoot /var/www/html/mailconfig
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
SSLCertificateFile /etc/letsencrypt/live/cciadmin.nebnet.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/cciadmin.nebnet.net/privkey.pem
# Force correct XML and Apple Profile MIME types
ForceType application/xml
ForceType application/x-apple-aspen-config
=========================================
/etc/apache2/sites-available/autoconfig.nebnet.net.conf
ServerName autoconfig.nebnet.net
ServerAlias autodiscover.nebnet.net
DocumentRoot /var/www/html/mailconfig
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
# Force correct XML and Apple Profile MIME types
ForceType application/xml
ForceType application/x-apple-aspen-config
=========================================
/var/www/html/mailconfig/nebnet.mobileconfig
PayloadContent
PayloadDescription
Configures NebNet Email Account
PayloadDisplayName
NebNet Email Settings
PayloadIdentifier
net.nebnet.email.config
PayloadType
com.apple.mail.managed
PayloadUUID
4A8B9C0D-1E2F-3A4B-5C6D-7E8F9A0B1C2D
PayloadVersion
1
EmailAccountDescription
NebNet Mail
EmailAccountType
EmailTypeIMAP
EmailAddress
IncomingMailServerAuthentication
EmailAuthPassword
IncomingMailServerHostName
mail.nebnet.net
IncomingMailServerPortNumber
993
IncomingMailServerUseSSL
IncomingMailServerUsername
OutgoingMailServerAuthentication
EmailAuthPassword
OutgoingMailServerHostName
smtp.nebnet.net
OutgoingMailServerPortNumber
587
OutgoingMailServerUseSSL
OutgoingPasswordSameAsIncomingPassword
OutgoingMailServerUsername
PayloadDescription
Automatic email setup for nebnet.net accounts.
PayloadDisplayName
NebNet Email Configuration
PayloadIdentifier
net.nebnet.profile
PayloadOrganization
Consolidated Telephone
PayloadRemovalDisallowed
PayloadType
Configuration
PayloadUUID
9F8E7D6C-5B4A-3F2E-1D0C-9B8A7F6E5D4C
PayloadVersion
1
=========================================