1825766 Members
2110 Online
109687 Solutions
New Discussion

smtp mail relay

 
vskumar
Occasional Contributor

smtp mail relay

Experts,
I have a HP server from which I want to send the out going mails(SMTP mails) to the SMTP server which is Exchange server(Microsoft.
)
I edited the /etc/mail/sendmail.cf file and did a ^DS and in front of it I gave the fully qualified name of the exchange server. I stopped and started the sendmail daemon by

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

But still my mails dont go through they are still there when I do a "mailq" do I need to do some thing on the Exchange server?

Thnks in advance

VSK
13 REPLIES 13
Roger Baptiste
Honored Contributor

Re: smtp mail relay

hi,

Did you specify the DS entry like this?
DS.

eg: DSxyz.abc.com

To test whether the mail is going to the relay do
#sendmail -vt maild
test mail
. <- (just the dot!)

and check the output. It will show how the mail is being sent.

If it does not work, pls post the output of
the above command.

HTH
raj
Take it easy.
Wim Rombauts
Honored Contributor

Re: smtp mail relay

Yes, you have to configure some things on the exchange server. What exactly you have to configure, depends on the current settings of the exchange server.

I will try to explain most of it (using Exchange 5.5) :
First of all, be sure that your server is found in the DNS configuration.
In the MS Exchange Admin application, find your (sub)site. Under "configuration" you will find an entry "connections".
If you click on "connections" you will get a list of connections on the right side of the window. Doubleclick on the "Inernet Mail Service".
Under tab "Delivery Restrictions", be sure the Exchange server accepts connections from your server.
Under tab "Address Space", you need to add an SMTP type connection to "*@
Under tab "Routing", you should tell Exchange to route mail to server to . Both names are normally the same.
Abd last : tab "Internet Mail" : Configure how mail should be forwarded (MIME, HTML, character set, ...)

For Exchange 2000, this will probably be a little different, but I hope this helps. Don't forget to use the help button regularly so that you know what you're doing.
ShivKumar_1
Frequent Advisor

Re: smtp mail relay

This is in response to Raj, I tried running the command and here is the out put


WARNING: local host name (mantis1) is not qualified; fix $j in config file
maild... User unknown
.... User unknown

Do I go and modify it in the /etc/mail/sendmail.cw?
Wim Rombauts
Honored Contributor

Re: smtp mail relay

It seems that your HP server is not configured to use DNS and has no fully qualified hostname server.domain.com. For my HP server, I entered a fully qualified hostname as an alias in /etc/hosts. Also be sure the /etc/resolv.conf is configured and that other systems can find your HP Server through DNS.
Sridhar Bhaskarla
Honored Contributor

Re: smtp mail relay

Hi,

Enter the fully qualified domain name in /etc/hosts (i.e with the domain you specified in your /etc/resolv.conf) or modify your Dj macro in sendmail.cf to include your fully qualified domain name to get rid of this problem.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Roger Baptiste
Honored Contributor

Re: smtp mail relay

Hi,

In the /etc/mail/sendmail.cf
file, specify the domain name
Look for an entry like this in file:
#Dj$w.Foo.COM
and replace it with
Dj

Also, in the sendmail test command , you need to specify
an actual mailid!

HTH
raj
Take it easy.
Uday_S_Ankolekar
Honored Contributor

Re: smtp mail relay


Hi,

Apart from this ceck your DNS (/etc/nsswitch.conf and /etc/resolv.conf file)
In resolv.conf gile you should have doman name, search order and name server entries. Check MX entries in DNS server for mail service. Also check with sendmail -bv with a proper e-mail id and see what result it gives.
What error you get exactly??

-USA..
Good Luck..
ShivKumar_1
Frequent Advisor

Re: smtp mail relay

When I did a sendmail -vt vskumar@cw.com it gives the following errors.

vskumar@cw.com... cw.com: Name server timeout
Transient parse error --

There are still messages in queue
Sanjay_6
Honored Contributor

Re: smtp mail relay

twang
Honored Contributor

Re: smtp mail relay

I made as follows:
- edit /etchosts:
129.9.200.2 .wmo.com

- edit /etc/sendmail.cf:
# "Smart" relay host (may be null)
DS.wmo.com

- restart sendmail deamon

it works fine.

try this

Re: smtp mail relay

Hi

In addition to what Twang said, ensure that you can ping the mail server & Vice Versa . Make sure that the /etc/nsswitch.conf file has this entry if you are using the host table.

hosts: files [NOTFOUND=continue] nis

Restart inetd & sendmail.

hope it helps,

ish
If you keyboard is locked, call a locksmith, not HP!
ShivKumar_1
Frequent Advisor

Re: smtp mail relay

Experts,
Thanks for your help the problem is solved. What I did was I removed the /etc/resolv.conf to another location , because I dont use DNS , it was first looking up at that file.
Also in /etc/mail there is a file called service.switch remove the word dns in the default fall back line.