"Christopher Rath" <[EMAIL PROTECTED]> writes:

> Thanks for the pointer.  From reading the Exim docs, it looks to me like
> what I need to do is use a per-address filter (as described in
> http://www.exim.org/exim-html-4.10/doc/html/spec_39.html#SECT39.8 ).
> 
> I wonder if anyone on the list has used a per-address filter instead of home
> directory invoked filters; with Exim, of course.

If you are wanting to use TMDA with Exim in 'global' mode it is fairly 
straightforward. I have this setup running like this for some months now.

You mention a number of things in your initial mail but if we look at main 
question - global TMDA... there are a number of assumptions which need to be
clarified.

You say global mode equates to "I don't need to set up user accounts for every
email address that might potentially receive email". If you are saying "user 
accounts" means Linux accounts then I don't fully agree. If you pull mail off
your ISP's server using your own SMTP server (Exim) to 'process' them in TMDA 
where are you going to store messages for users to pickup via POP from your 
Linux server? Also if you sent mail out using TMDA and you want to take 
advantage of tagged address you are going to need user specific crypt keys.

If you are saying (as I believe you are) that you don't want to bother each 
user with black/white lists etc. and so want a global (i.e. managed by the geek
:-) ) setup then that is what I have done completely with Exim. The only 
difference is that I don't pickup mail from ISP. You do *not* need to use Exim
filters, in fact I would not recommend to.

I have setup:
1) Global tmdarc in /etc
2) Global tmda directory in /usr/share/tmda with incoming and outgoing files
plus in /usr/share/tmda/lists I put blacklist, whitelist and 
whitelist_confirmed
3) in Exim a router and transport to deal with incoming mail for users, from 
Exim configure file:
+++++++++++ snip +++++++++++++
# Router for TMDA
tmdaprocess:
  driver = accept
  check_local_user
  no_verify
  no_expn
  local_part_suffix = -*
  local_part_suffix_optional
  transport = tmda_pipe

# Transport for TMDA
tmda_pipe:
  driver = pipe
  command = /usr/bin/python2 /usr/bin/tmda-filter
  return_path_add
  delivery_date_add
  envelope_to_add
  user = $local_part
  group = tmda
  environment = EXTENSION=${substr_1:$local_part_suffix}:\
                RECIPIENT=$local_part$local_part_suffix@$domain
+++++++++++ snip +++++++++++++
after emails are 'approved' by TMDA the then are processed as clean addresses 
and delivered to users specific Maildirs for pickup by POP.

I suspect you will be using Exim 3.x, you will find Exim 4.x with many new 
features. I would recommend you to put on geek hat and upgrade - it's well 
worth it.

I have also setup global tofmipd for processing and tagging of mails from 
Outlook clients. But, once again, you need to have personal crypt files for 
each user. Of course they won't need to be bothered with that.

If you want more specifics happy to take offline. It does all work though and
is completely transparent, the only manual thing I have still to do is 
releasing queued mail but once the Web interface is ready for prime time I will
make that available for users.

Patrick

_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to