Operating System - Linux
1829603 Members
1790 Online
109992 Solutions
New Discussion

Re: Oubound E-Mail Problem

 
sunilgupta
Advisor

Oubound E-Mail Problem

I have configured exchange server setting into E-Mail settings, but the e-mails are not been relayed to destination.
how to verify that e-mails are been relayed to exchange server, and are stuck there ? or is a problem at service desk end.

Sunil
5 REPLIES 5
Wouter Jagers
Honored Contributor

Re: Oubound E-Mail Problem

The 'mailq' command will show you the mailqueue of your machine.. you can easily see whether or not a bunch of messages are stuck there (and you might even see the reason there).

/var/log/mail.log also states whether or not your outbound mails were 'accepted for delivery'.

Cheers
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.
Al Licause
Trusted Contributor

Re: Oubound E-Mail Problem

Some times sending a piece of mail from the command line with the -v switch (verbose) you can see if the mail has been forwarded and to which server (mail -v user@domain).

However, on linux this has proven to be less helpful.

You might want to run tcpdump and capture all traffic on port 25 (tcpdump -i eth0 -n port 25), then send a piece of mail. If it left the host, you will see just which host is went to. If not then as suggested previously, the log files should give an indication as to why they weren't sent.

This is the line in /etc/mail/sendmail.mc that you want to uncomment and supply the information about the exchange server:

dnl define(`SMART_HOST',`smtp.your.provider')

Replace the second argument with the full qualified hostname of the exchange server then recompile the sendmail.cf file and restart sendmail. Test again.....


sunilgupta
Advisor

Re: Oubound E-Mail Problem

I am still facing the problem :

Here is the content of log from Service Desk Server.

Apr 18 16:40:54 ovsdtb01 sendmail[22994]: unable to qualify my own domain name (
ovsdtb01) -- using short name
Apr 18 16:40:54 ovsdtb01 sendmail[22994]: be sure to set domain name in Dj macr
o in sendmail.cf
Steven E. Protter
Exalted Contributor

Re: Oubound E-Mail Problem

Shalom,

The system is not set to relay through an smtp relay server.

IS there a DS directive in sendmail.cf, if so is it valid?

Therefore it must resolve DNS itself.

The current settings in /etc/resolve.conf do not provide name resolution and perhaps there is even a firewall blocking the traffic.

/var/log/maillog contains information

in one window try:
tail -f /var/log/maillog

Then try and send the email.

Also:
sendmail -v -q

sendmail -v -d3 -d38 someone@some.net

type some text

.


You will receive a lot of diagnostics.

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
Steven E. Protter
Exalted Contributor

Re: Oubound E-Mail Problem

One other thing I forgot is by default exchange will not accept mail relay. The exchange admin must explicitly allow this. For some reason I've found Exchange admin very reluctant to do this.

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