I did a good deal of searching the SNB forums and the internet before posting here and found a few things that are close, but nothing that solves my issue.
My setup:
I have a main router for my network, an rt-ac86u; and a second router for my IoT subnet, an rt-ac68u. Both are running the latest version of Merlin FW (386.2_6). I have used the "Block Internet Access" option on my main router to prevent any of the devices on the second router from accessing, well, the internet. This is to prevent any device from calling home. I need to receive alerts via email from the IoT devices as needed.
What I've been able to do:
If I temporarily allow internet access from the main router, my devices can send email alerts directly to my gmail account just fine.
I have successfully tried both Sendmail (the included Busybox version/binary) and MSMTP (installed via Entware) to send test emails with no issues to my gmail account with relative ease - the configs were fairly simple and straight-forward. These test emails were sent from my main router via command line, not from my devices.
My dilemma:
I have no clue how to use either Sendmail or MSMTP (I have no philosophical preference for either) to accept the emails from my devices and forward them to my gmail account? I've pointed the devices to the IP address of the main router - do dice. Any suggestions?
So in a nutshell:
How do I configure either Sendmail or MSMTP (or any other alternative) to simply act as a relay agent? I don't want a full-blown email server, I only want to forward emails from devices inside my network to my gmail account.
PS - I've looked into Nullmailer from untroubled.org and, while it looks like what I need, I'm wary of installing any additional programs onto my router. I tend to follow the Linux philosophy in that each component should do one or two things and do them well.
Thank you!
My setup:
I have a main router for my network, an rt-ac86u; and a second router for my IoT subnet, an rt-ac68u. Both are running the latest version of Merlin FW (386.2_6). I have used the "Block Internet Access" option on my main router to prevent any of the devices on the second router from accessing, well, the internet. This is to prevent any device from calling home. I need to receive alerts via email from the IoT devices as needed.
What I've been able to do:
If I temporarily allow internet access from the main router, my devices can send email alerts directly to my gmail account just fine.
I have successfully tried both Sendmail (the included Busybox version/binary) and MSMTP (installed via Entware) to send test emails with no issues to my gmail account with relative ease - the configs were fairly simple and straight-forward. These test emails were sent from my main router via command line, not from my devices.
My dilemma:
I have no clue how to use either Sendmail or MSMTP (I have no philosophical preference for either) to accept the emails from my devices and forward them to my gmail account? I've pointed the devices to the IP address of the main router - do dice. Any suggestions?
So in a nutshell:
How do I configure either Sendmail or MSMTP (or any other alternative) to simply act as a relay agent? I don't want a full-blown email server, I only want to forward emails from devices inside my network to my gmail account.
PS - I've looked into Nullmailer from untroubled.org and, while it looks like what I need, I'm wary of installing any additional programs onto my router. I tend to follow the Linux philosophy in that each component should do one or two things and do them well.
Thank you!