mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 06:27:02 +03:00
[snappymail] More changes to use the word "extensions" rather than plugins/packages
This commit is contained in:
parent
45662b39b0
commit
4e28a7bb7b
24 changed files with 58 additions and 50 deletions
|
|
@ -1,4 +1,4 @@
|
|||
This plugin, written by https://github.com/jas8522
|
||||
This extension, written by https://github.com/jas8522
|
||||
and optimised by
|
||||
https://github.com/rhyswilliamsza
|
||||
https://github.com/rhysit
|
||||
|
|
|
|||
|
|
@ -1,14 +1,21 @@
|
|||
What is it?
|
||||
|
||||
In essense, this plugin allows for multiple users across multiple servers to use one RainLoop installation,
|
||||
all without the administrator needing to create each domain separately. This plugin detects the required
|
||||
hostname from the inputted email address (for example, it would detect "example.com" as the hostname if
|
||||
"info@example.com" is inputted). This hostname is then used for IMAP and SMTP communication.
|
||||
In essense, this extension allows multiple users across multiple servers to
|
||||
use one Snappymail installation without the administrator having to create
|
||||
and configure individual domans.
|
||||
|
||||
This extension detects the required hostname from a given email address (for
|
||||
example, it would use "example.com" as the hostname if a user would
|
||||
log in as "info@example.com").
|
||||
|
||||
This hostname is then used for IMAP and SMTP communication.
|
||||
|
||||
How to Use:
|
||||
|
||||
1) Activate plugin
|
||||
2) Visit Settings, and add a new wildcard domain "*"
|
||||
3) Set your ports/ssl requirements as needed. These will not be changed by the plugin.
|
||||
4) In the SMTP and/or IMAP host fields, place the single word "auto". This will be replaced when the plugin is active.
|
||||
5) That's it! The plugin should now work!
|
||||
1) Activate extension
|
||||
2) Go to settings, and add a new wildcard domain "*"
|
||||
3) Set your ports/TLS/SSL configuration as needed. These settings will not be
|
||||
altered by the extension.
|
||||
4) Set the SMTP and/or IMAP host fields to "auto", this field will then be
|
||||
auto-configured.
|
||||
5) That's it!
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* This plug-in automatically detects the IMAP and SMTP settings by extracting them from the email address itself.
|
||||
* For example, user inputs: "info@example.com"
|
||||
* This plugin sets the IMAP and SMTP host to "example.com" upon login, and then connects to it.
|
||||
* This extension automatically detects the IMAP and SMTP settings by
|
||||
* extracting them from the email address itself. For example, if the user
|
||||
* attemps to login as "info@example.com", then the IMAP and SMTP host would
|
||||
* be set to to "example.com".
|
||||
*
|
||||
* Based on:
|
||||
* https://github.com/the-djmaze/snappymail/blob/master/plugins/override-smtp-credentials/index.php
|
||||
|
|
@ -13,11 +14,11 @@
|
|||
class AutoDomainGrabPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||
{
|
||||
const
|
||||
NAME = '',
|
||||
NAME = 'Auto Domain Selection',
|
||||
VERSION = '2.1',
|
||||
REQUIRED = '2.5.0',
|
||||
CATEGORY = 'General',
|
||||
DESCRIPTION = '';
|
||||
DESCRIPTION = 'Sets the IMAP/SMTP host based on the user\'s login';
|
||||
|
||||
private $imap_prefix = "mail.";
|
||||
private $smtp_prefix = "mail.";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue