[COLUG] sendmail question?
Austin Gresham
austin.gresham at avail.com
Wed Jul 7 12:01:17 EDT 2004
If you want to send all email to another server, called a "Smart Host' (i.e.
your Exchange server) use the Null Client feature in a new m4 configuration
file, called "nullclient.mc" or whatever you choose. Place this file in the
directory where your "m4" files are, sometimes "/usr/lib/sendmail-cf" or
equivalent. You'll know the right directory when you see these
subdirectories:
cf
domain
feature
hack
m4
mailer
ostype
Create the "nullclient.mc" file in this directory and add these lines:
include(`./m4/cf.m4')dnl
FEATURE(`nullclient',`<nameofinternalmailserver>')dnl
FEATURE(`nocanonify')dnl
Substitute "<nameofinternalmailserver>" with the hostname or IP address of
the Exchange Server. Also, be cautious of the backticks vs single quote
characters above, it makes a big difference.
Save it and run:
# m4 nullclient.mc > sendmail.cf
Copy the sendmail.cf over the current sendmail.cf (should be in /etc/mail)
and restart sendmail.
That's a basic configuration, but it's a place to start. Be aware that this
will blindly forward all email, even if sent to "root" or another local
account. This may not be what you want. If it's not, then there are other
slightly more complicated ways to do it.
-Austin
======================================
Austin Gresham CATE, GCUX
Avail Technologies, LLC
voice: 740-881-0067
fax: 740-881-0035
email: mailto:austin.gresham at avail.com
======================================
> -----Original Message-----
> From: colug-bounces at colug.net
> [mailto:colug-bounces at colug.net] On Behalf Of Dave Reed
> Sent: Wednesday, July 07, 2004 9:45 AM
> To: colug at colug.net
> Subject: [COLUG] sendmail question?
>
>
>
> At work they switched to a new mail server (running MS exchange I
> think). We still have Sun Solaris machines running sendmail. When a
> message is sent to dreed at capital.edu it goes through the new mail
> server and is delivered correctly, but when it is sent to just dreed,
> sendmail delivers it locally to /var/mail/dreed.
>
> The sysadmin is not a sendmail expert (nor a member of this list) but
> I told him I'd ask if anyone knew how to configure sendmail to always
> use a separate mailserver. He mentioned something about a "dumb" or
> "null" setting but google hasn't found the answer for him yet.
>
> Can anyone help?
>
> Thanks,
> Dave
>
>
> _______________________________________________
> colug mailing list
> colug at colug.net
> http://www.colug.net/mailman/listinfo/colug
>
More information about the colug
mailing list