diff --git a/DOC/README.vhost.autodiscover b/DOC/README.vhost.autodiscover new file mode 100644 index 0000000..f7c9d17 --- /dev/null +++ b/DOC/README.vhost.autodiscover @@ -0,0 +1,41 @@ +# -- autodiscover. -- # + + + + ServerAdmin admin@ + + ServerName autodiscover. + + RewriteEngine On + RewriteCond %{REQUEST_FILENAME} -s [OR] + RewriteCond %{REQUEST_FILENAME} -l [OR] + RewriteCond %{REQUEST_FILENAME} -d + RewriteRule ^.*$ - [NC,L] + RewriteRule ^.*$ /autodiscover.php [NC,L] + + + SetHandler "proxy:unix:/tmp/php-7.3-fpm.www.sock|fcgi://127.0.0.1" + + + + DirectoryIndex index.php index.html + + + DocumentRoot "/var/www/autodiscover./htdocs" + /htdocs"> + Options +FollowSymLinks -Indexes + AllowOverride Options Indexes Limit FileInfo AuthConfig + + + SSLEngine on + + SSLCertificateFile /var/lib/dehydrated/certs/autodiscover./fullchain.pem + SSLCertificateKeyFile /var/lib/dehydrated/certs/autodiscover./privkey.pem + + CustomLog /var/log/apache2/ip_requests.log base_requests + + CustomLog /var/www/autodiscover./logs/autodiscover..log combined + ErrorLog /var/www/autodiscover./logs/autodiscover..error + + + diff --git a/DOC/autodiscover.php b/DOC/autodiscover.php new file mode 100644 index 0000000..f49f44a --- /dev/null +++ b/DOC/autodiscover.php @@ -0,0 +1,98 @@ +(.*?)\<\/EMailAddress\>/", $request, $email ); + +// check for invalid mail, to prevent XSS +if (filter_var($email[1], FILTER_VALIDATE_EMAIL) === false) { + throw new Exception('Invalid E-Mail provided'); +} + +// get domain from email address +$domain = substr( strrchr( $request, "@" ), 1 ); + +/************************************** + * Port and server settings below * + **************************************/ + +// POP settings +#$popServer = 'pop.' . $domain; // pop.example.com +$popServer = ''; // pop.oopen.de +$popPort = 995; +$popSSL = true; + +// IMAP settings +#imapServer = 'imap.' . $domain; // imap.example.com +$imapServer = ''; // imap.oopen.de +$imapPort = 993; +$imapSSL = true; + +// SMTP settings +#$$smtpServer = 'smtp.' . $domain; // smtp.example.com +$smtpServer = ''; // mail.oopen.de +$smtpPort = 587; +$smtpSSL = true; + +//set Content-Type +header( 'Content-Type: application/xml' ); +?> +'; ?> + + + + email + settings + + POP3 + + + + off + off + + on + + + IMAP + + + off + + off + + on + + + SMTP + + + off + + off + + on + on + on + + + +