1830930 Members
2371 Online
110017 Solutions
New Discussion

Configuring sendmail

 
Muda Ikhsan_1
Frequent Advisor

Configuring sendmail

Hi.. i'm trying to configure sendmail for my HP-UX 11.0 system..
in the log i swa a lot of messages :
Jan 6 10:44:23 sapqa sendmail[5310]: unable to qualify my own domain name (sapqa) -- using shor
t name
Jan 6 10:44:23 sapqa sendmail[5310]: be sure to set domain name in Dj macro in sendmail.cf
Jan 6 10:44:23 sapqa sendmail[5310]: KAA05310: to=stop, delay=00:00:00, mailer=local, stat=User
unknown
Jan 6 10:45:20 sapqa sendmail[5379]: unable to qualify my own domain name (sapqa) -- using shor
t name
Jan 6 10:45:20 sapqa sendmail[5379]: be sure to set domain name in Dj macro in sendmail.cf
Jan 6 10:46:01 sapqa sendmail[5433]: unable to qualify my own domain name (sapqa) -- using shor
t name
Jan 6 10:46:01 sapqa sendmail[5433]: be sure to set domain name in Dj macro in sendmail.cf
Jan 6 10:46:01 sapqa sendmail[5433]: KAA05433: to=stop, delay=00:00:00, mailer=local, stat=User
unknown
Jan 6 10:46:26 sapqa sendmail[5460]: unable to qualify my own domain name (sapqa) -- using shor
t name
Jan 6 10:46:26 sapqa sendmail[5460]: be sure to set domain name in Dj macro in sendmail.cf
Jan 6 10:50:02 sapqa sendmail[5739]: unable to qualify my own domain name (sapqa) -- using shor
t name
Jan 6 10:50:02 sapqa sendmail[5739]: be sure to set domain name in Dj macro in sendmail.cf
Jan 6 10:50:02 sapqa sendmail[5739]: KAA05739: forward /home/informix/.forward.sapqa: World wri
table directory
Jan 6 10:50:02 sapqa sendmail[5739]: KAA05739: forward /home/informix/.forward: World writable
directory
Jan 6 10:50:02 sapqa sendmail[5739]: KAA05739: from=root, size=263, class=0, pri=30263, nrcpts=
1, msgid=<200401060250.KAA05739@sapqa>, relay=root@localhost
Jan 6 10:50:02 sapqa sendmail[5741]: KAA05739: forward /home/informix/.forward.sapqa: World wri
table directory
Jan 6 10:50:02 sapqa sendmail[5741]: KAA05739: forward /home/informix/.forward: World writable
directory
Jan 6 10:50:02 sapqa sendmail[5741]: KAA05739: to=informix, ctladdr=root (0/3), delay=00:00:00,
xdelay=00:00:00, mailer=local, stat=Sent

because i'm new at this sendmail.. could somebody help me..
Thank you
11 REPLIES 11
Michael Tully
Honored Contributor

Re: Configuring sendmail

Have you already set the 'Dj' macro in the /etc/mail/sendmail.cf file.
If not, how have you set up your DNS?

Do you have a /etc/resolv.conf file?
contents
domain mydomain.com
nameserver 10.10.10.10
nameserver 10.20.20.20

Do you have a /etc/nsswitch.conf file?
if so what are the contents?

Also what are the permissions to /home/informix
and
/home/informix/.forward
There is a security problem with the file/and or directory permissions.
Anyone for a Mutiny ?
Muda Ikhsan_1
Frequent Advisor

Re: Configuring sendmail

