On 03/01/2016 05:35 PM, PICCORO McKAY Lenz wrote:
> 2016-03-01 14:05 GMT-04:30 Gordon Messmer <[email protected] 
> <mailto:[email protected]>>:
>
>     Any user that authenticates is allowed to relay, so I'd think
>     that's the
>     part you need to protect.
>
> any user can sent to internal domain so that no so "so" protected but
> yes, in this part i need to filter as u suggested in the next part
>
>     One option would be to disallow ESMTP authentication entirely on
>     whatever server the users are using, and to set up a separate mail
>     relay
>     server where you can filter authentication to only specific
>     whitelisted
>     users.
>
> This solution its too complicated, inplicts another server, we must 
> keep simple and single..

Writing  a courierfilter is more complicated than putting up an instance 
of Courier's SMTP server whose only purpose is to relay mail for select 
authenticated users.

In fact, you might not even need a separate instance, depending on how 
your users are configured now.  If your users aren't using SMTP MSA, 
then edit /etc/courier/esmtp-msa and configure the service for 
authentication.  The method by which you filter users in the 
authentication depends on which auth service you use.

Everyone else, who doesn't need to relay, should use SMTP on port 25.  
/etc/courier/esmtpd should have ESMTPAUTH set to "" so that 
authentication is disabled.

> THIS IST LIKE I NEED:
>
>
>     Another would be to allow authentication, but use a courierfilter to
>     check the sender and recipients and apply a local policy to allow or
>     deny relaying messages.
>
>
> NOW: my SMTP courier-mta its all authenticated, noone can sent without 
> auth,
>
> so as u mention i need to setup that "courierfilter" how could i do 
> this!!!????

See "MAIL FILTER IMPLEMENTATION":
http://www.courier-mta.org/courierfilter.html

I maintain a python framework for writing filters.  There's a perl 
framework as well.  Courier ships with a couple of examples that don't 
use either.

http://phantom.dragonsdawn.net/~gordon/courier-pythonfilter/
http://search.cpan.org/dist/Courier-Filter/

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to