return 510 if no such alias
This commit is contained in:
parent
49d66c4226
commit
cf3a2258b2
|
@ -92,6 +92,10 @@ class MailHandler:
|
||||||
|
|
||||||
with app.app_context():
|
with app.app_context():
|
||||||
gen_email = GenEmail.get_by(email=alias)
|
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)
|
website_email = parse_srs_email(envelope.mail_from)
|
||||||
|
|
||||||
forward_email = ForwardEmail.get_by(
|
forward_email = ForwardEmail.get_by(
|
||||||
|
|
Loading…
Reference in a new issue