[COLUG] sendmail question?

David D. Lucas ddlucas at lse.com
Wed Jul 7 14:07:54 EDT 2004


You should take advantage of the aliases file to route either specific 
users to the new mail server, or if it is easier, route only local users 
to the localhost and everyone else to the new server.  There are many 
ways to do it.  Make sure you rebuild the aliases file if it is using 
the dbm format and restart sendmail for them to take affect.  Do a man 
on aliases for more info.  You should have the equivalent.

Best wishes,
Dave

P.S.  BTW, to fix your current user, see if procmail is or equivalent is 
in use and use the ~/.forward to route traffic to user at newserver.com .


frank_rieder at bankone.com wrote:
> If it would blindly send root mail, would it go to root at capital.edu?
> That could cause some confusion for whomever the mail is received.
> 
> 
> 
> Frank Rieder
> Operations Specialist
> Banc One Leasing Corporation
> Mail code OH1-1085
> Phone: 614-213-4591
> Fax: 614-213-2083
> toll-free 800-879-7184 ext. 34591
> Email : Frank Rieder at Bankone.com
> 
> 
> 
> 
>                                                                                                                                                 
>                     "Austin Gresham"                                                                                                            
>                     <austin.gresham@       To:     "'Central OH Linux User Group'" <colug at colug.net>                                            
>                     avail.com>             cc:                                                                                                  
>                     Sent by:               Subject:     RE: [COLUG] sendmail question?                                                          
>                     colug-bounces at co                                                                                                            
>                     lug.net                                                                                                                     
>                                                                                                                                                 
>                                                                                                                                                 
>                     07/07/2004 12:01                                                                                                            
>                     PM                                                                                                                          
>                     Please respond                                                                                                              
>                     to Central OH                                                                                                               
>                     Linux User Group                                                                                                            
>                                                                                                                                                 
>                                                                                                                                                 
> 
> 
> 
> 
> 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
>>
> 
> 
> 
> _______________________________________________
> colug mailing list
> colug at colug.net
> http://www.colug.net/mailman/listinfo/colug
> 
> 
> 
> 
> 
> 
> This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you.
> 
> _______________________________________________
> colug mailing list
> colug at colug.net
> http://www.colug.net/mailman/listinfo/colug
> 

-- 

+------------------------------------------------------------+
| David Lucas                      mailto: ddlucas @ lse.com |
| Lucas Software Engineering, Inc.   (740) 964-6248 Voice    |
| Unix,Java,C++,CORBA,XML,EJB        (614) 668-4020 Mobile   |
| Middleware,Frameworks              (888) 866-4728 Fax/Msg  |
+------------------------------------------------------------+
| GPS Location:  40.0150 deg Lat,  -82.6378 deg Long         |
| IMHC: "Jesus Christ is the way, the truth, and the life."  |
| IMHC: "I know where I am; I know where I'm going."    <><  |
+------------------------------------------------------------+

Notes: PGP Key Block=http://www.lse.com/~ddlucas/pgpblock.txt
IMHO="in my humble opinion" IMHC="in my humble conviction"
All trademarks above are those of their respective owners.



More information about the colug mailing list