AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

Configure sendmail to use exchange server as smtp server

  • 1.  Configure sendmail to use exchange server as smtp server

    Posted Sat December 11, 2010 01:35 PM

    Originally posted by: ahmed_salah




    i am new in AIX i am trying to write a script to take a backup for specific files on server to and check error log if backup success send email to administrator , script done except for sending mail , i try to configure sendmail on aix to use our exchange server to send emails but still get error user unknown


  • 2.  Re: Configure sendmail to use exchange server as smtp server

    Posted Sun December 12, 2010 07:46 PM

    Originally posted by: Siddhartha.Sinha


    This is what I did in my AIX box

    1. "Smart" relay host (may be null)
    DS xyz.abc.com ( Put your exchange Server name)

    last two lines are
    CRxyz
    CWabc.com ( Domain, but I think this one not necessary)

    1. stopsrc -s sendmail
    2. startsrc -s sendmail
    or sendmail -bd -q 15m

    In my relay Server

    Djqwe.abc.com

    This works perfectly. You may check your exchange server settings whether it is accepting the mails or not. if exchange server doesn't have the user names, then create a .forward file and give your user id


  • 3.  Re: Configure sendmail to use exchange server as smtp server

    Posted Mon December 13, 2010 05:52 AM

    Originally posted by: ahmed_salah


    hi,
    thanks i did that exactly u can find sendmail.cf attached can u check it if i miss something
    mail server : mail.gasco.com.eg
    domain : gasco.com.eg


  • 4.  Re: Configure sendmail to use exchange server as smtp server

    Posted Sun December 12, 2010 10:15 PM

    Originally posted by: SystemAdmin


    The use of a smart relay may be the easiest option. However, if DNS is setup at your location then it is not necessary. Try:
    nslookup -querytype=MX your_domain.com
    and look for lines containing information about the mail exchanger. My guess is that the DNS server(s) at your location do not know about the Exchange server, so you need to use the smart relay.

    If your Windows systems use the same login name as the UNIX systems, then you should be able to send mail from the UNIX hosts. However, we had trouble sending e-mails outside of the company with Exchange. It turned out that we had to use the Windows e-mail name as the Sender, or the mail was blocked by the Exchange server.