The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
mailx question melanie_pfefer Shell Programming and Scripting 2 01-24-2008 10:20 AM
MAILX question dkranes Shell Programming and Scripting 3 10-31-2007 11:24 AM
Question on mailx Felix2511 UNIX for Dummies Questions & Answers 3 05-23-2007 01:38 PM
mailx question greenguy5 UNIX for Dummies Questions & Answers 1 10-21-2005 03:07 AM
Mailx question Olivier UNIX for Advanced & Expert Users 3 08-26-2002 11:21 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-02-2009
nshah nshah is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 4
Unix mailx question.

HI,
Whenever I tried to send mail using mailx in unix (Solaris 5.9), from field is missing from email messages. In short, sender's email address is missing from message. Anybody has any idea why this is happening?

Thanks,
NS.
  #2 (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
Question

Can you show a sample fo the command you are using?
  #3 (permalink)  
Old 01-02-2009
nshah nshah is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 4
mailx -s "mail test" xxx@yyy.com < /dev/null

Below is the message that I got in outlook(my email account).

From:

To: xxx@yyy.com
Cc:
Subject: mail test

So basically from field is empty/missing.

Thanks,
Nishit.
  #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?
  #5 (permalink)  
Old 01-02-2009
nshah nshah is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 4
Yes it did say "no mail for xxx". So what is that mean? Most of the servers works fine with mailx command(display server's email address-root@xxx.com in from field). Only one of the server giving me this problem. I was wondering do mailx use some kind of header file(which has host email address)? I mean how do mailx process/get host's email address while sending mail. Unfortunately all of our BCV scripts use mailx, so I can't use mutt.

Thanks,
NS.
  #6 (permalink)  
Old 01-08-2009
nshah nshah is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 4
I have figured out the root cause. I had older version of sendmail.cf on server. Updated sendmail.cf with new version and restarted sendmail. So right now, from field is not missing from email messages.

Thanks for help. I am closing this thread.
NS.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:42 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0