HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: E-mail sent not receivable by client
Operating System - HP-UX
1833777
Members
2368
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
11-02-2004 03:49 PM
11-02-2004 03:49 PM
E-mail sent not receivable by client
Hi folks,
Typically, I would use the flwg command to send out e-mails:
echo 'test'|mailx -s 'subject' abc@def.com
However, in a server I recently started to support, I need an extra parameter, so the command becomes:
echo 'test'|mailx -s 'subject' -r sender@def.com abc@def.com
Plus, I discovered that if I use sendmail instead, I need the -f option:
echo 'test'|/usr/sbin/sendmail -fsender@def.com abc@def.com
Without these 2 options, outgoing mails leave the server (mailq is empty), but I never receive these mails. These 2 options (-r and -f) are not required in my existing servers.
Thus, I would like to learn how I can eliminate the need for these 2 options in this server I am just taking over support of. Which configuration file can allow me to do this?
TIA,
Shahril
Typically, I would use the flwg command to send out e-mails:
echo 'test'|mailx -s 'subject' abc@def.com
However, in a server I recently started to support, I need an extra parameter, so the command becomes:
echo 'test'|mailx -s 'subject' -r sender@def.com abc@def.com
Plus, I discovered that if I use sendmail instead, I need the -f option:
echo 'test'|/usr/sbin/sendmail -fsender@def.com abc@def.com
Without these 2 options, outgoing mails leave the server (mailq is empty), but I never receive these mails. These 2 options (-r and -f) are not required in my existing servers.
Thus, I would like to learn how I can eliminate the need for these 2 options in this server I am just taking over support of. Which configuration file can allow me to do this?
TIA,
Shahril
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2004 11:25 PM
11-02-2004 11:25 PM
Re: E-mail sent not receivable by client
Hi,
What are differences between the servers? OS Version? Trusted system? Sendmail version?
Sendmail config file is /etc/mail/sendmail.cf
Normally you must specify sender if user is a trusted user like root. All other users have a warning included in the mail message header.
Compare sendmail.cf files of the servers, specially 'From' header.
See sendmail.cf information:
http://www.unix.org.ua/orelly/networking/sendmail/ch05_01.htm
Rgds
JMB
What are differences between the servers? OS Version? Trusted system? Sendmail version?
Sendmail config file is /etc/mail/sendmail.cf
Normally you must specify sender if user is a trusted user like root. All other users have a warning included in the mail message header.
Compare sendmail.cf files of the servers, specially 'From' header.
See sendmail.cf information:
http://www.unix.org.ua/orelly/networking/sendmail/ch05_01.htm
Rgds
JMB
Si vous ne faites jamais de bétises, c'est que vous ne faites rien de difficile. Et ça c'est une grosse bétise.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 12:17 AM
11-03-2004 12:17 AM
Re: E-mail sent not receivable by client
Options -r for mailx and option -f for sendmail sends the so that it appears as coming from "particular address" Which may not be a case.
In case you want all outgoing emails appear as coming from "xyv@abc.com", you can set DM macro. In case you want to avoid using -r option on mailx eveytime you use it, you can set aliase for it.
alias mx='mailx -r abc@xyz.com'
echo "something" | mx -s "subject" email_Address
You do same for sendmail. (For -f option)
Anil
In case you want all outgoing emails appear as coming from "xyv@abc.com", you can set DM macro. In case you want to avoid using -r option on mailx eveytime you use it, you can set aliase for it.
alias mx='mailx -r abc@xyz.com'
echo "something" | mx -s "subject" email_Address
You do same for sendmail. (For -f option)
Anil
There is no substitute to HARDWORK
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP