Sendmail Configuration

Hi All,

Need help !.

I am configuring SMTP server details in my sendmail.cf

My SMTP server details are like MAC234.ad.compname.com, and i have configured my sendmail.cf with this address.

But mail address is something like user1@compname.com. Now when i run the sendmail command, i get the error that compname.com is "Unknown host".

I am able to ping MAC234.ad.compname.com on port 25.

Where am i going wrong . Please guide me.

?
Since I see .ad. in your DN I guess your mail servers are MS exchange servers no?
In which case I dont see what you are configuring in sendmail.cf...

what output gives :

/usr/lib/sendmail -d0.1 -bt < /dev/null

?

Yes, it is MS Exchange server. I am changing Relay host value in my sendmail.cf with the my MS Exchange server host name .

Am i wrong in this approach with MS Exchange server? I am doing it for first with no support from admin team. Please help me if i am going wrong.

---------- Post updated at 11:47 PM ---------- Previous update was at 11:46 PM ----------

Output is as follows.

# /usr/lib/sendmail -d0.1 -bt < /dev/null
Version @(#)Sendmail version 8.13.3 - Revision 1.000 - 1st August,2006
 Compiled with: DNSMAP EGD LDAPMAP LOG MAP_REGEX MATCHGECOS MILTER
                MIME7TO8 MIME8TO7 NAMED_BIND NDBM NETINET NETINET6 NETUNIX
                NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS USERDB
                USE_LDAP_INIT XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
      (short domain name) $w = devsrvr
  (canonical domain name) $j = devsrvr.localadmin
         (subdomain name) $m = localadmin
              (node name) $k = devsrvr
========================================================

ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>

Please guide me.

the DS line is indeed the (only) one that you need to complete... but it may be that your mail server uses aliases for its services, something like SMTP.compname.com...

Are you using what you can see in "options" from outlook? in which case it is not that obvious... for instance we have 16 servers and all have .ad. etc DN but to relay from unix we have one address as in my previous mail configured for the boxes that need to send mails (but only internal... users outlook...). This is because most servers have port 25 disabled and almost all switches/routers also, so it is on fully documented requiremnet that port is openened from on point to destination... for security reasons... So I suppose it will ask for more serious investigations for you...
Good luck

Hi All,

Thanks for all inputs. I have handed over this task to admin team . They are looking into it. I will update this thread once i hear back from them.