[SunHELP] issues with sending external mail via Sendmail..?

Matt Lemsing sunhelp at sunhelp.org
Sun Sep 23 20:53:03 CDT 2001


Hi all,

I am having some trouble getting my sendmail to send external emails.
Looking at the error report below, the successful mail sends to internal
recipients who have the correct relay set to mail.resmed.com.au, but it is
seeing all external recipients as having a different relay. Is there a
seperate setting within my mail servers config that needs to be set for
external recipients to use the same relay as internal addresses?

I have attached my /var/log/syslog snippets below as well as my sendmail
config...

ALSO

as you wil se below, my /etc/mail directory has 2 copies of each file but
names differently. For example....

/etc/mail directory
**********************
# ls -al
total 252
drwxr-xr-x   2 root     mail         512 May 31 23:43 .
drwxr-xr-x  29 root     sys         3072 Sep 23 18:47 ..
-rw-r--r--   1 root     bin         1201 Aug 28  2000 aliases
-rw-r--r--   1 root     root           0 Aug 28  2000 aliases.dir
-rw-r--r--   1 root     root        1024 Aug 28  2000 aliases.pag
-rw-r--r--   1 bin      bin          153 Aug 28  2000 Mail.rc
-rw-r--r--   1 bin      bin         1829 Aug 28  2000 mailx.rc
-r--r--r--   1 bin      bin        11973 Aug 28  2000 main.cf
-rwxr-xr-x   1 root     other      26874 Jun 11 21:34 main.cf.new
-r--r--r--   1 bin      bin        24715 Jul 10 20:40 sendmail.cf
-r--r--r--   1 root     other       9295 May 31 23:43 sendmail.cf.old
-rw-r--r--   1 root     bin         4911 May 24 19:52 sendmail.hf
-rw-r--r--   1 root     root          32 Sep 23 18:47 sendmail.pid
-r--r--r--   1 bin      bin         9197 Aug 28  2000 subsidiary.cf
-rwxr-xr-x   1 root     other      27187 Jun 11 21:36 subsidiary.cf.new
# 
*****************************
I think this duplication came from when i upgraded to the latest version of
solaris....so my question is, which ones are correct and what ones can i do
away with..?


any help would be much appreciated.

/var/log/syslog snippets
************************************
				Sep 24 02:09:09 meshak sendmail[13277]:
CAA13274: to=dbasupp at resmed.com.au, ctladdr=root (0/1), delay=00:00:05,
xdelay=00:00:05, mailer
=esmtp, relay=mail.resmed.com.au. [172.16.2.141], stat=Sent (OK)

However, the mail sends to external recipients does not seem to be using the
same relay method. 

				Sep 21 16:59:04 meshak sendmail[25602]:
QAA25600: to=labhardt at datacomm.ch, ctladdr=txuser (200/200), delay=00:00:00,
xdelay=00:00:00, m
				ailer=esmtp, relay=datacomm.ch, stat=Host
unknown (Name server: datacomm.ch: host not found)
				Sep 21 16:59:04 meshak sendmail[25602]:
QAA25600: QAA25602: DSN: Host unknown (Name server: datacomm.ch: host not
found)
				Sep 21 16:59:04 meshak sendmail[25602]:
QAA25602: to=txuser, delay=00:00:00, xdelay=00:00:00, mailer=local,
stat=Sent
				Sep 21 17:07:13 meshak sendmail[25849]:
RAA25849: from=txuser, size=630, class=0, pri=30630, nrcpts=1,
msgid=<200109210707.RAA25849 at mes
hak.resmed.com.au>, relay=root at localhost

*********************************

/etc/mail/sendmail.cf
*******************************************
"sendmail.cf" [Read only] 880 lines, 24715 characters 
######################################################################
######################################################################
#####
#####       SENDMAIL CONFIGURATION FILE
#####
######################################################################
######################################################################

# level 7 config file format
V7/Sun

##################
#   local info   #
##################

Cwlocalhost
# file containing names of hosts for which we receive email
Fw-o /etc/mail/sendmail.cw

# my official domain name
# ... define this only if sendmail cannot automatically determine your
domain
#Dj$w
Dm resmed.com.au


CP.

# "Smart" relay host (may be null)
#DSmail.$m
DRmail
CRmail
DFmail



# place to which unknown users should be forwarded
#Kuser user -m -a<>
#DLname_of_luser_relay

# operators that cannot be in local usernames (i.e., network indicators)
CO @ % !

# a class with just dot (for identifying canonical names)
C..

# a class with just a left bracket (for identifying domain literals)
C[[

# Mailer table (overriding domains)
#Kmailertable dbm /etc/mailertable

# Domain table (adding domains)
#Kdomaintable dbm /etc/domaintable

# Generics table (mapping outgoing addresses)
#Kgenerics dbm /etc/genericstable

# Virtual user table (maps incoming users)
#Kvirtuser dbm /etc/virtusertable

# who I send unqualified names to (null means deliver locally)
DR

# who gets all local email traffic ($R has precedence for unqualified names)
DH

# dequoting map
Kdequote dequote

# class E: names that should be exposed as from this host, even if we
masquerade
# class L: names that should be delivered locally, even if we have a relay
# class M: domains that should be converted to $M
#CL root
CE root

# who I masquerade as (null for no masquerading) (see also $=M)
DM

# my name for error messages
DnMAILER-DAEMON


CPREDIRECT

# Configuration version number
DZ8.8.8
********************************************

cheers,


Matt Lemsing
eBusiness Technical Manager

ResMed Corporation
97 Waterloo Rd, North Ryde, 
New South Wales, 2113 Australia.
Tel: +61 2 9886 5554 Fax: +61 2 9878 6815




More information about the SunHELP mailing list