mirror of
https://github.com/chatmail/relay.git
synced 2026-09-22 23:30:09 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c4bb658a0 |
@@ -31,7 +31,7 @@ class Config:
|
|||||||
self.max_user_send_per_minute = int(params.pop("max_user_send_per_minute", 60))
|
self.max_user_send_per_minute = int(params.pop("max_user_send_per_minute", 60))
|
||||||
self.max_user_send_burst_size = int(params.pop("max_user_send_burst_size", 10))
|
self.max_user_send_burst_size = int(params.pop("max_user_send_burst_size", 10))
|
||||||
self.max_mailbox_size = params.pop("max_mailbox_size", "500M")
|
self.max_mailbox_size = params.pop("max_mailbox_size", "500M")
|
||||||
self.max_message_size = int(params.pop("max_message_size", 31457280))
|
self.max_message_size = int(params.pop("max_message_size", 52428800))
|
||||||
self.delete_mails_after = params.pop("delete_mails_after", "20")
|
self.delete_mails_after = params.pop("delete_mails_after", "20")
|
||||||
self.delete_large_after = params.pop("delete_large_after", "7")
|
self.delete_large_after = params.pop("delete_large_after", "7")
|
||||||
self.delete_inactive_users_after = int(
|
self.delete_inactive_users_after = int(
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ mail_domain = {mail_domain}
|
|||||||
#max_mailbox_size = 500M
|
#max_mailbox_size = 500M
|
||||||
|
|
||||||
# maximum message size for an e-mail in bytes
|
# maximum message size for an e-mail in bytes
|
||||||
#max_message_size = 31457280
|
#max_message_size = 52428800
|
||||||
|
|
||||||
# days after which mails are unconditionally deleted
|
# days after which mails are unconditionally deleted
|
||||||
#delete_mails_after = 20
|
#delete_mails_after = 20
|
||||||
|
|||||||
@@ -56,6 +56,8 @@ mail_server_admin = mailto:{{ config.privacy_mail }}
|
|||||||
# <https://doc.dovecot.org/2.3/configuration_manual/quota_plugin/>
|
# <https://doc.dovecot.org/2.3/configuration_manual/quota_plugin/>
|
||||||
mail_plugins = zlib quota
|
mail_plugins = zlib quota
|
||||||
|
|
||||||
|
imap_capability = +XDELTAPUSH XCHATMAIL
|
||||||
|
|
||||||
|
|
||||||
# Authentication for system users.
|
# Authentication for system users.
|
||||||
passdb {
|
passdb {
|
||||||
|
|||||||
@@ -15,6 +15,13 @@ def test_init(tmp_path, maildomain):
|
|||||||
assert config.mail_domain_bare == maildomain
|
assert config.mail_domain_bare == maildomain
|
||||||
|
|
||||||
|
|
||||||
|
def test_capabilities(imap):
|
||||||
|
imap.connect()
|
||||||
|
capas = imap.conn.capabilities
|
||||||
|
assert "XCHATMAIL" in capas
|
||||||
|
assert "XDELTAPUSH" in capas
|
||||||
|
|
||||||
|
|
||||||
def test_login_basic_functioning(imap_or_smtp, gencreds, lp):
|
def test_login_basic_functioning(imap_or_smtp, gencreds, lp):
|
||||||
"""Test a) that an initial login creates a user automatically
|
"""Test a) that an initial login creates a user automatically
|
||||||
and b) verify we can also login a second time with the same password
|
and b) verify we can also login a second time with the same password
|
||||||
|
|||||||
Reference in New Issue
Block a user