[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vps-mail] Forwarding back to virtmap file



Jim Smith wrote:

I have a client wanting to use their Exchange server for email but wanting
to run it through my spam/virus filters first. They have over 100 users.
Before their filtering request, I had their mail forwarded via virtmap from
bjones@xxxxxxxxxxxxxxx (for example) to bjones@xxxxxxxxxxxxxxxxxxxx with the
MX records set accordingly.
However, to run their mail through my filters, I will set up users for each
of them (naming convention is domain001, domain002, domain003, etc), so if
bjones@xxxxxxxxxxxxxxx's user name is domain042, that user's email will be
run through the filters, and at the end of the procmailrc file if it
survives the gauntlet, it is sent to domain042@xxxxxxxxxxxxxxx which another
virtmap record will be used to send it to on its way to the exchange server
as bjones@xxxxxxxxxxxxxxxxxxxxx

This way, I can set up a block of users for them to use and they can use
their iManager to assign email addresses to an available user name from the
block (and the user@domain to their Exchange server.

Because I don't want to individually edit that many individual procmail
files every time they add or change an address, I need to know how to tell
the procmailrc file to take the message from variable $USER and send it to
$USER@xxxxxxxxxxxxxxx and then stop rather than sending it on to the pop3
box.

Two questions:
1. Is there an easy way to do this?
Or
2. Did I miss something that would make this a lot easier?
the easy way to have a filtering gateway is just to use milter to filter the email. A very good one if you know perl is mimedefang (installable from the ports) but you can also use spamc-milter and the integrated milter in clamd ( by removing the actual clamd and installing from port with the option "milter"). This is not just a snap of a finger but not too hard.

You can this way just let everything as they are and add filtering to sendmail. I use Three different systems on my VPS'es depending on the needs :

- spamc/clamd milter
- mimedefang
- mailscanner

in order of complexity.

By just RTFM you can install clamd milter in ten minutes, spamc is also very easy. The two are on the ports so there s no big configuration to do. Added value of milter is that you can reject email BEFORE they go to the mailbox.

Regards,
ghislain.

--

AQUEOS - Service Informatique
1, Rue Albert Einstein
77420 Champs sur marne
 	
Service technique :  support@xxxxxxxxxx
Service commercial :  commercial@xxxxxxxxxx
Tel : 06.63.79.27.38 /  01.64.02.99.37



Main Index | Thread Index
Match: Format: Sort by:
Search: