disable handle_bounce_reply_phase
This commit is contained in:
parent
d0ca773376
commit
5ef3ab4d74
|
@ -546,11 +546,11 @@ def handle_forward(envelope, msg: Message, rcpt_to: str) -> List[Tuple[bool, str
|
||||||
# bounce email initiated by Postfix
|
# bounce email initiated by Postfix
|
||||||
# can happen in case an email cannot be sent from an alias to a contact
|
# can happen in case an email cannot be sent from an alias to a contact
|
||||||
# in this case Postfix will send a bounce report to original sender, which is the alias
|
# in this case Postfix will send a bounce report to original sender, which is the alias
|
||||||
if mail_from == "<>":
|
# if mail_from == "<>":
|
||||||
LOG.warning("Bounce email sent to %s", alias)
|
# LOG.warning("Bounce email sent to %s", alias)
|
||||||
|
#
|
||||||
handle_bounce_reply_phase(alias, msg, user)
|
# handle_bounce_reply_phase(alias, msg, user)
|
||||||
return [(False, "550 SL E24 Email cannot be sent to contact")]
|
# return [(False, "550 SL E24 Email cannot be sent to contact")]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
contact = get_or_create_contact(msg["From"], envelope.mail_from, alias)
|
contact = get_or_create_contact(msg["From"], envelope.mail_from, alias)
|
||||||
|
|
Loading…
Reference in a new issue