Jump to content

Sending emails via command line: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 43: Line 43:
===SSH===
===SSH===
----
----
To login to a RUT router via SSH, download the free '''PuTTY''' app if you're using Windows; if you're using a Linux based OS, just use the '''Terminal''' app. In both cases you will need to know three things: the router's LAN IP address, user name and password. The default LAN IP address for all RUT routers is '''192.168.1.1'''; the default login information is user name: '''root'''; password: '''admin01''' (NOTE: the user name used for SSH connections (i.e., root) is not the same as the user name used to login to the router's WebUI (i.e., admin)).
To login to a RUTxxx router via SSH, download the free '''PuTTY''' app if you're using Windows; if you're using a Linux based OS, just use the '''Terminal''' app. In both cases you will need to know three things: the router's LAN IP address, user name and password. The default LAN IP address for all RUTxxx routers is '''192.168.1.1'''; the default login information is user name: '''root'''; password: '''admin01''' (NOTE: the user name used for SSH connections (i.e., root) is not the same as the user name used to login to the router's WebUI (i.e., admin)).


If you're using PuTTY, enter the router's LAN IP address into the '''Host Name (or IP address)''' field, select SSH Connection type and click '''Open''':
If you're using PuTTY, enter the router's LAN IP address into the '''Host Name (or IP address)''' field, select SSH Connection type and click '''Open''':
Line 63: Line 63:
==Sending emails==
==Sending emails==


RUT routers use the '''sendmail''' program to send emails. sendmail is a very simple MTA (Mail Transfer Agent), which implements the '''SMTP''' ('''Simple Mail Transfer Protocol''') amongst others and can be used to transmit emails, typically on Linux dedicated or virtual servers.
RUTxxx routers use the '''sendmail''' program to send emails. sendmail is a very simple MTA (Mail Transfer Agent), which implements the '''SMTP''' ('''Simple Mail Transfer Protocol''') amongst others and can be used to transmit emails, typically on Linux dedicated or virtual servers.


There is no need to install anything else, because RUT routers have sendmail implemented in their Firmware. So, if you followed all the steps above, you should be ready to send emails via command line.  
There is no need to install anything else, because RUTxxx routers have sendmail implemented in their Firmware. So, if you followed all the steps above, you should be ready to send emails via command line.  


===Method 1===
===Method 1===