- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sendmail going to internal but not internet addres...
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
11-25-2003 01:01 PM
11-25-2003 01:01 PM
sendmail going to internal but not internet addresses
Sample 1
Nov 25 17:28:24 myserver sendmail[26265]: RAA26265: from=root, size=194, class=0, pri=30194, nrcpts=1, msgid=<200311260128.RAA26265@myserver.mydomain.com>, rela
y=root@localhost
Nov 25 17:28:24 myserver sendmail[26267]: RAA26265: to=garrett.gross@uboc.com, ctladdr=root (0/3), delay=00:00:00, xdelay=00:00:00, mailer=relay, relay=stmpserver.mydomain.com. [10.150.169.230], stat=Sent (Message accepted for delivery)
Sample 2
ov 25 17:03:03 myserver sendmail[23890]: starting daemon (8.9.3 (PHNE_18546)): SMTP+queueing@00:30:00
Nov 25 17:03:14 myserver sendmail[23933]: RAA23933: from=root, size=197, class=0, pri=30197, nrcpts=1, msgid=<200311260103.RAA23933@myserver.myserver.uboc.CO
M>, relay=root@localhost
Nov 25 17:03:14 myserver sendmail[23933]: RAA23933: to=garrett.gross@netzero.com, delay=00:00:00, mailer=uucp, stat=queued
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 02:07 PM
11-25-2003 02:07 PM
Re: sendmail going to internal but not internet addresses
A brief description of the different mailers...
http://www.sendmail.org/m4/mailers.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 07:35 PM
11-25-2003 07:35 PM
Re: sendmail going to internal but not internet addresses
Sendmail needs to get an address even when it won't connect directly to the receiver but use the relay.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 10:28 PM
11-25-2003 10:28 PM
Re: sendmail going to internal but not internet addresses
Have your checked your sendmail configuration settings (ie. your /etc/mail/sendmail.cf file)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 10:43 PM
11-25-2003 10:43 PM
Re: sendmail going to internal but not internet addresses
An obvious question, but have you checked the log file /var/adm/syslog/mail.log
This is a good place to start given that you may have made cheanges to your mail config files and restarted your sendmail daemon/process.
Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2003 02:49 AM
11-26-2003 02:49 AM
Re: sendmail going to internal but not internet addresses
I know I can get to netzero.com through the smtp server because the sendmail -bv works. # sendmail -bv garrett.gross@netzero.com
garrett.gross@netzero.com... deliverable: mailer relay, host smtpserver.mydomain.com, user garrett.gross@netzero.com
#
I have modified the /etc/mail/sendmail.cf file a number of different ways and nothing has helped.
The samples I included were from the /var/adm/mail/mail.log. I just changed the server name and domain name for this thread.
I'll let everyone know if Jim's idea works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2003 06:49 AM
11-26-2003 06:49 AM
Re: sendmail going to internal but not internet addresses
> hash /etc/mail/mailertable
/sbin/sh: /etc/mail/mailertable: This is not an identifier.
I modified the sendmail.cf to to use the /etc/mail/mailertable:
# Mailer table (overriding domains)
Kmailertable dbm /etc/mail/mailertable
????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2003 07:05 AM
11-26-2003 07:05 AM
Re: sendmail going to internal but not internet addresses
Second, check your sendmail.cf file. Are either the DX or DW variables set? If yes, try unsetting them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2003 07:28 AM
11-26-2003 07:28 AM
Re: sendmail going to internal but not internet addresses
The default sendmail.cf file will have the following entry...
# class U: known direct UUCP connections
FU-o /etc/mail/uucp-hosts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2003 08:43 AM
11-26-2003 08:43 AM
Re: sendmail going to internal but not internet addresses
I did have both the DX and DW uncommented. I unset those (one each and both together) and it didn't make a difference.
I don' have any /etc/mail/uucp-hosts file and do have the DU option set.
I might as well try to open an HP ticket and see if they have any ideas. I'm sure it's just one little thing I don't have right.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2003 11:51 AM
11-26-2003 11:51 AM
Re: sendmail going to internal but not internet addresses
I'd make a backup of all the sendmail config files first, but this will get you a clean .cf file to mess with.
Good luck!
Seth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2003 12:13 PM
11-26-2003 12:13 PM
Re: sendmail going to internal but not internet addresses
I opened a tick with HP and spent an hour going through configurations. It seems like the determining factor was having dns as an option in my nsswitch.conf. If I remove dns (i.e. hosts: files), it works. If I have both dns and files (i.e. hosts: files [NOTFOUND=continue] dns [NOTFOUND=return] files) in any order it doesn't work. The /etc/mail/services.switch is set to not even use dns (i.e. hosts files) which makes it really strange. I may have to call them back. I thought I had DNS lookup working before I got off the phone with them, but now I see it doesn't work. I just proved my theory on another server. It works like that (no dns in nsswitch.conf) as long as I have the relay server in my host file. ???? Whats up with that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2003 09:20 PM
11-26-2003 09:20 PM
Re: sendmail going to internal but not internet addresses
It is very well possible, to use both DNS and /etc/hosts together on your hp-ux box(es).
/etc/mail/service.switch was only used with sendmail 8.7.x. Now, it is there just for backward compatibility. The file used for host lookup is, /etc/nsswitch.conf.
Next to that,
A) is this for one single hp-ux box, or for a small 'forrest';
B) what are the mailing needs for the hp-ux hosts:
a) incomming mail;
b) outgoing destinations:
1) local users
2) central mail system accounts
3) internet accounts
some one suggested to start with a clean slate. Very good idea. make a copy of /etc/mail/* (tar gzip whaterver you prefer). The minimum one needs in /etc/mail/ are sendmail.cf, sendmail.cw and aliases[.*]
Default information can be found down the /usr/newconfig/etc/mail tree.
sendmail.cw; should contain hostname, localhost, Full Qualified Domain Name (FQDN)
localhost
myserver
myserver.mydomain.com
sendmail.cf; gen_cf yourself a fresh one.
make a few changes using your favourite editor:
DSsmtpserver.mydomain.com
DS will make sure, that if this host cannot resolve the destination host, it will pass the message on to smtpserver, who will (we trust) be able to deliver the message, or pass it on.
perhaps you want to hide your local host(s). use masquerading for that:
DMmydomain.com
Something else to consider with regards to masquerading, when sending to the internet, a lot of companies have configured their incomming mail gateways, to do a so-called reverse lookup. They want to make sure the sending system can be reached, if the mail turnsout to be undeliverable. So, your return address must be valid, since it will be checked (most of the times). This means myserver.mydomain.com must be resolvable from the internet, if you do not masquerade. If you decide to masquerade, please think ahead, so that mail from me@myserver.mydomain.com will be transformed to me@mydomain.com. If someone replies to that, it would be nice that 'me' would receive this reply. If me@mydomain.com does not exist, but the person does have another account on the main mailserver: my.full.name@mydomain.com, you better translate this when sending a message on the hp-ux box, so the message can be replied to. Since this is a next step, I would like to wait with explaining this until you can send where you want.
the line in /etc/nsswitch.conf should read something like:
hosts: files dns
the place where dns is put, is irrelevant. HP's implementation of sendmail, will attempt to resolve using DNS first, no matter where it is mentioned in the hosts line. There are samples for nsswitch.conf in /etc, /etc/nsswitch.*
With these settings, you should be able to get going. If mail is refused/queued, please share the entries from /var/adm/syslog/mail.log, as well as what mailer you use. (I find it odd, that UUCP was attempted..)
Hope this helps
Kasper
HP sendmail, OpenMail, OVO-u support engineer