Nov
09
2009

Email 101 in Unix

This sends an email from a file:

mail -s “here is the subject” email@rigler.org,otheremail@rigler.org < /etc/motd

This sends an email from a pipe:

ls -l | mail -s “here is the subject” email@rigler.org,otheremail@rigler.org

When you first install the system, if you have /etc/resolv.conf configured, email will figure out
where to go.

If you want to forward email sent to your unix account to a different account, just add the email
address that you want to use to a file called ~/.forward

Written by admin in: AIX |

No Comments »

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes