Is it safe to allow SMTP Relay
from the private address blocks
?
- 10.0.0.0/8
- 127.0.0.0/8
- 172.16.0.0/12
- 192.168.0.0/16
My gut feeling is that it's probably OK, however I'm not sure if that will not make my server susceptible to something like IP-forgery
attacks or similar. Basically what are the chances that some black-hats will apply some smart techniques and will fool my MTA
into thinking that it has received the envelope from the private address block
, effectively turning it into the open relay?
My MTA
is running inside the docker container
, so I was afraid that all connections (including ones from the remote servers) will be treated as the local connections. However you can see from the following log entry that the MTA
was able to work out that incoming connection is remote:
SMTP connection from [xxx.yyy.39.83]:43108 I=[172.18.0.2]:25 (TCP/IP connection count = 1)
In general how do MTA
s gather such information, do they take it from the TCP
connections, from the SMTP headers
, something in between?