[EMAIL PROTECTED] wrote:
> Hi,
>
> I'm currently running a courier-mta (courier.example.com)
> with authmysq, maildrop and spamassassin as a xfilter. I'm
> hosting multiple domains at this server. A client (which for
> strange reasons) uses an MS Exchange-server
> (exch.example.com). All other domains than this clients
> domain must be delivered locally. Now, I want to spamfilter
> all his mail. I'm thinking subdomains here:
>
> client.com IN MX 10 courier.example.com
> exch.client.com IN MX 10 exch.example.com
>
> And at the end of /etc/courier/maildroprc, resend mail to
> [EMAIL PROTECTED] to [EMAIL PROTECTED] This need to be
> dynamic, as I don't know the usernames active at his server.
> I also need to trap [EMAIL PROTECTED] and forward it to myself.
>
> Another possibility would be to write a xfilter that invokes
> sendmail to resend the messages.
>
> Has anyone else done anything similar? Any ideas here?
I have never had the need to do this, but a thought came to my mind.
Courier supports sending all emails destined for a domain ("Virtual
Domain") into a single mailbox. For details look at
http://www.courier-mta.org/?makealiases.html.
Next, consider that local deliveries are already covered by the
/etc/courier/maildroprc, so the spam filtering and virus scanning have
already been taken care of. As to the authmysql as an xfilter, I'm not
completely sure what you mean.
Now set up a .courier-webmaster to point to your box, and a
.courier-default to remail the email to the Exchange server, and I think
you should be good to go. For information, see
http://www.courier-mta.org/?dot-courier.html. You will notice that the
.courier-default can see what the actual email address delivered to was,
which means that you should be able to harvest the intended recipient
from that.
A word of caution: this means all email will be accepted. If there is a
problem (like emailing an employee no longer with the company) then the
Exchange server will only notify Courier, not the original recipient.
That is why it is dangerous to relay messages between MTAs without the
MTA receiving the mail from the world knowing what users are valid.
My recommendation would be to either:
1. Host the mailboxes on Courier
- or -
2. Implement spam checking and antivirus on Exchange
That having been said, good luck, and let us know how it works out.
Sincerely,
David Gomillion
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users