- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Send email from HP-UX
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
06-28-2005 03:26 AM
06-28-2005 03:26 AM
Send email from HP-UX
I'm trying to send a file from a HP-UX 11.1 server to an email account. I run:
mailx -s "test" user@company.com < file
but nothing happens. I have been researching on man for mailx and on several web pages but I didn´t find the solution. Could anybody help me?
Thanks and regards
Teo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2005 03:29 AM
06-28-2005 03:29 AM
Re: Send email from HP-UX
Has this system ever sent email to an outside address?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2005 03:32 AM
06-28-2005 03:32 AM
Re: Send email from HP-UX
uuencode file file.txt |mailx -m -s "Heading for email" user@company.com
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2005 03:33 AM
06-28-2005 03:33 AM
Re: Send email from HP-UX
Could you post the result of next command.
# grep DS /etc/mail/sendmail.cf
DSwebmail.$m
In my case the webmail is an internal windows mailserver.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2005 04:12 AM
06-28-2005 04:12 AM
Re: Send email from HP-UX
# Relay all non-local mail to the "Smart" relay host (DS) via smtp: #
# to a smart relay via SMTP just set macro S (DS) to the name of the #
# Relay all non-local mail to the "Smart" relay host (DS) via UUCP: #
# make two chnages to this file. First, set macro S (DS) to the name #
DS
# noreceipts Don't return success DSN's
Thak y
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2005 04:37 AM
06-28-2005 04:37 AM
Re: Send email from HP-UX
What is the name or IP address of the system that handles the email for your location?
Example;
Is it an Exchange server? What is the Exchange server's name/IP? Use this name in the DS setting in the sendmail.cf file. Ensure the Exchange server will accept relay mail coming from your internal systems.
Is the sendmail process on HPUX configured to run? Check /etc/rc.config.d/mailsvrs:export SENDMAIL_SERVERS=1 Must be 1 to run the mail daemon.
Start the process with /sbin/init.d/sendmail start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2005 05:45 AM
06-28-2005 05:45 AM
Re: Send email from HP-UX
In order to sendmail - you do need DNS functioning...a smart relay can help - for central email forwarding...
Try this:
nslookup -q=MX company.com
Does that work?
if yes - telnet to port 25:
telnet server.company.com 25
does that work?
Rgds,....Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2005 05:58 AM
06-28-2005 05:58 AM
Re: Send email from HP-UX
That is what I did recently to get mail running on my test system here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2005 06:03 AM
06-28-2005 06:03 AM
Re: Send email from HP-UX
mailq
You'll probably see the messages waiting to be sent. To see the reason for the failure, use the command:
tail /var/adm/syslog/mail.log
Once configured, you can trace the mail processing with:
/usr/sbin/sendmail -v -s "test msg" name@someplace.com < /etc/issue
As mentioned, you need a working DNS server that can resolve the remote destination using MX records (see man nslookup) or let your email relay host handle all of it.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2005 07:03 PM
06-28-2005 07:03 PM
Re: Send email from HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2005 08:14 PM
06-28-2005 08:14 PM
Re: Send email from HP-UX
Thank you everyone for your help.