[exim] system filter help to restrict outgoing emails

Page principale
Supprimer ce message
Répondre à ce message
Auteur: yoyo yoyo
Date:  
À: exim-users
Sujet: [exim] system filter help to restrict outgoing emails
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.