mirror of
https://github.com/simple-login/app.git
synced 2024-11-10 17:35:27 +08:00
alert phishing attempt
This commit is contained in:
parent
f59651045d
commit
7ae60b9d82
1 changed files with 4 additions and 0 deletions
|
@ -507,6 +507,10 @@ def handle_forward(envelope, msg: Message, rcpt_to: str) -> List[Tuple[bool, str
|
|||
if msg["Reply-To"]:
|
||||
# force convert header to string, sometimes contact_from_header is Header object
|
||||
from_header = str(msg["Reply-To"])
|
||||
|
||||
# alert phishing attempt when reply-to = alias
|
||||
if from_header == alias.email:
|
||||
LOG.e("Reply-to same as alias %s", alias)
|
||||
else:
|
||||
from_header = str(msg["From"])
|
||||
|
||||
|
|
Loading…
Reference in a new issue