Operating System - HP-UX
1838613 Members
4705 Online
110128 Solutions
New Discussion

Re: Email not being sent locally, but being sent globally

 

Email not being sent locally, but being sent globally

I am running hp-ux 11.0 on a RP5470, I am trying to send emails to people inside of network. When i do sent them emails They dont receive them, I can send to external places yahoo, hotmail etc etc. I am looking for any ideas, thoughts, or hints as to what might be wrong.
Thanks in advance.
Just another HPUX Admin
4 REPLIES 4
Graham Cameron_1
Honored Contributor

Re: Email not being sent locally, but being sent globally

Well they must be going somewhere.
Can you look at the mail log file, usually in /var/adm/syslog/mail.log, and the system log, in /var/adm/syslog/syslog.log.

I expect you will find some pointers there.

Does the "mailq" command show anything ?

-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
Thayanidhi
Honored Contributor

Re: Email not being sent locally, but being sent globally

Hi,
When you send mails internally what's error
logged /var/adm/syslog/mail.log ?

Possibly sendmail.cf Dj macro to be set correctly.

Revert with
/etc/mail/sendmail.cf
/etc/mail/sendmail.cw
/etc/mail/service.switch

/etc/resolv.conf
/etc/nsswitch.conf

/var/adm/syslog/mail.log

TT

Attitude (not aptitude) determines altitude.
jerry1
Super Advisor

Re: Email not being sent locally, but being sent globally

To see where they are going:

/usr/lib/sendmail -v
test
^d - yes, this is Control d to send.

If local delivery due to local accounts
they will be in /var/mail/.

If you are running NIS and have an NIS
aliases map or even local /etc/mail/aliases
then the sendmail test above will show you
the aliased to address.

You also have to check /etc/mail/sendmail.cf
for the line:

DS

Which is the smart relay. Your emails may
be getting routed to another system in the
network that is either delivering them
to the wrong system or /dev/null.
The test above will also show which system
it is connecting to and other useful info.






Jordan Bean
Honored Contributor

Re: Email not being sent locally, but being sent globally

Use these tests to see how sendmail is configured, to where it is sending mail, and how it choses a mailer:

sendmail -d0 -bv user@domain

sendmail -bt
/parse user@domain
^D

Set LogLevel=13 in /etc/mail/sendmail.cf so sendmail will tell you everything you need to know in /var/adm/syslog/mail.log (or whereever syslogd is sending LOG_MAIL). Do not set LogLevel any higher or sendmail will generate debug notes to LOG_DEBUG that only a developer would understand.

If your domain has MX records defined in private DNS, you could set the Smart Host to just the domain name (DS$m) and let the MX hosts deal with all the outbound traffic.

If your server is not intended to be a mail relay or repository, you should also set DH$m, DR$m, and DM$m, forcing the MX hosts deal with ALL mail.