i set the DJ MAcro with our domain. and we don't have any of the files.
-rw-r--r-- 1 root sys 4921 Mar 20 2000 #ntp.conf
-rw-r--r-- 1 root sys 600 Dec 13 2001 #pam_user.conf
-r--r--r-- 1 root bin 1559 Jan 28 1999 envd.conf
-r--r--r-- 1 bin bin 327 Oct 27 1997 gated.conf
-rw-r--r-- 1 root sys 5223 Feb 18 2003 inetd.conf
-r--r--r-- 1 root sys 15 Oct 27 1997 inetsvcs.conf
-r--r--r-- 1 bin bin 1006 Jun 7 1996 mrouted.conf
-rw-r--r-- 1 bin bin 0 Nov 9 2001 nettlgen.conf
-rw-r--r-- 1 root sys 4943 Oct 17 2001 ntp.conf
-rw-r--r-- 1 root root 8950 Nov 9 2001 oldnettlgen.conf
-r--r--r-- 1 root sys 1388 Nov 16 2001 pam.conf
-r--r--r-- 1 root sys 600 Dec 13 2001 pam_user.conf
-rw-r--r-- 1 root sys 7 Aug 10 10:43 pdclientd.conf
-r--r--r-- 1 bin bin 677 Nov 6 1997 rarpd.conf
lrwxr-xr-x 1 root sys 27 Oct 17 2001 snmpd.conf -> /etc/SnmpAgent.d/snmpd.c
onf
-r--r--r-- 1 bin bin 60 Nov 6 1997 stcp.conf
-r--r--r-- 1 bin bin 257 Jun 10 1996 syslog.conf

it's also very strange to me i can't stop the sendmail.
when i want to stop the sendmail.. it always hang with user unknown.
# sendmail stop
stop... User unknown

I just want to use the system relaying mail to our SMTP server. located in the LAN.
KapilRaj
Honored Contributor

Re: Configuring sendmail

There should be some rc scripts which brings up sendmail use the same to stop sendmail. Can u try ls -l *send* under /sbin/init.d (I suppose thts the correct directory)

The command what u r trying in incorrect

Kaps
Nothing is impossible
Muda Ikhsan_1
Frequent Advisor

Re: Configuring sendmail

root @ SAPQA K370/4 [/sbin/init.d]
# ls -la *send*
-r-xr-xr-x 1 bin bin 3670 Apr 26 2000 sendmail

root @ SAPQA K370/4 [/sbin/init.d]
# sendmail stop
stop... User unknown

yes there is sendmail there
Elmar P. Kolkman
Honored Contributor

Re: Configuring sendmail

The current directory (.) is not in the path of root, resulting in not calling /sbin/init.d/sendmail, but the executable of sendmail, /usr/lib/sendmail.
To stop sendmail, do /sbin/init.d/sendmail stop
Every problem has at least one solution. Only some solutions are harder to find.
Muda Ikhsan_1
Frequent Advisor

Re: Configuring sendmail

Hi thanks it solve one of my problem.. bur my other problems still exist.
I want to activate the sendmail in my HP-UX so it can relay messages to internet users using my Internet SMTP Gateway.
Muda Ikhsan_1
Frequent Advisor

Re: Configuring sendmail

I got this in my mail.log

