- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mails sent to local mail addresses doesn't wor...
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
10-04-2005 10:42 PM
10-04-2005 10:42 PM
I can't send mails to local addresses using an simple script.
- OS: HP-UX 11.11
- Server name: neftis.santpau.es
- Mail addresses: operacio@santpau.es or operacio@hsp.santpau.es
- Command to send mail from my script:
mailx -s DIARI_NEFTIS operacio@hsp.santpau.es < $FITXER_DADES
- Error message we got after every try:
[Attach #1: ""]
[Type: text/plain, Encoding: 7bit, Size: 310]
from root@localhost
from root@localhost
from root@localhost
from root@localhost
----- The following addresses had permanent fatal errors -----
operacio@hsp.santpau.es
----- Transcript of session follows -----
550 operacio@hsp.santpau.es... Host unknown (Name server: hsp.santpau.es: host not found)
[Attach #2: ""]
[Type: message/delivery-status, Encoding: 7bit, Size: 262]
Reporting-MTA: dns; neftis.santpau.es
Arrival-Date: Wed, 5 Oct 2005 12:17:21 +0200 (METDST)
Final-Recipient: RFC822; operacio@hsp.santpau.es
Action: failed
Status: 5.1.2
Remote-MTA: DNS; hsp.santpau.es
Last-Attempt-Date: Wed, 5 Oct 2005 12:17:21 +0200 (METDST)
[Attach #3: ""]
[Type: message/rfc822, Encoding: 7bit, Size: 6063]
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2005 10:46 PM
10-04-2005 10:46 PM
Re: Mails sent to local mail addresses doesn't work
Is it resolving?
Else put related entries in /etc/hosts file and try now.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2005 10:47 PM
10-04-2005 10:47 PM
Re: Mails sent to local mail addresses doesn't work
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2005 10:56 PM
10-04-2005 10:56 PM
Re: Mails sent to local mail addresses doesn't work
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2005 11:10 PM
10-04-2005 11:10 PM
Re: Mails sent to local mail addresses doesn't work
Here you're ping and nslookup results:
# ping hps.santpau.es
ping: unknown host hps.santpau.es
# nslookup hsp.santpau.es
Name Server: heidi.santpau.es
Address: 193.146.12.2
Trying DNS
Trying NIS
looking up FILES
*** No address information is available for "hsp.santpau.es"
#
Regards,
Carles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2005 11:12 PM
10-04-2005 11:12 PM
Re: Mails sent to local mail addresses doesn't work
Go to your machine and edit /etc/hosts file as,
vi /etc/hosts
and add,
save it.
Do as,
# ping hsp.santpau.es
# nslookup hsp.santpau.es
Is it resolving now.
If it is success then you can able to send mail.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2005 11:12 PM
10-04-2005 11:12 PM
Re: Mails sent to local mail addresses doesn't work
Note that hsp.santpau.es and santpau.es are domains instead systems.
Mail server name is zurich and I can ping it from neftis:
# nslookup zurich
Name Server: heidi.santpau.es
Address: 193.146.12.2
Trying DNS
Name: zurich.santpau.es
Addresses: 172.17.0.5, 172.17.0.61
# ping zurich.santpau.es
PING zurich.santpau.es: 64 byte packets
64 bytes from 172.17.0.61: icmp_seq=0. time=0. ms
64 bytes from 172.17.0.61: icmp_seq=1. time=0. ms
64 bytes from 172.17.0.61: icmp_seq=2. time=0. ms
----zurich.santpau.es PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
#
Regards,
Carles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2005 11:14 PM
10-04-2005 11:14 PM
Re: Mails sent to local mail addresses doesn't work
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2005 11:16 PM
10-04-2005 11:16 PM
Re: Mails sent to local mail addresses doesn't work
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2005 12:02 AM
10-05-2005 12:02 AM
Re: Mails sent to local mail addresses doesn't work
Here you're resolv.conf file:
# more /etc/resolv.conf
domain santpau.es
nameserver 193.146.12.2
nameserver 193.146.12.3
nameserver 193.146.12.4
#
Just 2 comments:
1. Can I add a 2nd domain on resolv.conf?
2. I checked configuration on other system from same domain and resolv.conf file is exactly the same, so I don't believe this is the cause.
Regards,
Carles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2005 12:10 AM
10-05-2005 12:10 AM
Re: Mails sent to local mail addresses doesn't work
search hsp.santpau.es
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2005 12:14 AM
10-05-2005 12:14 AM
Re: Mails sent to local mail addresses doesn't work
search santpau.es hsp.santpau.es
remove domain line.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2005 12:25 AM
10-05-2005 12:25 AM
Re: Mails sent to local mail addresses doesn't work
I changed /etc/resolv.conf as you told but it still fails.
Any idea?
Regards,
Carles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2005 01:53 AM
10-05-2005 01:53 AM
Solutione.g. hsp.santpau.es
either has to look up in DNS as an A record or an MX record.
So one of the two of these needs to return a numerical address:
$nslookup hsp.santpau.es
or
$nslookup
set type=mx
hsp.santpau.es
=========================================
$ nslookup hsp.santpau.es
Name Server: A.B.C.D
Address: 1.2.3.4
Trying DNS
Non-authoritative answer:
Name: hsp.santpau.es
Address: 193.146.15.209
$ nslookup
Default Name Server: A.B.C.D
Address: 1.2.3.4
> set type=mx
> hsp.santpau.es
Name Server: A.B.C.D
Address: 1.2.3.4
Trying DNS
Non-authoritative answer:
hsp.santpau.es preference = 10, mail exchanger = teseo.santpau.es
Authoritative answers can be found from:
santpau.es nameserver = chico.rediris.es
santpau.es nameserver = teseo.santpau.es
santpau.es nameserver = teseo2.santpau.es
santpau.es nameserver = sun.rediris.es
teseo2.santpau.es internet address = 193.146.15.221
==========================================
Since both tests return a numerical address, sendmail will default to the MX. Thus mail destined for hsp.santpau.es should get delivered to teseo.santpau.es.
Sounds like you've either got a lookup problem (run the test I gave you), or someone has modified sendmail.cf to affect the local delivery of mail, and the configuration is incomplete.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2005 10:44 PM
10-06-2005 10:44 PM
Re: Mails sent to local mail addresses doesn't work
Here you're nslookup results:
# nslookup
Default Name Server: heidi.santpau.es
Address: 193.146.12.2
> set type=mx
> hsp.santpau.es
Name Server: heidi.santpau.es
Address: 193.146.12.2
Trying DNS
Trying NIS
looking up FILES
*** No address information is available for "hsp.santpau.es"
> exit
# nslookup hsp.santpau.es
Name Server: heidi.santpau.es
Address: 193.146.12.2
Trying DNS
Trying NIS
looking up FILES
*** No address information is available for "hsp.santpau.es"
#
Note that, as I already said before, I want to send mail from system to operacio@santpau.es but system can't.
Thanks in advance for your help!
Carles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2005 11:22 PM
10-06-2005 11:22 PM
Re: Mails sent to local mail addresses doesn't work
# nslookup santpau.es
I hope you are using setup only as,
# more /etc/resolv.conf
domain santpau.es
nameserver 193.146.12.2
nameserver 193.146.12.3
nameserver 193.146.12.4
#
Try as,
# /etc/resolv.conf
domain santpau.es
search hsp.santpau.es
nameserver 193.146.12.2
nameserver 193.146.12.3
nameserver 193.146.12.4
#
You have to configure hsp.santpau.es ip-address as santpau.es in /etc/hosts or register with dns.
hsp.santpau.es has to be resolved with ping / nslookup so that you can able to sendmail (s).
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2005 11:07 PM
10-23-2005 11:07 PM
Re: Mails sent to local mail addresses doesn't work
Thanks to all for your messages.