From d68e826495573b4710af0bd0dcfee7e4c58d1fc2 Mon Sep 17 00:00:00 2001 From: s3lph Date: Sun, 3 Oct 2021 04:41:25 +0200 Subject: [PATCH] Remove LMTP Recipient check, leads to trouble with postfix aliasing --- CHANGELOG.md | 11 +++++++++++ easywks/__init__.py | 2 +- easywks/lmtpd.py | 7 ------- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cdd05b9..698ff28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # EasyWKS Changelog + +## Version 0.1.8 + +### Changes + + +- Remove LMTP Recipient check as well, leads to trouble with postfix aliasing. + + + + ## Version 0.1.7 diff --git a/easywks/__init__.py b/easywks/__init__.py index 1c808d0..e47a98e 100644 --- a/easywks/__init__.py +++ b/easywks/__init__.py @@ -1,2 +1,2 @@ -__version__ = '0.1.7' +__version__ = '0.1.8' diff --git a/easywks/lmtpd.py b/easywks/lmtpd.py index c7756ca..eb924a1 100644 --- a/easywks/lmtpd.py +++ b/easywks/lmtpd.py @@ -13,13 +13,6 @@ from .types import EasyWksError class LmtpMailServer: - async def handle_RCPT(self, server, session, envelope, address, rcpt_options): - for domain in Config.domains: - if Config[domain].submission_address == address: - envelope.rcpt_tos.append(address) - return '250 OK' - return '550 Not responsible for this address' - async def handle_DATA(self, server, session, envelope): message = envelope.content try: