Remove LMTP Recipient check, leads to trouble with postfix aliasing
This commit is contained in:
parent
6947122520
commit
d68e826495
3 changed files with 12 additions and 8 deletions
11
CHANGELOG.md
11
CHANGELOG.md
|
@ -1,5 +1,16 @@
|
||||||
# EasyWKS Changelog
|
# EasyWKS Changelog
|
||||||
|
|
||||||
|
<!-- BEGIN RELEASE v0.1.8 -->
|
||||||
|
## Version 0.1.8
|
||||||
|
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
<!-- BEGIN CHANGES 0.1.8 -->
|
||||||
|
- Remove LMTP Recipient check as well, leads to trouble with postfix aliasing.
|
||||||
|
<!-- END CHANGES 0.1.8 -->
|
||||||
|
|
||||||
|
<!-- END RELEASE v0.1.8 -->
|
||||||
|
|
||||||
<!-- BEGIN RELEASE v0.1.7 -->
|
<!-- BEGIN RELEASE v0.1.7 -->
|
||||||
## Version 0.1.7
|
## Version 0.1.7
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
|
|
||||||
__version__ = '0.1.7'
|
__version__ = '0.1.8'
|
||||||
|
|
|
@ -13,13 +13,6 @@ from .types import EasyWksError
|
||||||
|
|
||||||
class LmtpMailServer:
|
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):
|
async def handle_DATA(self, server, session, envelope):
|
||||||
message = envelope.content
|
message = envelope.content
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue