mailinabox/management
David Piggott 3fdfad27cd Add support for bidirectional mail alias controls
This is an extension of #427. Building on that change it adds support in the
aliases table for flagging aliases as:
 1. Applicable to inbound and outbound mail.
 2. Applicable to inbound mail only.
 3. Applicable to outbound mail only.
 4. Disabled.

The aliases UI is also updated to allow administrators to set the direction of
each alias.

Using this extra information, the sqlite queries executed by Postfix are
updated so only the relevant alias types are checked.

The goal and result of this change is that outbound-only catch-all aliases can
now be defined (in fact catch-all aliases of any type can be defined).

This allow us to continue supporting relaying as described at
https://mailinabox.email/advanced-configuration.html#relay
without requiring that administrators either create regular aliases for each
outbound *relay* address, or that they create a catch-all alias and then face a
flood of spam.

I have tested the code as it is in this commit and fixed every issue I found,
so in that regard the change is complete. However I see room for improvement
in terms of updating terminology to make the UI etc. easier to understand.
I'll make those changes as subsequent commits so that this tested checkpoint is
not lost, but also so they can be rejected independently of the actual change
if not wanted.
2015-07-20 12:51:57 +01:00
..
templates Add support for bidirectional mail alias controls 2015-07-20 12:51:57 +01:00
auth.py the control panel auth hmac message should also include the user's password so that resetting a password in the database forces that user to log in to the control panel again; also use a sha256 hmac 2015-06-06 12:38:19 +00:00
backup.py merge #396 - allow the backup process to work after a hostname change 2015-05-30 13:55:08 +00:00
daemon.py Add support for bidirectional mail alias controls 2015-07-20 12:51:57 +01:00
dns_update.py bug in new secondary nameservers 2015-07-20 11:25:16 +00:00
mail_log.py mail log scanner: dont assume lines are utf8 2015-01-02 22:49:25 +00:00
mailconfig.py Add support for bidirectional mail alias controls 2015-07-20 12:51:57 +01:00
status_checks.py Add support for bidirectional mail alias controls 2015-07-20 12:51:57 +01:00
utils.py race condition between backups and status checks - connection refused 2015-04-29 21:06:38 +00:00
web_update.py the control panel would not allow installing a certificate for a www redirect domain, fixes #475 2015-07-02 10:53:54 +00:00