[ale] Exim relay setup

J.M. Taylor jtaylor at onlinea.com
Fri Apr 11 18:11:38 EDT 2003


John,

I'm hardly an exim "god" but have been using it for several years. I've
used it to relay, and to spam filter, but never both at the same time. :(

What I would highly recommend tho is that you check out mailscanner.  It
does virus and spam filtering (using spam assassin), and is a LOT easier
to set up than trying to run stuff inline from exim.
http://www.sng.ecs.soton.ac.uk/mailscanner/

http://www.sng.ecs.soton.ac.uk/mailscanner/install/exim.shtml
Is the exim howto, and it's pretty much step-by-step. Running (as root)
exim -bt -d username at yourdomain.com
will be your best friend while testing this stuff, if you don't know that
already :)

Basically what you'd do for mailscanner is set up two separate exims - one
to listen on port 25 for incoming mail and deliver it to Mailscanner,
which  will scan the messages, and deliver them to your 2nd exim (which
would be configured very very simply as the relay in to your Exchange
server).  Because exim uses file based queues, this setup is really simple
even if it might seem counterintuitive to you sendmail people out there.

That's been my experience with doing this stuff, but I'd be really
interested if you find a solution just using a single exim config.

HTH and good luck,
jenn

John Miller said:
> Good afternoon Linux gods,
>
>
>
> 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.
>
>
>
> 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.
>
>
>
> 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.
>
>
>
> ###################################################################### #
>                      ROUTERS CONFIGURATION                         # #
>          Specifies how remote addresses are handled              #
> ###################################################################### #
>                          ORDER DOES MATTER                         # #
> A remote address is passed to each in turn until it is accepted.  #
> ######################################################################
>
> # Remote addresses are those with a domain that does not match any item
> # in the "local_domains" setting above.
>
> # Send all mail to a smarthost
>
> smarthost:
>   driver = domainlist
> #  transport = remote_smtp
>         transport = spamcheck
>   route_list = "* 192.168.2.23 byname"
>
> end
>
>
>
> # This transport is for SpamAssassin
> spamcheck:
>         driver = pipe
>         command = /usr/sbin/exim -oMr spam-scanned -bS
>         transport_filter = /usr/bin/spamc
>
>         bsmtp = all
>
>         home_directory = "/tmp"
>         current_directory = "/tmp"
>
>         user = mail
>         group = mail
>
>         return_path_add = false
>
>         log_output = true
>         return_fail_output = true
>
>         prefix =
>         suffix =
>
>
>
> John Miller
>
> TwinEngines, Inc.
>
> jmiller at twinengines.com
>
> phone: +1 404-522-4262 x601
>
>



_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list