Remove LMTP Envelope-Sender check.
This commit is contained in:
parent
8043db9a1b
commit
f7b9598d58
3 changed files with 13 additions and 8 deletions
12
CHANGELOG.md
12
CHANGELOG.md
|
@ -1,5 +1,17 @@
|
||||||
# EasyWKS Changelog
|
# EasyWKS Changelog
|
||||||
|
|
||||||
|
<!-- BEGIN RELEASE v0.1.6 -->
|
||||||
|
## Version 0.1.6
|
||||||
|
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
<!-- BEGIN CHANGES 0.1.6 -->
|
||||||
|
- Remove LMTP Envelope-Sender check.
|
||||||
|
- Debian package now includes an "easywks clean" cronjob.
|
||||||
|
<!-- END CHANGES 0.1.6 -->
|
||||||
|
|
||||||
|
<!-- END RELEASE v0.1.6 -->
|
||||||
|
|
||||||
<!-- BEGIN RELEASE v0.1.5 -->
|
<!-- BEGIN RELEASE v0.1.5 -->
|
||||||
## Version 0.1.5
|
## Version 0.1.5
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
|
|
||||||
__version__ = '0.1.5'
|
__version__ = '0.1.6'
|
||||||
|
|
|
@ -13,13 +13,6 @@ from .types import EasyWksError
|
||||||
|
|
||||||
class LmtpMailServer:
|
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):
|
async def handle_RCPT(self, server, session, envelope, address, rcpt_options):
|
||||||
for domain in Config.domains:
|
for domain in Config.domains:
|
||||||
if Config[domain].submission_address == address:
|
if Config[domain].submission_address == address:
|
||||||
|
|
Loading…
Reference in a new issue