[ale] Exim relay setup

James P. Kinney III jkinney at localnetsolutions.com
Fri Apr 11 23:22:53 EDT 2003


I will echo Jenn's sugestion on MailScanner. It will also scan mail for
virus bugs if an anti-virus it knows about is available. I use f-prot
(free for personal workstation use, cheap for small office mailserver
use) www.f-prot.com.  MailScanner is much easier to set up than than any
of the other systems. It will integrate spamassassin processing as well.
Great tool.

On Fri, 2003-04-11 at 18:11, J.M. Taylor wrote:
> 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
-- 
James P. Kinney III          \Changing the mobile computing world/
CEO & Director of Engineering \          one Linux user         /
Local Net Solutions,LLC        \           at a time.          /
770-493-8244                    \.___________________________./
http://www.localnetsolutions.com

GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics) <jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7 

 This is a digitally signed message part




More information about the Ale mailing list