Skip to content

Commit

Permalink
add forwarded IP to headers
Browse files Browse the repository at this point in the history
  • Loading branch information
milescalabresi committed Jun 12, 2024
1 parent b04ffe2 commit 5c9f4b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions esp/mailgates/mailgate.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def send_mail(message):
del(message['to'])
del(message['cc'])
message['X-ESP-SENDER'] = 'version 2'
message['X-FORWARDED-FOR'] = message['X-CLIENT-IP'] if message['X-Client-IP'] else message['Client-IP']

subject = message['subject']
del(message['subject'])
Expand Down

0 comments on commit 5c9f4b7

Please sign in to comment.