Re: [exim] ACL to stop an account to send email

2018-02-03 Thread Luciano Rinetti
To avoid the intricate grammar of the acl rules, i found this simple
suggestion:
https://www.tekovic.com/exim-acl-for-blocking-certain-senders
It worked the first time, the denied sender, can read its mailbox, but
it receive an "Administrative prohibition."
message when it try to send an email.
Of course i restarted exim4 with:
kill -HUP `cat /var/run/exim4/exim.pid`

Hope this may be helpful to others.

On 2018-02-03 12:38, Jeremy Harris wrote:
> On 03/02/18 11:26, Luciano Rinetti wrote:
> > how should be wrote the acl in the ACL configuration section of
exim.conf ?
>
>
>
http://exim.org/exim-html-current/doc/html/spec_html/ch-access_control_lists.html#SECTaclconditions
>
> --
> Jeremy
>
>



-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] ACL to stop an account to send email

2018-02-03 Thread Jeremy Harris
On 03/02/18 11:26, Luciano Rinetti wrote:
> how should be wrote the acl in the ACL configuration section of exim.conf ?


http://exim.org/exim-html-current/doc/html/spec_html/ch-access_control_lists.html#SECTaclconditions

-- 
Jeremy

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] ACL to stop an account to send email

2018-02-03 Thread Luciano Rinetti
Thank you Marius,
i think the b) option is the one i choose with acl_check_out:
Let suppose the account is:
xyz@domain.com
how should be wrote the acl in the ACL configuration section of exim.conf ?


On 2018-02-03 10:44, Cyborg wrote:
> Am 03.02.2018 um 00:10 schrieb Jasen Betts:
> > On 2018-02-02, Luciano Rinetti  wrote:
> >> How can i write an ACL to stop an account to send email ?
> >> And continue to use IMAP server to read email ?
> >> The mail server (Ubuntu server) uses Exim4 4.74 and Courier-imap 4.8.0.
> >
>
> a) your courier server has nothing to do with exim, so : yes, you can.
>
> b)
>
> I your case, these acls seems to be the best attempts:
>
> acl_check_auth:
> acl_check_mail:
> acl_check_rcpt:
>
> If the account uses smtp-auth , just deny it there.
> If the account uses a fixed sender address, use check_mail
> and you guessed it, if you need to stop mails to specific recipients,
> use check_rcpt
>
> Any of these acls has unique variables that might come handy. Check with
> the Exim-Docs
>
> hint:
>
> deny condition ${if eq{$..}{"sender@???"}{yes}{no}}
>
>
> Marius
>
>
>

-- 
Cordiali Saluti / Best Regards

Luciano Rinetti
l.rine...@movimatica.com
Mob. 335.7878.602
 
Movimatica S.r.l.
www.movimatica.com - i...@movimatica.com
__
sede Operativa:
Centro Pier della Francesca
Fabbricato 4, Scala P, 2° Piano
C.so Svizzera, 185 - 10149 Torino - Italy
Tel. +39 011 7767694 - Fax +39 011 746179
__



-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] ACL to stop an account to send email

2018-02-03 Thread Cyborg
Am 03.02.2018 um 00:10 schrieb Jasen Betts:
> On 2018-02-02, Luciano Rinetti  wrote:
>> How can i write an ACL to stop an account to send email ?
>> And continue to use IMAP server to read email ?
>> The mail server (Ubuntu server) uses Exim4 4.74 and Courier-imap 4.8.0.
>

a) your courier server has nothing to do with exim, so : yes, you can.

b)

I your case, these acls seems to be the best attempts:

acl_check_auth:
acl_check_mail:
acl_check_rcpt:

If the account uses smtp-auth , just deny it there.
If the account uses a fixed sender address, use check_mail
and you guessed it, if you need to stop mails to specific recipients,
use check_rcpt

Any of these acls has unique variables that might come handy. Check with
the Exim-Docs

hint:

deny condition ${if eq{$..}{"sen...@blah.xx"}{yes}{no}}


Marius


-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] ACL to stop an account to send email

2018-02-02 Thread Jasen Betts
On 2018-02-02, Luciano Rinetti  wrote:
> How can i write an ACL to stop an account to send email ?
> And continue to use IMAP server to read email ?
> The mail server (Ubuntu server) uses Exim4 4.74 and Courier-imap 4.8.0.

Find out how that account is sending mail and block it. there's
probably some evidence in the received header.

-- 
This email has not been checked by half-arsed antivirus software 

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


[exim] ACL to stop an account to send email

2018-02-02 Thread Luciano Rinetti
How can i write an ACL to stop an account to send email ?
And continue to use IMAP server to read email ?
The mail server (Ubuntu server) uses Exim4 4.74 and Courier-imap 4.8.0.




-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/