[PR #119] [CLOSED] Mailbox auto aliases #283

Closed
opened 2026-02-26 10:30:37 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/opensolutions/ViMbAdmin/pull/119
Author: @mfechner
Created: 9/24/2014
Status: Closed

Base: masterHead: mailbox_auto_aliases


📝 Commits (10+)

  • f6e7a04 Fixed a problem filterForAliasList is called with passed domain argument.
  • d346ef6 Added plugin to automatially create aliases (if they are not existing) after a mailbox is created.
  • 88d2d37 Added the possibility that a plugin function can stop the workflow if it return a false.
  • 968c06f If an alias is delete, continue only, if all called hooks from all plugins give green light to continue with the deletion.
  • 0f0a884 Added a hook to the plugin MailboxAutomaticAliases to prevent the deletion of an aliases that is marked as required.
  • f4ed3da Added a new hook for class Alias, function toggleActive, hook preToggle which can be used to stop the toggle function with a hook for class Alias.
  • af4be1a A not existing hook function in a plugin will always cause a true return value to not break interrupt flow.
  • 03bbbaf Make sure the toggle function for the alias return the correct value to return error message to user why a alias could not be deactivated.
  • c91b360 Added method to check if it is allowed to deactivate an alias.
  • f727b0f Added hook that also creates aliases if an aliases is created. That makes sures that aliases are created if the complete domain is forwarded to another address.

📊 Changes

6 files changed (+208 additions, -26 deletions)

View changed files

📝 application/Repositories/Alias.php (+1 -1)
📝 application/configs/application.ini.dist (+11 -0)
📝 application/controllers/AliasController.php (+28 -23)
application/plugins/MailboxAutomaticAliases.php (+156 -0)
📝 library/ViMbAdmin/Controller/PluginAction.php (+11 -2)
📝 library/ViMbAdmin/Plugin.php (+1 -0)

📄 Description

This plugin enable a feature to automatically create aliases defined in application.ini.
There are some standard aliases that must always exist and a standard user is not aware of the fact that e.g. postmaster@domain must exist. The alias abuse@domain should exist, if not it is possible that your domain will get into a spam blacklist.
This plugin ensures that also a not skilled user as always the required aliases active.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/opensolutions/ViMbAdmin/pull/119 **Author:** [@mfechner](https://github.com/mfechner) **Created:** 9/24/2014 **Status:** ❌ Closed **Base:** `master` ← **Head:** `mailbox_auto_aliases` --- ### 📝 Commits (10+) - [`f6e7a04`](https://github.com/opensolutions/ViMbAdmin/commit/f6e7a040fc19d9e87f22beaa565d908e35edd4cc) Fixed a problem filterForAliasList is called with passed domain argument. - [`d346ef6`](https://github.com/opensolutions/ViMbAdmin/commit/d346ef6ca7c2410579399a20ddac65ff6117fdd9) Added plugin to automatially create aliases (if they are not existing) after a mailbox is created. - [`88d2d37`](https://github.com/opensolutions/ViMbAdmin/commit/88d2d370cdbc896bb0e711173d0bb8bbaa8f845a) Added the possibility that a plugin function can stop the workflow if it return a false. - [`968c06f`](https://github.com/opensolutions/ViMbAdmin/commit/968c06f02f7bc6a9336f76b327f5f19e0300039a) If an alias is delete, continue only, if all called hooks from all plugins give green light to continue with the deletion. - [`0f0a884`](https://github.com/opensolutions/ViMbAdmin/commit/0f0a88437729abf3e90d1f0ad5fed48b337b69c4) Added a hook to the plugin MailboxAutomaticAliases to prevent the deletion of an aliases that is marked as required. - [`f4ed3da`](https://github.com/opensolutions/ViMbAdmin/commit/f4ed3dacc52703e7895701d01eac1745dc6c9e4e) Added a new hook for class Alias, function toggleActive, hook preToggle which can be used to stop the toggle function with a hook for class Alias. - [`af4be1a`](https://github.com/opensolutions/ViMbAdmin/commit/af4be1a47a822739b4023c34818f52a2f34b5759) A not existing hook function in a plugin will always cause a true return value to not break interrupt flow. - [`03bbbaf`](https://github.com/opensolutions/ViMbAdmin/commit/03bbbaf7037f04cf7c772d8af2da9800bd433369) Make sure the toggle function for the alias return the correct value to return error message to user why a alias could not be deactivated. - [`c91b360`](https://github.com/opensolutions/ViMbAdmin/commit/c91b360dc18f627e502dcae81bd1cb70342c8dee) Added method to check if it is allowed to deactivate an alias. - [`f727b0f`](https://github.com/opensolutions/ViMbAdmin/commit/f727b0f7c3b4728d2972e2a508d83d3284db07d0) Added hook that also creates aliases if an aliases is created. That makes sures that aliases are created if the complete domain is forwarded to another address. ### 📊 Changes **6 files changed** (+208 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `application/Repositories/Alias.php` (+1 -1) 📝 `application/configs/application.ini.dist` (+11 -0) 📝 `application/controllers/AliasController.php` (+28 -23) ➕ `application/plugins/MailboxAutomaticAliases.php` (+156 -0) 📝 `library/ViMbAdmin/Controller/PluginAction.php` (+11 -2) 📝 `library/ViMbAdmin/Plugin.php` (+1 -0) </details> ### 📄 Description This plugin enable a feature to automatically create aliases defined in application.ini. There are some standard aliases that must always exist and a standard user is not aware of the fact that e.g. postmaster@domain must exist. The alias abuse@domain should exist, if not it is possible that your domain will get into a spam blacklist. This plugin ensures that also a not skilled user as always the required aliases active. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 10:30:37 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ViMbAdmin-opensolutions#283
No description provided.