1833053 Members
2739 Online
110049 Solutions
New Discussion

sendmail special config.

 
SOLVED
Go to solution
Juan Manuel López
Valued Contributor

sendmail special config.

I want to set my hu/ux machine to send messages to the company mail server without set dns resolver, and domain.
Only with the /etc/mail/sendmail.cf config file parameters.
I set:
DS$w.pp.nl
Dsmailserver.pp.nl
Also I set the /etc/hosts file with the mailserver ip address.
So every time I send a message I receive this:unable to qualify my own domain name (SS01) -- using short name
be sure to set domain name in Dj macro in sendmail.cf

Please, Help.
Thanks in advance.
Juanma.
I would like to be lie on a beautiful beach spending my life doing nothing, so someboby has to make this job.
11 REPLIES 11
Joseph C. Denman
Honored Contributor

Re: sendmail special config.

qualify it in the host file.

exampe entry for local host

xxx.xxx.xxx.xxx hostname hostname.my.domain.com


...jcd...
If I had only read the instructions first??
Juan Manuel López
Valued Contributor

Re: sendmail special config.

done !
So I get the same message.
I would like to be lie on a beautiful beach spending my life doing nothing, so someboby has to make this job.
linuxfan
Honored Contributor

Re: sendmail special config.

Hi,

If you are not using DNS, look at the /etc/nsswitch.conf, if it contains dns for the hosts entry, you might have to remove it.

Look at the document #KLTKBRC00005381

-HTH
I am RU
They think they know but don't. At least I know I don't know - Socrates
Joseph Chakkery
Valued Contributor

Re: sendmail special config.

Hi,

Try the following.
For sendmail to be activated to send mail to mail server.
a) put relay hostname to DS on sendmail.cf in /etc/mail directory (eg: trent ).
b) Create nsswitch.conf in /etc by copying nsswitch.file as nsswitch.conf. (IF DNS is not enabled on ur HP server).
c) Add relay host IP entry to /etc/hosts file. (IP of trent)
d) Stop and start sendmail dameon again.

Hope this will help u

Regards
Joe.
Knowledge is wealth
Joseph C. Denman
Honored Contributor

Re: sendmail special config.

As state above, make sure /etc/nsswitch.conf is check files prior to dns and nis.


...jcd...
If I had only read the instructions first??
Juan Manuel López
Valued Contributor

Re: sendmail special config.

now appear this message:Aug 16 17:28:29 TPU01 sendmail[29447]: RAA29447: from=root, size=22, class=0, pri=30022, nrcpts=1, msgid=<200108161528.RAA29447@TPU0
1.nne.es>, relay=root@localhost
Aug 16 17:28:29 TPU01 sendmail[29449]: RAA29447: to=jlopezaza@nne.es, ctladdr=root (0/3), delay=00:00:00, xdelay=00:00:00, mailer=sm
tp, relay=pp.nl, stat=Host unknown (Name server: pp.nl: host not found)
Aug 16 17:28:29 SS01 sendmail[29449]: RAA29447: RAA29449: DSN: Host unknown (Name server: pp.nl: host not found)
Aug 16 17:28:29 SS01 sendmail[29449]: RAA29449: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, stat=Sent

WHY ?
I would like to be lie on a beautiful beach spending my life doing nothing, so someboby has to make this job.
Robin Wakefield
Honored Contributor
Solution

Re: sendmail special config.

Hi Juanma,

You may want to check your config with:

/usr/lib/sendmail -d0.4,37.1


and ensure your $w is what you expect.

Rgds, Robin
Joseph Chakkery
Valued Contributor

Re: sendmail special config.

Hi Juanma,

Can u ping to pp.nl

Regards
Joe
Knowledge is wealth
linuxfan
Honored Contributor

Re: sendmail special config.

Hi,


First of all, make sure you can resolve (nslookup your relay server), then make sure you can ping (ping relay server)

If you are not using DNS, remove the dns entry from the /etc/nsswitch.conf for the hosts line.

Then in the /etc/mail/sendmail.cf modify the DS variable as (assuming relay is your relay server)

DSrelay.pp.nl

then stop and restart your sendmail
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

-HTH
I am RU
They think they know but don't. At least I know I don't know - Socrates
linuxfan
Honored Contributor

Re: sendmail special config.

Oh btw,
once you set the DS variable and bounce the sendmail daemon, you can check if your mail is going through your relay server.

eg:
sendmail -v user@host.com
test
.

You should see output like
user@host.com... Connecting to relay.pp.nl via relay

-HTH
I am RU
They think they know but don't. At least I know I don't know - Socrates
Juan Manuel López
Valued Contributor

Re: sendmail special config.

OK !!!
Thank you very much !
You are wonderfull !

It?s works.

I have not DNS resolve, Domain, nothing, so the sendmail works nice...thank you.

Juanma.
I would like to be lie on a beautiful beach spending my life doing nothing, so someboby has to make this job.