GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- elm or mailx
Operating System - HP-UX
1844088
Members
2586
Online
110227
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-10-2003 07:40 PM
11-10-2003 07:40 PM
elm or mailx
When I executed the elm command to email a text file I did not get any error but neither did I receive the file in my email id. Exchange server ip is already defined in /etc/hosts. OS is 11i and this is a new RP2470 server.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2003 08:00 PM
11-10-2003 08:00 PM
Re: elm or mailx
you can send an attachment with mailx as shown below:
# uuencode |mailx -m -s "subject" Email_address
for mailx/sendmail to work, you need to make sure you have configured sendmail properly.
Things to check for sendmail configuration:
(1) check sendmail version
# what /usr/sbin/sendmail | grep version
eg output:
version.c 8.11.1 (Berkeley) - (Revision 1.5+JAGae91741) - 2003/09/19
eg above is sendmail version 8.11.1
(2) check whether port 25 is accepting connection:
# ps -ef | grep sendmail
eg output:
root 1367 1 0 Nov 1 ? 4:34 sendmail: accepting connections
(3)check on /etc/mail/sendmail.cf
make sure you have proper entry for:
(a) DS
eg: DSsmtp.abc.com
(b) Dj.
eg: Dj.abc.com OR Dj. --> end with a . (dot)
(4) check on /etc/mail/sendmail.cw
look at last entry, make sure you have entry such as below:
localhost
.
eg:
localhost
testmail
testmail.abc.com
(5) check connectivity:
make sure you can create a connection to mailserver by nslookup/ping:
# ping
# nslookup
--> if the two commands above display proper output, No error, then we should be able to use sendmail/mailx.
(6)restart sendmail
# /sbin/init.d/sendmail stop
# /sbin/init.d/sendmail start
(7) test
# sendmail -v root
test root
. ---------> end with a dot
# sendmail -v
test emailaddress
.
Try the above and hopefully it works
# uuencode
for mailx/sendmail to work, you need to make sure you have configured sendmail properly.
Things to check for sendmail configuration:
(1) check sendmail version
# what /usr/sbin/sendmail | grep version
eg output:
version.c 8.11.1 (Berkeley) - (Revision 1.5+JAGae91741) - 2003/09/19
eg above is sendmail version 8.11.1
(2) check whether port 25 is accepting connection:
# ps -ef | grep sendmail
eg output:
root 1367 1 0 Nov 1 ? 4:34 sendmail: accepting connections
(3)check on /etc/mail/sendmail.cf
make sure you have proper entry for:
(a) DS
eg: DSsmtp.abc.com
(b) Dj.
eg: Dj.abc.com OR Dj. --> end with a . (dot)
(4) check on /etc/mail/sendmail.cw
look at last entry, make sure you have entry such as below:
localhost
eg:
localhost
testmail
testmail.abc.com
(5) check connectivity:
make sure you can create a connection to mailserver by nslookup/ping:
# ping
# nslookup
--> if the two commands above display proper output, No error, then we should be able to use sendmail/mailx.
(6)restart sendmail
# /sbin/init.d/sendmail stop
# /sbin/init.d/sendmail start
(7) test
# sendmail -v root
test root
. ---------> end with a dot
# sendmail -v
test emailaddress
.
Try the above and hopefully it works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2003 09:19 PM
11-10-2003 09:19 PM
Re: elm or mailx
if the exchange server is in the sendmail.cf file as a relay host(DS) you need to do one thing after restarting sendmail.
Fill in a fake IP adress for your domain that you like to send to. On HP-UX it want to resolv the domain-name.
just add an entry like:
1.1.1.1 yourdomain.com
Then using elm or mailx the email should be delivered in your mailbox.
Fill in a fake IP adress for your domain that you like to send to. On HP-UX it want to resolv the domain-name.
just add an entry like:
1.1.1.1 yourdomain.com
Then using elm or mailx the email should be delivered in your mailbox.
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