- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mailx does not work from root
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2004 03:47 PM
01-08-2004 03:47 PM
mailx does not work from root
mailx does work from my own account but not from root.
Thanks
Nisar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2004 03:51 PM
01-08-2004 03:51 PM
Re: mailx does not work from root
- What command lines have you tried?
- What do you mean by "does not work" --
you can't read mail, mail you send bounces
back, mail you send goes into a black hole,
...?
- what is your mail environment? Do you have
a "smart relay/smart host" at your site,
etc.
Sorry to bombard you with questions, just
trying to help.
Mic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2004 04:07 PM
01-08-2004 04:07 PM
Re: mailx does not work from root
Thanks for the prompt response.
Actually it does not reach to a general email. Yes we have a smtprelay server that is why it is working from my own account.
Nisar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2004 04:56 PM
01-08-2004 04:56 PM
Re: mailx does not work from root
echo foo | mailx -s from-me myaddr@aol.com
or
echo foo | mailx -s from-me mylocaladdr
it works, but if you do the same exact thing as root, it doesn't work?
Assuming that what I wrote is accurate, I assume you've tried sending mail to a variety of addresses or examined root's .mailrc/.forward?
Try sending a mail as root (like you've been doing), then immediately do this:
tail /var/adm/syslog/mail.log
(or whereever your mail log is). Assuming it's actually getting sent off the system, it should tell you what happened to it (though it can be a bit cryptic). Please post your command line and what the log showed, if you don't mind.
Also, look at /var/mail/root (or wherever your spool is) to see if it's bouncing.
It's a long shot since some mail is working, but you can also try something like:
/usr/lib/sendmail -bt
> 3 mylocaladdr
I'm doing this from memory, I may be a little off. Good luck.
Mic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2004 12:42 AM
01-09-2004 12:42 AM
Re: mailx does not work from root
Review your /etc/sendmail.cf file to see if it has been setup to redirect root's mail, in addition to checking the mail log to see if it is being sent in the first place.
mailq -v -d will tell you if messages are getting hung in the queue.
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2004 12:56 AM
01-09-2004 12:56 AM
Re: mailx does not work from root
as root
sendmail -v -d8.99 -d38.99 someaddress@somedomain.com
type some text
.
I'm thinking there could be a problem in /etc/mail/access or /etc/mail/aliases that's misdirecting the mail.
This diagnostic will help you figure it out.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2004 02:38 AM
01-09-2004 02:38 AM
Re: mailx does not work from root
Check the sendmail.cf file to be sure that the following line is
commented out:
# CE root (insert "#" sign to comment out)
Next, stop/start sendmail, then send a test email from root account.
Let us know how it goes :)
Geno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2004 02:41 AM
01-09-2004 02:41 AM
Re: mailx does not work from root
Also in this file, make sure there is not more than one of those entries. All instances need to be commented out.
Geno