Configure sendmail to use exchange server


 
Thread Tools Search this Thread
Operating Systems AIX Configure sendmail to use exchange server
# 1  
Old 12-09-2010
Configure sendmail to use exchange server

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  
Old 12-09-2010
In your /etc/sendmail.cf, try setting the line that starts with "DS" to the name of your windows exchange server. From this:
Code:
DS

to this:
Code:
DShostname.domain.com

Run this command and you should see similar output after the change.
Code:
localhost:/:$ grep ^DS /etc/sendmail.cf
DShostname.domain.com
localhost:/:$

Try a simple mail command like this:
Code:
mailx -s "subject" user@domain.com << /dev/null

# 3  
Old 12-09-2010
hi,
i already change sendmail.cf file with this parameter

regarding code u send i do not underestand what i do with it

this is the o/p from mailx command

# mailx -s "subject" ahmed_salah@gasco.com.eg << /dev/null
> Null message body; hope that's ok
ahmed_salah@gasco.com.eg... User unknown
/dead.letter... Saved message in /dead.letter

attached is sendmail.cf after changed
# 4  
Old 12-11-2010
Can you resolve gasco.com.eg? Try to ping it and see what happens. If not, you may need your DNS configured correctly.
# 5  
Old 12-11-2010
hi,
i can ping mail server mail.gasco.com.eg and i got replay but when i ping gasco.com.eg i got replay from differerent addresses cause we have multiple domain controllers all members in the same domain gasco.com.eg
# 6  
Old 12-11-2010
why are u troubling use postfix
# 7  
Old 12-21-2010
So, you have multiple addresses, so could this be a DNS issue that you are not guarenteed to get the right server?

Could this be a firewall issue? Try to open the connection:-
Code:
telnet www.xxx.yyy.zzz 25

for each IP address that the DNS returns. Port 25 is the smtp port. You should get output similar to the following:-
Code:
# telnet www.xxx.yyy.zzz 25
Trying...
Connected to mail.mycomp.com.
Escape character is '^]'.
220 mail.mycomp.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.1830 ready at  Tue, 21 Dec 2010 13:30:58 +0000 
quit
221 2.0.0 mail.mycomp.com Service closing transmission channel
Connection closed.

If not, you could have a firewall issue, or perhaps even be going to the wrong place entirely. If you can ping the address, then a firewall issue would simply seem to hang (timeout in about 30 seconds usually) If you can't ping, then it's DNS or routing I expect.



Do let us know how you get on.





Robin
Liverpool/Blackburn
UK
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Configure Postfix to relay to Exchange Server with NTLM authentication

Hello I have a shell script, which should send email, if any error occurred. This script is running in Red Hat Linux 4.6, and want to configure postfix so it can relay to an Exchange Server. The Authorization method of Exchange server, I guess is: 250-AUTH NTLM. So I have: Server A ( Red... (1 Reply)
Discussion started by: viktor1985
1 Replies

2. UNIX for Advanced & Expert Users

mailx Vs sendmail to send internal emails to exchange

Hi Gurus, I have been searching for this around, but sendmail seems complicated and not sure if "mail" command would do, since all what I need to send internal emails from my solaris 10 box to our exchange server. Would the mailx or mail command do ? I tried the : # mailx -s test... (2 Replies)
Discussion started by: aladdin
2 Replies

3. UNIX for Dummies Questions & Answers

Can't configure sendmail to send mails to external SMTP Server

Hi all,I know, that this is very common issue, but I can't find where is the problem... I have Solaris 10 installed.I want to send mail to external SMTP server, like:echo "letter body"| mailx -s "subject" test@test.comBut I donno what kind of changes I have to do in /etc/hosts and sendmail.cf or... (5 Replies)
Discussion started by: nypreH
5 Replies

4. HP-UX

[Solved] How do I configure Unix Mail Server to use another Mail Exchange Server

We have configured our mail unix server and can send out emails automatically from applications running on unix to different people in our company as well as outside our company. However there is an outside client who is not receiving these emails because the settings on their mail server cannot... (4 Replies)
Discussion started by: Tenyhwa
4 Replies

5. Shell Programming and Scripting

Send email from sendmail on AIX using exchange server as SMTP server

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... (0 Replies)
Discussion started by: ahmed_salah
0 Replies

6. Solaris

Help to configure sendmail on Solaris 10

Hello, I need help to configure sendmail on Solaris 10. I have to configure sendmail to send mail on the Internet, now works only for sending mail for local users. I'm studying several tutorials ... When I try to send a mail to an external address (eg aaaa@gmail.com) the mail is placed... (3 Replies)
Discussion started by: arfry
3 Replies

7. Cybersecurity

How to configure sendmail in solaris 10

how to configure sendmail in solaris 10 ???? Anyone knows, pls share the documents. (1 Reply)
Discussion started by: vishwanathhcl
1 Replies

8. UNIX for Dummies Questions & Answers

Question regarding sendmail and exchange 5.5

Hi all, I have a question. I am running an exchange 5.5 server and a UNIX DNS server. Currently, I am able to receive messaages but cannot send messages. By send I mean that I create a message, hit the send button, it hits the outbox and disappears. I checked the MTA on 5.5 and the message is... (2 Replies)
Discussion started by: John Racela
2 Replies

9. UNIX for Dummies Questions & Answers

How do I configure sendmail?

I am trying to run sendmail from a script with the results from that same script. Each time I use sendmail I get the following message in /var/log/maillog: Feb 27 02:25:42 (none) sendmail: m1R1Pg3S013841: to=test@test.com,just,testing, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00,... (1 Reply)
Discussion started by: bronkeydain
1 Replies

10. Solaris

how to send mails to users on exchange server from sendmail/solaris(mailx)

Hi, Can anyone pls. tell me how to access Active directory from solaris. I am looking at solution by which I can send mail notification from the logs generated by scripts, to the users on Exchange server. I am trying for a Perl-LDAP module , but don't realy know how to go for it (5 Replies)
Discussion started by: ganeshh
5 Replies
Login or Register to Ask a Question