mirror of
https://github.com/simple-login/app.git
synced 2024-11-10 17:35:27 +08:00
return 510 if no such alias
This commit is contained in:
parent
49d66c4226
commit
cf3a2258b2
1 changed files with 4 additions and 0 deletions
|
@ -92,6 +92,10 @@ class MailHandler:
|
|||
|
||||
with app.app_context():
|
||||
gen_email = GenEmail.get_by(email=alias)
|
||||
if not gen_email:
|
||||
LOG.d("alias %s not exist")
|
||||
return "510 Email not exist"
|
||||
|
||||
website_email = parse_srs_email(envelope.mail_from)
|
||||
|
||||
forward_email = ForwardEmail.get_by(
|
||||
|
|
Loading…
Reference in a new issue