- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mailx
Categories
Company
Local Language
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
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
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
09-22-2000 11:15 AM
09-22-2000 11:15 AM
mailx
/etc/mail/aliases:
# Local aliases
pldybatdis : ":include:/usr/local/lib/pldybatdis.list"
/usr/local/lib/pldybatdis.list
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
When using the following mailx command we receive an error in /var/adm/syslog/mail.log and user [email protected] does not receive the message.
mailx -r [email protected] -s TEST-RELAY2 pldybatdis < /tmp/test
/var/adm/syslog/mail.log
Sep 22 13:48:17 rga6 sendmail[8369]: NAA08367: [email protected], delay=00:
00:05, xdelay=00:00:05, mailer=smtp, relay=mail.rgare.com. [10.10.10.143], stat=
Sent (OK)
Sep 22 13:48:45 rga6 sendmail[8374]: gethostbyaddr(10.10.1.72) failed: 1
Sep 22 13:48:45 rga6 sendmail[8374]: NAA08374: [email protected], size=143,
class=0, pri=60143, nrcpts=2, msgid=<[email protected]>, rela
y=root@localhost
Is there any way to allow [email protected] recipient to receive the message and also be the return address?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2000 11:44 AM
09-22-2000 11:44 AM
Re: mailx
To setup your return addres to be whatever you want you need to setup an /etc/mail/userdb file. See the following replies on how to do this;
http://forums.itrc.hp.com:80/cm/QuestionAnswer/1,1150,0xaaf16c96588ad4118fef0090279cd0f9,00.html
As for your gethost error in syslog, you need to resolve why the ip address listed cant be looked up. ie. if you do an nslookup 10.10.1.72 why doesnt it work ? either on your server or you mail relay server. Either way smtp is trying to contact this address, unsuccessfully. You need to get nslookup working for it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2000 12:40 PM
09-22-2000 12:40 PM
Re: mailx
A couple of things you might like to fix:
1. after adding the alias, you should do a
# newaliases
2. To fix the gethostbyaddr(10.10.1.72) failure, you might want to do the following.
a) in your /etc/nsswitch.conf the line should read:
hosts: files [NOTFOUND=continue] dns
b) include the IP address and host name combination (including FQDN) in the /etc/hosts file for your host 10.10.1.72 (unless it is listed in DNS)
3. Make sure that the directory where your alias:include resides is not "world writeable" if it is, move it to the /etc/mail directory (which isn't) Sendmail is very picky about not allowing world writeable directories to be used to store alias:include
(if you do remember to edit the /etc/mail/aliases and run newaliases)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2000 01:35 PM
09-22-2000 01:35 PM
Re: mailx
so your include file should be:
/usr/local/lib/pldybatdis.list
\[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
let's know how it goes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2000 04:30 AM
09-24-2000 04:30 AM
Re: mailx
as follows:Use the 'DM' masquerade in /etc/mail/sendmail.cf - eg. DMfoo.com
and also DS(NTserver)
Make sure the internet services are running.
Run Newaliases and /sbin/init.d/sendmail (stop/start) and .forward in the users $HOME
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2000 04:57 AM
09-25-2000 04:57 AM
Re: mailx
In the sendmail.cf file uncomment the following line:
#O MeToo
and stop and start sendmail.
Greetz Danny.