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


 
Thread Tools Search this Thread
Operating Systems Solaris how to send mails to users on exchange server from sendmail/solaris(mailx)
# 1  
Old 11-15-2005
Question 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
# 2  
Old 11-15-2005
I don't undersand what this has to do with AD. You should just be able to send the email to the full email addresses of the users and provided your mx records are correctly configured in dns it should get there.
# 3  
Old 11-16-2005
In my script I am picking up the user IDs from /etc/passwd database.
Now this requirement then comes into picture to find out related mail address on the exchange server, for the user ID (derived from /etc/passwd database).
Is there any way by which I can resolve mail id for the user on unix box.
# 4  
Old 11-17-2005
creative /etc/hosts resolving and utilizing your company's SMTP server...

You could introduce your company's SMTP server and some creative /etc/hosts resolving on your SUNbox?

Our sendmail is configured w/the following options:
DMyourCOMPANY.com (masquerade company email address)
DSmail.COMPANY.com (this is the default route for all outgoing mail, which will be resolved in hosts file locally)

now in /etc/hosts, resolve mailCOMPANY.com by associating it w/your company's SMTP server (It will also include an alais for your exchange server domain).

192.x.x.x EXCHANGEdefaultDOMAIN.net mailCOMPANY.com

I believe it is this EXCHANGEdefaultDOMAIN.net entry that allows exchange to receive incoming mail. You will notice that it is recognized when performing a sendmail test (sendmail -v exchangeUSER@COMPANY.com).

no DNS, everything is resolved locally.
# 5  
Old 11-17-2005
It would be much easier to use ldapsearch to get the correct email addresses for users.
# 6  
Old 11-18-2005
ganeshh

Any Idea how to go for ldapsearch....a script.. something like that..?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris - Sendmail - Adding .com.gr in external senders e-mails

Hello Everybody ! I'm Harry from Athens Greece and i have a problem with my Sendmail 8.13.3 installed on Solaris SunOS ultra 5.10. The problem is that when someone sends to us an e-mail and his e-mail address is like : xxxx@xxxx.com, our e-mail server adds up in the senders address a .com.gr... (2 Replies)
Discussion started by: Mcasim
2 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 Advanced & Expert Users

shell script to send separate mails to different users from a text file

Hi Friends, Could you guys help me out of this problem... I need to send an email to all the users and the email has to be picked from the text file. text file contains the no. of records like: Code: giridhar 224285 847333 giridhar276@gmail.com ramana 84849 33884... (0 Replies)
Discussion started by: giridhar276
0 Replies

4. 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

5. AIX

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

6. 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

7. Red Hat

Send mail from redhat box to exchange server

we have an exchange server in company as excmailbocx.company.com i wanna send mail using sendmail from redhat to my exchange mail account how can it be possible? (1 Reply)
Discussion started by: oguzhantrg
1 Replies

8. Debian

cannot send any mails using mailx

hi howto configure mailx ? kind regards ccc (11 Replies)
Discussion started by: ccc
11 Replies

9. Solaris

Send email from solaris to exchange

Can i send e-mail from solaris to exchange?How can i configure the solaris?thks. (1 Reply)
Discussion started by: jowvid
1 Replies

10. Shell Programming and Scripting

Using mailx to send email to multiple users.

Hi, I am using the mailx command to send email to multple users. The command works fine when i am sending mail to a single user but when i insert multiple email ids inside the quote it does not work. All the email ids are coming from a property file.Please have a lookt at the property file and... (4 Replies)
Discussion started by: priyaksingh
4 Replies
Login or Register to Ask a Question