The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 01-02-2009
joeyg's Avatar
joeyg joeyg is offline Forum Staff  
modérateur
  
 

Join Date: Dec 2007
Location: Home of 17-time world champion Boston Celtics
Posts: 1,311
Wink Unsure about that with mailx, what about mutt?

I have used the following:

Code:
m_subj_1="#AUTO# Full Audit Log"
m_recp_1="jmg@xxx.com"
m_frv='set from=me@xxx.com; set realname="jmg"'
/usr/local/bin/mutt -nx -e "$m_frv" -s "$m_subj_1" "$m_recp_1" <${AUDIT_FILE}_1
to send an audit log to a recipient, and controlling the 'from' field.

This was done because I did not want the email to come from my unix account, but from a more generic account (which was actually a group account).

All of that said, I think a place to research would be if you even have a working email account on your unix login. What happens when you go into mailx? Does it come back and say "No mail for xxx" where xxx is your login?