I have a device on my network that needs to send email notifications. Its setup requires access to an SMTP server.
The problem, is the device only allows specification via IP address, not FQDN. (It is an older Cisco phone system). Ideally, I would have an internal SMTP server or relay on a static IP that I could use, but I don't have one. I'd rather not set one up just for this one use.
Can I set up a src-nat rule to forward an IP address to an external FQDN?
My 750 is set up with a single external IP, masqueraded to the internal network 192.168.88.1/24. Pretty standard setup.
I'm thinking I might be able to do the following:
Choose an IP address that would otherwise go to the gateway, but is still a private IP as a Dummy. Like 10.1.1.1.
Then make an src-nat rule that forwards outbound port 25 requests aimed at 10.1.1.1 to smtp.outlook.com
I would set up the device that sends emails to send to 10.1.1.1
Will this work? What would the rule look like? Can I specify a FQDN in a firewall rule?
Do I put the rule before or after the masquerade rule on the src-nat chain?
If that wont work, any suggestions how to accomplish this easily?
Thanks for helping.