Jan 6 13:40:01 sapqa sendmail[19435]: unable to qualify my own domain name (sapqa) -- using sho
rt name
Jan 6 13:40:01 sapqa sendmail[19435]: be sure to set domain name in Dj macro in sendmail.cf
Jan 6 13:40:01 sapqa sendmail[19435]: NAA19435: forward /home/informix/.forward.sapqa: World wr
itable directory
Jan 6 13:40:01 sapqa sendmail[19435]: NAA19435: forward /home/informix/.forward: World writable
directory
Jan 6 13:40:01 sapqa sendmail[19435]: NAA19435: from=root, size=263, class=0, pri=30263, nrcpts
=1, msgid=<200401060540.NAA19435@sapqa.r3>, relay=root@localhost
Jan 6 13:40:02 sapqa sendmail[19437]: NAA19435: forward /home/informix/.forward.sapqa: World wr
itable directory
Jan 6 13:40:02 sapqa sendmail[19437]: NAA19435: forward /home/informix/.forward: World writable
directory
Jan 6 13:40:02 sapqa sendmail[19437]: NAA19435: to=informix, ctladdr=root (0/3), delay=00:00:01
, xdelay=00:00:00, mailer=local, stat=Sent
Jan 6 13:50:00 sapqa sendmail[20190]: unable to qualify my own domain name (sapqa) -- using sho
rt name
Jan 6 13:50:00 sapqa sendmail[20190]: be sure to set domain name in Dj macro in sendmail.cf
Jan 6 13:50:00 sapqa sendmail[20190]: NAA20190: forward /home/informix/.forward.sapqa: World wr
itable directory
Jan 6 13:50:00 sapqa sendmail[20190]: NAA20190: forward /home/informix/.forward: World writable
directory
Jan 6 13:50:01 sapqa sendmail[20190]: NAA20190: from=root, size=263, class=0, pri=30263, nrcpts
=1, msgid=<200401060550.NAA20190@sapqa.r3>, relay=root@localhost
Jan 6 13:50:01 sapqa sendmail[20192]: NAA20190: forward /home/informix/.forward.sapqa: World wr
itable directory
Jan 6 13:50:01 sapqa sendmail[20192]: NAA20190: forward /home/informix/.forward: World writable
directory
Jan 6 13:50:01 sapqa sendmail[20192]: NAA20190: to=informix, ctladdr=root (0/3), delay=00:00:01
, xdelay=00:00:00, mailer=local, stat=Sent
Jan 6 14:00:00 sapqa sendmail[20943]: unable to qualify my own domain name (sapqa) -- using sho
rt name

and this as when i try to sedn the mail
# sendmail -v "muda_ikhsan@jjsea.com"
muda_ikhsan@jjsea.com... jjsea.com: Name server timeout
muda_ikhsan@jjsea.com... Transient parse error -- message queued for future delivery
Elmar P. Kolkman
Honored Contributor

Re: Configuring sendmail

Make sure your DNS configuration is correct... DNS needs to work before sendmail can work.

'muda_ikhsan@jjsea.com... jjsea.com: Name server timeout' -> sendmail can not resolv jjsea.com. First solve this. You can check your DNS settings with dig or nslookup.

'Jan 6 13:40:01 sapqa sendmail[19435]: unable to qualify my own domain name (sapqa) -- using sho
rt name
Jan 6 13:40:01 sapqa sendmail[19435]: be sure to set domain name in Dj macro in sendmail.cf'
This implies that your sendmail.cf still doesn't contain a valid Dj macro. Could it be you have 2 Dj lines, one overriding the other?

The world-writable directories should be closed up somewhat.

Try to solve easy problems first, just to filter out as many error/warning messages ASAP so you see the real problems better.
Every problem has at least one solution. Only some solutions are harder to find.
Muda Ikhsan_1
Frequent Advisor

Re: Configuring sendmail

i think the DNS ok..
root @ SAPQA K370/4 [/etc]
# nslookup jjsea.com
Using /etc/hosts on: sapqa

looking up FILES
Name: jjsea
Address: 192.168.101.102
Aliases: jjsea.com


root @ SAPQA K370/4 [/etc]
# sendmail -v "muda_ikhsan@jjsea.com"
muda_ikhsan@jjsea.com... jjsea.com: Name server timeout
muda_ikhsan@jjsea.com... Transient parse error -- message queued for future deli
very
Muda Ikhsan_1
Frequent Advisor

Re: Configuring sendmail

and this in my sendmail.cf
where hp.com would be the name of your domain.
# Then that warning message goes away.
#
Dj$w.localhost.com


CP.

# "Smart" relay host (may be null)
DS

# place to which unknown users should be forwarded
Geoff Wild
Honored Contributor

Re: Configuring sendmail

DNS doesn't sound okay....

Sendmail is looking for the MX record....

Do it interactively:

nslookup

>set server sapqa

>set type=MX

>jjsea.com


What is in /etc/resolv.conf?

Add your domain name in /etc/hosts

X.X.X.X yourserever yourserver.yourdomain.com

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.