ix-ai / smtp

This is a SMTP docker container for sending emails. You can also relay emails to gmail and amazon SES.
MIT License
92 stars 14 forks source link

Remote IP address #20

Closed be4i closed 1 year ago

be4i commented 1 year ago

Hello,

exim uses the host local ip address as the client remote ip address

250-******* Hello ***** [10.0.0.2]

is it possible to show the real remote ip address?

tlex commented 1 year ago

This is a limitation due to the way you start the container. The only way to see the real IP address of the client is to have no NAT between the software and the client. Which means, among other things, the only chance you have is to start the container in host network mode.

In short: your system, because of NAT, sees only the "source IP" of the network package as being the one of the router (since that one overwrites it).

be4i commented 1 year ago

Thank you for the info and fast response!