Re: [exim] system filter help to restrict outgoing emails

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Terry
日付:  
To: Exim-users
題目: Re: [exim] system filter help to restrict outgoing emails
On 2010-01-18 14:01, yoyo yoyo wrote:
> Hi all,
>
>
> I would like to create a filter in exim system filter file as follows:-
>
> 1) A domain/user should be allowed to send mails out (outgoing mails) only
> to allowed domains.
>
> 2) The allowed domains will be more than one.
>
> 3) And also one user ceo@??? will be allowed to send mails out
> without above restrictions.
>
> Something like this....
>
> If
> From *.localdomain.com AND NOT To:*.alloweddomain.com
> Then
> Discard
>
> If
> From ceo@??? To:*.*
> Then
> deliver
>
> Can anyone post a simplified sample rule for this.
>
> In MailScanner i am able to achieve this with a simple rule:
> From:     *@localdomain.com and To: *@alloweddomain.com     deliver
> From:     *@localdomain.com  delete

>
> I am planning to switch over to a server without mailscanner.
>
> Thanks in advance for any help.
> DB.
>


We have a set up along them lines I got the info off the list here so it should show in a search some where

     senders = :^[^@]+@(?!${rxquote:example.com}\$):\
                       lsearch;/permitted/senders


I have that in my routers. Only two people are allowed to send email and the rest of building can only send internal emails.
They use squirrelmail and if they have to send an email to the out side it gets saved as a draft into a shared imap folder.
The people who can send then just resume the draft. System works well.

I see there is also some thing in the faq


http://exim.org/exim-html-4.50/doc/html/FAQ_27.html#TOC405




--
Terry Danter