[ale] Exim relay setup

John Miller jmiller at twinengines.com
Fri Apr 11 17:15:52 EDT 2003








<span style='font-size:10.0pt;
font-family:Arial'>Good afternoon Linux gods,

<span style='font-size:10.0pt;
font-family:Arial'> 

<span style='font-size:10.0pt;
font-family:Arial'>I’m a newb trying to slowly learn how to use Linux and
integrate it with our windows world. I’m trying to setup Exim (v3.35) and
SpamAssassin (v2.53) to filter mail before it hits our Exchange server. 

<span style='font-size:10.0pt;
font-family:Arial'> 

<span style='font-size:10.0pt;
font-family:Arial'>I’ve got everything installed and configured. But all
the configuration guides assume that Exim will be the mail server. I just want Exim
to add spam information to the headers and relay the messages to Exchange (that
way nobody loses any mail and each user can deal with it how they please.) If
anyone out there is an Exim god, please let me know how this is done. 

<span style='font-size:10.0pt;
font-family:Arial'> 

<span style='font-size:10.0pt;
font-family:Arial'>I’ve attached the excerpt from /etc/exim/exim.conf.
You can see that the router has two transports. If I use remote_smtp the mail
is delivered but not scanned. If I use spamcheck the message is scanned but
never delivered. I’d prefer both to happen.

<span style='font-size:10.0pt;
font-family:Arial'> 

######################################################################<font
size=2 face="Courier New">#                      ROUTERS CONFIGURATION                         #<font
size=2 face="Courier New">#            Specifies how remote addresses are handled              #<font
size=2 face="Courier New">######################################################################<font
size=2 face="Courier New">#                          ORDER DOES MATTER                         #<font
size=2 face="Courier New">#  A remote address is passed to each in turn until it is accepted.  #<font
size=2 face="Courier New">######################################################################<font
size=2 face="Courier New"> <font
size=2 face="Courier New"># Remote addresses are those with a domain that does not match any item<font
size=2 face="Courier New"># in the "local_domains" setting above.<font
size=2 face="Courier New"> <font
size=2 face="Courier New"># Send all mail to a smarthost<font
size=2 face="Courier New"> <font
size=2 face="Courier New">smarthost:<font
size=2 face="Courier New">  driver = domainlist<font
size=2 face="Courier New">#  transport = remote_smtp<font
size=2 face="Courier New">        transport = spamcheck<font
size=2 face="Courier New">  route_list = "* 192.168.2.23 byname"<font
size=2 face="Courier New"> <font
size=2 face="Courier New">end

<span style='font-size:10.0pt;
font-family:Arial'> 

# This transport is for SpamAssassin<font
size=2 face="Courier New">spamcheck:<font
size=2 face="Courier New">        driver = pipe<font
size=2 face="Courier New">        command = /usr/sbin/exim -oMr spam-scanned -bS<font
size=2 face="Courier New">        transport_filter = /usr/bin/spamc<font
size=2 face="Courier New"> <font
size=2 face="Courier New">        bsmtp = all<font
size=2 face="Courier New"> <font
size=2 face="Courier New">        home_directory = "/tmp"<font
size=2 face="Courier New">        current_directory = "/tmp"<font
size=2 face="Courier New"> <font
size=2 face="Courier New">        user = mail <font
size=2 face="Courier New">        group = mail<font
size=2 face="Courier New"> <font
size=2 face="Courier New">        return_path_add = false<font
size=2 face="Courier New"> <font
size=2 face="Courier New">        log_output = true<font
size=2 face="Courier New">        return_fail_output = true<font
size=2 face="Courier New"> <font
size=2 face="Courier New">        prefix = <font
size=2 face="Courier New">        suffix = 

<span style='font-size:10.0pt;
font-family:Arial'> 

<span style='font-size:
12.0pt'>John Miller

<span
style='font-size:10.0pt;font-family:"Trebuchet MS";color:#BAA200'>Twin<font
size=2 color="#005b62" face="Trebuchet MS"><span style='font-size:10.0pt;
font-family:"Trebuchet MS";color:#005B62'>Engines<font size=2
color=navy face="Trebuchet MS"><span style='font-size:10.0pt;font-family:"Trebuchet MS";
color:navy'>, Inc.

<span style='font-size:
12.0pt'>jmiller at twinengines.com

<span style='font-size:
12.0pt'>phone: +1 404-522-4262 x601

<span style='font-size:
12.0pt'> 









More information about the Ale mailing list