1830194 Members
7278 Online
109999 Solutions
New Discussion

Sendmail Configuration

 
ganzsp
Frequent Advisor

Sendmail Configuration

Hai all,

I have been facing a /dead.letter error issue while sending a mail from server to my ID.

I have checked with the resolv.conf and hosts file and nsswitch.conf. if i was able to send mail to my ID then the DNS is not working properly.

But either way i was not able to send mail to my remote host ID.Below is the nsswitch.
conf setting

passwd: files
group: files
hosts: files
#hosts: files
#hosts: files [NOTFOUND=CONTINUE] nis [NOTFOUND=CONTINUE] dns
services: files
protocols: files
networks: files
rpc: files
netgroup: files
aliases: files
automount: files

is any changes need to be done.so that it doesn't affect the DNS as well as able to mail to local/remote mail ID's.

20 REPLIES 20
Jeeshan
Honored Contributor

Re: Sendmail Configuration

what is your scenario?

mail server in which OS? Does it relay through MS exchange?

what do u mean by ID? is it domain user or OS user?
a warrior never quits
ganzsp
Frequent Advisor

Re: Sendmail Configuration

Hai,

yes it was really through the MS exchange server and os is HP-UX. Domain user ID is what i tried.

Thing is if i give

#/usr/lib/sendmail -v genu@abc.com
testmail
.

../....saving to ./dead.letter

I changed my nsswitch.conf to Comment hosts except "hosts files [NOTFOUND=Continue] DNS" entry.

then i was able to get mail to my ID but not to remote user ID.also the DNS was not working.

if i revert DNS is fine but i'm not able to sendmail as it automatically goes to dead.letter

Thanks
Ganzsp
Yogeeraj_1
Honored Contributor

Re: Sendmail Configuration

hi,

did you specify your "Smart" relay host in your sendmail.cf?

revert

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
ganzsp
Frequent Advisor

Re: Sendmail Configuration

hai yogesh,

I have clearly made the entry in relay host entry of sendmail.cf.
then stop/start /init.d/senmail as well and updated the aliases.db by running newaliases.

Thanks
Ganzsp
Tim Nelson
Honored Contributor

Re: Sendmail Configuration

echo test|senmail -v someone@abc.com

Post the output.

Also, from your nsswitch.conf you posted DNS is not being used. Only files, the rest are commented out.

Also FYI, you do not need to stop and restart sendmail for sendmail.cf client changes. Sendmail as a client starts up each time you send email. Sendmail as a server ( to receive ) is a different story.

Steven E. Protter
Exalted Contributor

Re: Sendmail Configuration

Shalom,

fixing this is actually pretty simple.

1) Set up the exchange server to permit relay by IP address or host name from the hpux system. That be windoze, talk to someone who likes playing with gui.
2) edit sendmail.cf
change
DS

to
DSexchangeserver

save the file

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeeshan
Honored Contributor

Re: Sendmail Configuration

you don't need to do anything in nsswitch.conf file.

Add an entry in /etc/resolv.conf file of your domain name and name server IP like

domain abc.com
nameserver x.x.x.x (primary)
nameserver x.x.x.x (secondary if any)
a warrior never quits
ganzsp
Frequent Advisor

Re: Sendmail Configuration

Hai,

Ashan,

The resolv.conf file is similar to what you have provided.

Tim,
Have attached the output of
# echo test|senmail -v someone@abc.com

Steve,
I checked it to be DSxxx.x.x.x in relay host entry.

Thanks
Ganesh S P
Michael Steele_2
Honored Contributor

Re: Sendmail Configuration

This is absolutely, positively your email addministrator blocking your email alias.

Seen this many times and that's where I'd start first.
Support Fatherhood - Stop Family Law
Jeeshan
Honored Contributor

Re: Sendmail Configuration

Hi

check with your exchange admin that he allows your HP-UX host for relay mail and also chek the domain user is not blocked
a warrior never quits
Jeeshan
Honored Contributor

Re: Sendmail Configuration

BTW, did you change the Dj$w macro in sendmail.cf file?
a warrior never quits
ganzsp
Frequent Advisor

Re: Sendmail Configuration

Hai,

The email administrator is not blocking and i have made no changes in Dj$w macro in sendmail.cf file.

Is that we can set only mailing option to one domain only?!

Any other ideas to solve this issue??
looking forward

Thanks
Ganzsp
Michael Steele_2
Honored Contributor

Re: Sendmail Configuration

See SEP's response above with the addtional check of 'nslookup mailserver', 'nslookup ###.###.###.###'. (* ip address of mail server.
Support Fatherhood - Stop Family Law
ganzsp
Frequent Advisor

Re: Sendmail Configuration

Michale,

I checked it as well below fyr

#nslookup xxx.x.xxx.xxx
Using /etc/hosts on: hostname

looking up FILES
Name: asd
Address: xxx.x.xxx.xxx
Aliases: x.x.x.com

-Ganzsp
Jeeshan
Honored Contributor

Re: Sendmail Configuration

you have to change your Dj$w. macro

configure macro Dj$w. to Dj$w.

Example:

Dj$w.abc.com
a warrior never quits
ganzsp
Frequent Advisor

Re: Sendmail Configuration

hai,

I have created a file relay-domain and entered domain host names in that.

added the same in DS and then updated an entry of that in /etc/hosts file.

now i'm able mail to both domains as a root but not as a user.

Please guide on this
Thanks
Ganzsp
Jeeshan
Honored Contributor

Re: Sendmail Configuration

Hi

I have attached the configi=uration of mail server to relay through the MS excahnge. In my scenario it has worked.
a warrior never quits
ganzsp
Frequent Advisor

Re: Sendmail Configuration

Hey i did the same but i havent made any changes in

configure macro Dj$w. to Dj$w.

so is that $W is for permitting users to sendmail?!

Thnx
Ganzsp
Jeeshan
Honored Contributor

Re: Sendmail Configuration

yes

it will relay the mail to domain user.
a warrior never quits
Jeeshan
Honored Contributor

Re: Sendmail Configuration

is your problem solved yet?

If so assign points for supports and identifying problem is resolved.
a warrior never quits