- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Regarding mailx from HP-UX system
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
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
03-30-2005 03:58 PM
03-30-2005 03:58 PM
Regarding mailx from HP-UX system
(1) i am currently trying to send a test mail using a shell script like :
HEADER="Test mail"
mailx -s "$HEADER" prakalp_shrivastava@infosys.com <
EOF
exit 0
however it is not going .. is there some environment variable or setting i need to make for this ??
(2) the test mail sent from above script, in the "From" mail tag, whose mail id will be shown ? does it depend on the user who has logged in the system currently while executing the script ?
is it possible to change the id shown in "From" tab by changing a variable in some mail setting file ?
looking fwd to some opinions on this, sorry if this is in the wrong section (?) and thanks for ur time .
regards,
Prakalp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 11:13 PM
03-30-2005 11:13 PM
Re: Regarding mailx from HP-UX system
#!/usr/bin/ksh
HEADER="Test mail"
mailx -s "$HEADER" prakalp_shrivastava@infosys.com <
..
EOF
Maybe your sendmail isn't working?
(2) The login name of the user will appear. Thus if they login as root it will show root@SYSTEMNAME.infosys.com
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 11:40 PM
03-30-2005 11:40 PM
Re: Regarding mailx from HP-UX system
(1) problem solved :-) am able to send mails now .
(2) logged in as user - root - and sent a test mail to my id, where the From tag showed new mail from - root@ccd.com
needed to know, where do i make changes in the server machine so tht the From tag in the mail shows different 'name' than the one logged in while sending ..
i'd be guessing there is some config sendmail file for this ... could any one confirm the same ?
last option would be to write a script for this .. any ideas ?
best,
prakalp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 12:08 AM
03-31-2005 12:08 AM
Re: Regarding mailx from HP-UX system
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 12:27 AM
03-31-2005 12:27 AM
Re: Regarding mailx from HP-UX system
well the machine is currently being used for some critical processes and batch runs .. though procmail seems to be able to do the job, i'd be sticking my neck out there ..
if there is any manual settings to be done, in ur knowledge, please let me know .. it wud be a GREAT help.
thanks again,
waiting,
Prakalp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 12:39 AM
03-31-2005 12:39 AM
Re: Regarding mailx from HP-UX system
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 01:06 AM
03-31-2005 01:06 AM
Re: Regarding mailx from HP-UX system
See:
http://www.sendmail.org/virtual-hosting.html
You will have to re-compile your sendmail.cf...
If you would like to reverse-map local users for out-bound mail, you will need to add support for the generics table to your .mc file:
FEATURE(`genericstable', `dbm /etc/mail/genericstable')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl
And you will need to create /etc/mail/genericstable which is like /etc/mail/virtusertable above except the columns are reversed:
jschmoe joe@yourdomain.com
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 01:28 AM
03-31-2005 01:28 AM
Re: Regarding mailx from HP-UX system
backup your sendmail.cf:
cd /etc/mail
cp - sendmail.cf sendmail.cf.bak
Create new sendmail.cf
/usr/contrib/sendmail/usr/newconfig/etc/mail/cf/cf/gen_cf
select generics table option
cp sendmail.cf.gen sendmail.cf
Create the genericstable(whitespace is TAB)
root you@yourdoamin.com
makemap dbm genericstable
Make any other changes to sendmail.cf that you need - like DM or DS
Restart sendmail...if needed...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 04:32 AM
03-31-2005 04:32 AM
Re: Regarding mailx from HP-UX system
On your "from" question, see attached examples of using mailx.
Looks as though all else has been sufficiently answered.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2005 01:23 AM
04-01-2005 01:23 AM
Re: Regarding mailx from HP-UX system
Easy:
cat filename | mailx -s "Heading_goes_here" -r name_of_return_address@domain.name name(s)_of_recipients
Example:
cat /etc/hosts | mailx -s "Hosts file" -r me@mydomain.com me@mydomain.com otherperson@mydomain.com
would create and email that appears to come from me@mydomain.com (that's if your mailserver for the domain to which you belong, allows relaying)
David.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2005 01:25 AM
04-01-2005 01:25 AM
Re: Regarding mailx from HP-UX system
Did any of the above help/solve your issue?
If yes, then please assign points and close this thread - if no, then let us know in case you need more assistance...
Thanks...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2005 01:59 AM
04-01-2005 01:59 AM
Re: Regarding mailx from HP-UX system
well, think this much help should get me through .. will confirm the same asap and assign points as well.
thanks again.
best,
prakalp.