Using Sendmail with MS Exchange
Carroll, Jim P [Contractor]
jcarro10 at sprintspectrum.com
Tue Nov 26 20:50:19 CET 2002
You'd need to do the following. Let's say your mail server is
mailhost.example.com:
if you're using DNS:
- set an MX record in DNS to resolve to your mailhost
- alternatively, set an A record in DNS
- optionally, read the DNS & BIND book, by O'Reilly
if you're using /etc/hosts:
- set an alias, eg:
192.168.0.5 enterprise.example.com mailhost.example.com
/etc/resolv.conf will allow you include/exclude DNS (read the man page)
sendmail.cf is where you should be defining mailhost.example.com. The quick
and dirty way would be to set the Dj macro:
Djmailhost.example.com
If you want to do things the right way with Sendmail, throw yourself into it
and try various tweaks. You may find that you prefer to hack sendmail.cf
directly. There's another way of tweaking (call it 'coarse tuning', as I've
been in a situ where I just couldn't finesse the environment like I needed
to) with, I believe, m4 macros. Perhaps someone could correct me on this.
If you're completely unfamiliar with Sendmail, my recommendation is to
replace it with something else, unless you're a veteran of the School of
Hard Knocks with lots of spare time on your hands. Postfix and Qmail would
be my first choices for a versatile server, otherwise for what you're
looking for, nullmailer will probably do the trick.
jc
> -----Original Message-----
> From: Marcus Nilsson [mailto:marcus.nilsson at cannondale.com]
> Sent: Tuesday, November 26, 2002 11:51 AM
> To: Potter, G M (Greg); nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Using Sendmail with MS Exchange
>
>
> Where? In /etc/hosts, resolv.conf, sendmail.cf or any other file?
>
> Running Slackware Linux 8.1 and Sendmail. Sending mail fom
> command line
> with mail(x)
>
> Marcus
>
> Potter, G M (Greg) wrote:
>
> > I just set the mailhost in DNS to point to the exchange
> server. That is the only modification I had to make to my
> configuration. I am running Solaris 7 and Solaris 8.
> >
> > Greg
> >
> >
> >>-----Original Message-----
> >>From: Marcus Nilsson [mailto:marcus.nilsson at cannondale.com]
> >>Sent: Monday, November 25, 2002 11:58 PM
> >>To: Robertson, Brown; nagios-users at lists.sourceforge.net
> >>Subject: Re: [Nagios-users] Using Sendmail with MS Exchange
> >>
> >>
> >>I am having the same problem. I have given up on tweaking sendmail,
> >>instead im trying to use Mutt for sending mail from command
> >>line since
> >>Mutt can use another MTA that localhost. I know that Pine can
> >>send mail
> >>from command line as well (and I have successfully done so).
> >>I know that
> >>this principle will work but I have not had the time to
> configure it
> >>yet. Anyone using this way or any other solution involving
> >>sending mail
> >>via an exchange server, please share your experiences ;)
> >>
> >>/ Marcus
> >>
> >>
> >>Robertson, Brown wrote:
> >>
> >>
> >>>I realize this isn?t an explicit Nagios issue, but perhaps
> >>>
> >>due to it?s
> >>
> >>>implicit nature, I can get some help from you pros. I?m
> >>>
> >>trying to use
> >>
> >>>nagios to send notifications using sendmail. My problem is
> >>>
> >>that I need
> >>
> >>>these messages sent to our MS Exchange 2000 server which
> >>>
> >>functions as
> >>
> >>>the companies? major MTA and communications server. Does
> >>>
> >>anyone know any
> >>
> >>>links that might have some tips on how to properly
> >>>
> >>configure sendmail.cf
> >>
> >>>in this configuration? Or are there perhaps any better
> >>>
> >>ideas? Thanks in
> >>
> >>>advance.
> >>>
> >>>
> >>>
> >>>Brown Robertson
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >>
> >>-------------------------------------------------------
> >>This SF.net email is sponsored by: Get the new Palm Tungsten T
> >>handheld. Power & Color in a compact size!
> >>http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> >>_______________________________________________
> >>Nagios-users mailing list
> >>Nagios-users at lists.sourceforge.net
> >>https://lists.sourceforge.net/lists/listinfo/nagios-users
> >>
> >
> >
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Get the new Palm Tungsten T
> handheld. Power & Color in a compact size!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
More information about the Users
mailing list