Re: [exim] Completely lost

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Cyborg
Data:  
Para: exim-users
Asunto: Re: [exim] Completely lost
Am 13.08.2012 17:26, schrieb Hill Ruyter:
> Hi guys
>
> I have been using exim4 for many years and there are some things that I have
> never managed to get my head around
> I am coming for help and I know many will say I should read the docs but
> that is part of the problem. I don't understand!
>
> I am running Exim on an Ubuntu server which I know differs in a number of
> ways to the standard configuration and I think may not be supported by this
> mailing list but any help will be appreciated
>
> My main issue is with trying to get ACLs working properly
>
> The things I want to do is
>
> When a connection comes from an authenticated client then just let it
> proceed
> If a connection comes from elsewhere I want it to do fns checking and also
> prevent mail being sent as if from me


acl_check_mail:

     ....
     # if you want relaying from friends
     accept  hosts         = +relay_from_hosts
     accept  authenticated = *


     drop  condition = whatevercheck you want to fail for a drop
               log_message   = whatevercheck i like failed for 
$sender_address


     drop ... next check
      ...


      # Accept all that made it throu the checks
      accept





> One of my biggest spam problems is with mail appearing as if it is from me,
> I am sure this must be easy to filter but I just can't seem to get the
> server to even act on filters I try to configure.


:)

put something like this into the above ACL before the final accept

     drop condition = ${if 
eq{$sender_address}{${local_part}@${domain}}{1}{0}}
              log_message   = I don't send to myself ...



glad to help out.

Marius