Linux – if anyone logs in notify SSH



Put the following in /etc/profile:

The script /etc/profile is executed at every login (for bash shell users).

 

 


If you have issues delivering mail to a GMAIL inbox, make sure your domain is the first entry in /etc/hosts..

127.0.0.1

.