1835449 Members
3011 Online
110078 Solutions
New Discussion

Sendmail as a client

 
SOLVED
Go to solution
Ahmed_41
Super Advisor

Sendmail as a client

Dear All,

i did configure send mail to be a client,
the deamon now dont start and in the server field i added the Ip of the mail server i wanna send and recieve from
but now when i send email using
date | mailx -s "hi" ov@mailserver

i always get this error mesg
# sendmail -v ov@citystars-com.com
citystars-com.com: Name server timeout
ov@citystars-com.com... Transient parse error -- message queued for future deliv
ery


even thought all my lookup types are set to files in the nsswitch.conf file

can someone help ?


also this is part of my log file

Nov 18 18:22:16 OVSV2NOC2RK1 sendmail[2322]: unable to qualify my own domain name (OVSV2NOC2RK1) -- using short name
Nov 18 18:22:16 OVSV2NOC2RK1 sendmail[2322]: be sure to set domain name in Dj macro in sendmail.cf
Nov 18 18:22:17 OVSV2NOC2RK1 sendmail[2322]: SAA02322: to=ov@citystars-com.com, delay=00:00:00, mailer=esmtp, relay=citystars-com.com, stat=Transient parse error -- message queued for future delivery
Nov 18 18:22:17 OVSV2NOC2RK1 sendmail[2322]: SAA02322: from=root, size=160, class=0, pri=30160, nrcpts=1, msgid=<200411181622.SAA02322@OVSV2NOC2RK1.citystars-com.COM>, relay=root@localhost
Nov 18 18:22:17 OVSV2NOC2RK1 sendmail[2322]: SAA02322: to=ov@citystars-com.com, delay=00:00:00, mailer=esmtp, stat=queued
Nov 18 18:24:26 OVSV2NOC2RK1 sendmail[2326]: unable to qualify my own domain name (OVSV2NOC2RK1) -- using short name
Nov 18 18:24:26 OVSV2NOC2RK1 sendmail[2326]: be sure to set domain name in Dj macro in sendmail.cf
Nov 18 18:24:26 OVSV2NOC2RK1 sendmail[2326]: SAA02326: to=ov@citystars-com.com, delay=00:00:00, mailer=esmtp, relay=citystars-com.com, stat=Transient parse error -- message queued for future delivery
Nov 18 18:39:26 OVSV2NOC2RK1 sendmail[2026]: unable to qualify my own domain name (OVSV2NOC2RK1) -- using short name
Nov 18 18:39:26 OVSV2NOC2RK1 sendmail[2026]: be sure to set domain name in Dj macro in sendmail.cf
Nov 18 18:39:26 OVSV2NOC2RK1 sendmail[2026]: SAA02026: to=ov@citystars-com.com, delay=00:00:00, mailer=local, stat=Transient parse error -- message queued for future

6 REPLIES 6
Uday_S_Ankolekar
Honored Contributor

Re: Sendmail as a client

You will have to make changes in sendmail.cf file for DS macro. This is smart relay host.
Put your smtp server name in front of DS and restart sendmail process

-USA..
Good Luck..
Ahmed_41
Super Advisor

Re: Sendmail as a client

Yes
but i am already not using sendmail on my machine as a mailserver, i am just being a client to another mail server ?? will the cf file affect me being a client ?
Sanjay_6
Honored Contributor

Re: Sendmail as a client

Hi Ahmed,

Even though the nsswitch.conf is set to look at files instead of dns, the sendmail looks at dns first and then files.

you can modify theorder by changing the order in /etc/mail/service.switch file. Sendmail looks at this file to check the order in which it is supposed to resolve the host names.

Hope this helps.

Regds
Ahmed_41
Super Advisor

Re: Sendmail as a client

Sanjay,
i just did, and i am having the same error mesg.

does the sendmail deamon must be running even if i am a client and not a server ??

thanks
Sanjay_6
Honored Contributor
Solution

Re: Sendmail as a client

Hi,

No, you don't need to run the sendmail daemon is you are using as a client only and not as a sendmail server receing / forwarding mails.

What is happeing is that the system is unable to qualify its own Fully qualified domain name.

You can try setting the Dj macro to your domain name and start / stop sendmail and then try the mail.

Maybe this link will help,

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062922179

The itrc doc id is UMAILKBRC00009913.

This doc talk about a situation similar to yours (i hope).

Hope this helps.

regds


Ahmed_41
Super Advisor

Re: Sendmail as a client

Sanjay,

this document is a magiccc

i have been trying to do it for 2 days now
you are wonderful Sanjay


thanks a lot