From f7b9598d582d2d89bb73e93403f37ceddccf57e0 Mon Sep 17 00:00:00 2001 From: s3lph Date: Sun, 3 Oct 2021 02:55:22 +0200 Subject: [PATCH] Remove LMTP Envelope-Sender check. --- CHANGELOG.md | 12 ++++++++++++ easywks/__init__.py | 2 +- easywks/lmtpd.py | 7 ------- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c262c31..940f508 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # EasyWKS Changelog + +## Version 0.1.6 + +### Changes + + +- Remove LMTP Envelope-Sender check. +- Debian package now includes an "easywks clean" cronjob. + + + + ## Version 0.1.5 diff --git a/easywks/__init__.py b/easywks/__init__.py index 46a7260..82a4917 100644 --- a/easywks/__init__.py +++ b/easywks/__init__.py @@ -1,2 +1,2 @@ -__version__ = '0.1.5' +__version__ = '0.1.6' diff --git a/easywks/lmtpd.py b/easywks/lmtpd.py index 2e938cc..c7756ca 100644 --- a/easywks/lmtpd.py +++ b/easywks/lmtpd.py @@ -13,13 +13,6 @@ from .types import EasyWksError class LmtpMailServer: - async def handle_MAIL(self, server, session, envelope, address, mail_options): - _, domain = address.split('@', 1) - if domain not in Config.domains: - return '550 Not accepting mails from this domain' - envelope.mail_from = address - return '250 OK' - async def handle_RCPT(self, server, session, envelope, address, rcpt_options): for domain in Config.domains: if Config[domain].submission_address == address: