Manage hosted mail routing and scheduled automatic replies
This commit is contained in:
1 parent
a8b51ce629
commit
b7bc6b988b
25 files changed
+1435
-2
No files matched your search
@@ -273,6 +273,14 @@ class HostingPlan(models.Model):
|
||||
"Applies to new mailbox requests. Leave blank for unlimited."
|
||||
),
|
||||
)
|
||||
allow_mail_catchall = models.BooleanField(
|
||||
default=False,
|
||||
help_text="Allow a mailbox to receive otherwise unknown recipients.",
|
||||
)
|
||||
allow_external_mail_forwarding = models.BooleanField(
|
||||
default=False,
|
||||
help_text="Allow aliases to forward outside their mail domain.",
|
||||
)
|
||||
website_storage_limit_mib = models.PositiveIntegerField(
|
||||
"website storage limit (MiB)",
|
||||
blank=True,
|
||||
@@ -1046,6 +1054,26 @@ class MailboxProvisioning(ProvisioningJob):
|
||||
quota_update = models.BooleanField(default=False)
|
||||
|
||||
|
||||
class MailPolicyPublication(ProvisioningJob):
|
||||
manifest = models.JSONField()
|
||||
applied_manifest = models.JSONField(default=dict, blank=True)
|
||||
|
||||
class Meta:
|
||||
abstract = True
|
||||
|
||||
|
||||
class MailRoutingPublication(MailPolicyPublication):
|
||||
mail_domain = models.OneToOneField(
|
||||
HostingMailDomain, on_delete=models.CASCADE, related_name="routing"
|
||||
)
|
||||
|
||||
|
||||
class MailVacationPublication(MailPolicyPublication):
|
||||
mailbox = models.OneToOneField(
|
||||
HostingMailbox, on_delete=models.CASCADE, related_name="vacation"
|
||||
)
|
||||
|
||||
|
||||
class ServiceHealth(models.Model):
|
||||
node = models.CharField(max_length=63)
|
||||
service = models.CharField(max_length=24)
|
||||
|
||||
Reference in new issue
Block a user