Re: [exim] Selective filters incoming messages

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Renaud Allard
Ημερομηνία:  
Προς: laurel
Υ/ο: exim-users
Αντικείμενο: Re: [exim] Selective filters incoming messages


Laurel Fitzhugh wrote:
> Hello,
>
> I need to filter some email accounts at ourdomain to accept email from @
> ourdomain.com only. My hosting company said this would have to be done with
> an exim filter, but I have not been unable to find anything on this. They
> said they would install it and test it if I gave them the filter. I'm sorry
> to be so ignorant, but I cannot find anything I understand through
> searching. If anyone knows what commands would work to create this filter,
> I would appreciate the information. I'll take that and slog through with a
> test account.
>
> Thanks,
>
> laurel



Hello,

Something like this should work if you use authentication.

        accept
        authenticated   = *
        endpass
        message         = Sending mails from $sender_address_domain is
not permitted
        sender_domains  = +local_domains



If you are not using authentication, you can simply use:

    deny
    hosts        = +relay_from_hosts
        message         = Sending mails from $sender_address_domain is
not permitted
        sender_domains  = ! +local_domains



    

--
010100100110010101101110011000010111010101100100
010000010110110001101100011000010111001001100100