RE: [courier-users] Courier-mta as Pre-Processor/Relay

This is a discussion on RE: [courier-users] Courier-mta as Pre-Processor/Relay within the Courier-Imap forums, part of the Mail Servers and Related category; From: Abid Saigol (Campbell Cohen) [mailto:abid@canadavisa.com] > > My company is implementing a MS Exchange (in the ...


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-05-2005
Bowie Bailey
 
Posts: n/a
Default RE: [courier-users] Courier-mta as Pre-Processor/Relay

From: Abid Saigol (Campbell Cohen) [mailto:abid@canadavisa.com]
>
> My company is implementing a MS Exchange (in the Small Biz
> Server) server. We would like to implement a *nix based MTA
> to pre-process all email for viruses and spam. I have used
> Courier-MTA before and would like to use it for this purpose.
>
> My idea is as follows:
>
> Point my domain's MX to the Courier box.
>
> Setup Courier to:
> - accept mail for my domain
> - point my domain to the Exchange server in esmtproutes
>
> The question is if I set DEFAULTDELIVERY to maildrop and
> configure maildrop for spam scanning with Spamassassin, will
> it work? I am thinking the esmtpd will accept and the email
> and immediately queue for relaying and maildrop will never be
> called. If so, then how can I configure Courier to accept
> all the email, preprocess and the immediately relay to
> exchange with envelope info intact.


That is similar to what we do here. This is the way we have it set up:

The domain is listed in both esmtpacceptmailfor and hosteddomains. Courier
has a list of all of the valid mailboxes in the userdb. Each account has
it's own home directory on the Courier server. DEFAULTDELIVERY is set to
maildrop.

/etc/courier/maildroprc:
xfilter "spamc"

$HOME/.mailfilter:
to "! username@exchangeserver.domian.com"

I also have Amavisd-new as a courierfilter to do virus scanning (with
ClamAV). If you want to do SMTP rejects for spam, you can run SpamAssassin
from Amavis as well, but you will not be able to tag the messages if you run
it that way.

One advantage of this approach is that Courier can reject emails to invalid
users immediately. If you let Courier accept all mail for the domain,
Exchange will reject the mail and then Courier will have to generate a
bounce to the (probably forged) sender.

Bowie


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:28 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0