Operating System - HP-UX
1832351 Members
1731 Online
110041 Solutions
New Discussion

How to configure sendmail with relay without dns in 11.11

 
Carme Torca
Super Advisor

How to configure sendmail with relay without dns in 11.11

Hi,

I have configured sendmail in one server 11.11.
I want to change relay to send the mails only with domain.com, but now the mails outs with server.domain.com.
At nsswitch.conf I have
hosts files dns
but I cannot change it.

How could I do this?
Thanks,
Carmen.
Users are not too bad ;-)
7 REPLIES 7
Jeeshan
Honored Contributor

Re: How to configure sendmail with relay without dns in 11.11

Hi Carmen

What is your relay server? is it hp-ux or MS exchange server?
a warrior never quits
Carme Torca
Super Advisor

Re: How to configure sendmail with relay without dns in 11.11

Hi,

Its a MS exchange server
Users are not too bad ;-)
Rasheed Tamton
Honored Contributor

Re: How to configure sendmail with relay without dns in 11.11

Hi,

vi /etc/hosts
put FQDN of the MS xchange server
server.domain.com

Make sure you can ping server.domain.com

uncomment the DS macro in sendmail.cf
vi /etc/mail/sendmail.cf
DSserver.domain.com


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

Check for any errors in /var/adm/syslog/mail.log file

Regards,
Rasheed Tamton.
Jeeshan
Honored Contributor

Re: How to configure sendmail with relay without dns in 11.11

Hi again

configure macro in /etc/mail/sendmail.cf
- DS to DSexchange_relay_name
- configure macro Dj$w. to Dj$w.
- put to /etc/hosts of your exchange server FQDN.

before that allow your hp-pux host in MS exchange server to relay mail.

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

chek its working or not

#echo test|sendmail -v carmen@domain.com

Hope this will help!
a warrior never quits
Carme Torca
Super Advisor

Re: How to configure sendmail with relay without dns in 11.11

Hi,

It does not works ok.

I have at sendmail.cf on serverA

DSserver-exchange
Dj$w.domain.com

and when I send one mail it shows me

carmen@serverA.domain.com and I would like that it shows carmen@domain.com

Any idea??
Thanks!
Carmen.
Users are not too bad ;-)
Steven Schweda
Honored Contributor

Re: How to configure sendmail with relay without dns in 11.11

Perhaps:
DMdomain.com
Carme Torca
Super Advisor

Re: How to configure sendmail with relay without dns in 11.11

Hi,

Yes I have too:

DMdomain.com

but doesn't works like I want...

Any idea?
Thanks a lot of,
Carmen.

Users are not too bad ;-)