- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Can't mail 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
Discussions
Discussions
Forums
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
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
тАО02-25-2004 09:01 AM
тАО02-25-2004 09:01 AM
Can't mail from root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2004 09:14 AM
тАО02-25-2004 09:14 AM
Re: Can't mail from root
I don't know if I understood your problem. You can override the username from which it is coming from as someoneelse like below.
sendmail -Fsomeone -fsomename@somedomain.com toadress@todomain.com < your_file
Look at -f option of sendmail. You will need to add the user (I guess root in this case) as a trusted user in sendmail.cf file.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2004 09:26 AM
тАО02-25-2004 09:26 AM
Re: Can't mail from root
Create the user that is allowed to send mail outside of the domain then send as that user
HTH
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2004 09:35 AM
тАО02-25-2004 09:35 AM
Re: Can't mail from root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2004 09:41 AM
тАО02-25-2004 09:41 AM
Re: Can't mail from root
The syntax would be:
# mailx -s "subject" -r someone@somwhere.com toaddress@somewhereelse.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2004 09:46 AM
тАО02-25-2004 09:46 AM
Re: Can't mail from root
As root, send the mail like
#sendmail -F
Your_file may have the contents like this
From: root of
Subject: This is some message
Bla bla bla
This does go out like hostname@hostname.FQDN as required by you. By default root is a trusted user for sendmail. So, it should work straight without any changes.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2004 10:25 AM
тАО02-25-2004 10:25 AM
Re: Can't mail from root
By default, the CE class macro is set to expose mail as coming from root, even if masquerading is set.
e.g.
# class E: names that should be exposed as from this host, even if we masquerade
# class L: names that should be delivered locally, even if we have a relay
# class M: domains that should be converted to $M
#CL root
CE root
Modify your sendmail.cf file so that the CE macro is blank, and try using the previously suggested methods again....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2004 06:03 AM
тАО02-26-2004 06:03 AM
Re: Can't mail from root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2004 07:39 AM
тАО02-26-2004 07:39 AM
Re: Can't mail from root
Then try putting the outside domain-name in the /etc/hosts file.
Just a problem we had in the past when trying to send outside our own domain. Our internal DNS did not resolve external domanin. Sendmail likes to resolve a domain before sending it to the mail-relay. By putting the outside domain in /etc/hosts (even a fake IP will do) we got the mail send out in the WWW.
HTH,
Peter Geluk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2004 07:46 AM
тАО02-26-2004 07:46 AM
Re: Can't mail from root
root: someone@yourdomain.net
restart sendmail then you're done.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com