This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to Block External Recipient to Specific user in Domain Pure Message in Linux

HI Guys, 

 

Does anyone know how to block external user eg  john@contoso.com emails going to the following users internal Domain user@domain.com.au and user1@domain.com.au but allow it to rest of domain users .. 

i had a play around under Puremessage Unix

under Linux Policy --> Policy Rules 

set Mail from external host --> contains --> john@contoso.com.au

execute acttion and ruels --> Reject the message 

Add recipients --> user@domain.com;user1@dmain.com 

save rule 

 

any feedback would be appreciated . cheers 



This thread was automatically locked due to age.
Parents
  • Hi,

    sounds like you are looking for a per user mapping, e.g. predefined blacklisted-senders-per-user, rather than a per recipient/sender policy modification (which is at least what I read from your description and steps).

    So, given your example you might put john@contoso.com to the blacklists of user@domain.com.au and user1@domain.com.au, either using the web interface or by looking into using e.g. pmx-list add and have a sender/recipient dependent outcome in some test as:

    address :all :memberof "From" "blacklisted-senders-per-user"
    envelope :memberof "From" "blacklisted-senders-per-user"

    Those tests wrapped up in if anyof (address,envelope) then reject 'blacklisted' at a proper spot in your policy should do the trick.

    Best regards
    Jens

Reply
  • Hi,

    sounds like you are looking for a per user mapping, e.g. predefined blacklisted-senders-per-user, rather than a per recipient/sender policy modification (which is at least what I read from your description and steps).

    So, given your example you might put john@contoso.com to the blacklists of user@domain.com.au and user1@domain.com.au, either using the web interface or by looking into using e.g. pmx-list add and have a sender/recipient dependent outcome in some test as:

    address :all :memberof "From" "blacklisted-senders-per-user"
    envelope :memberof "From" "blacklisted-senders-per-user"

    Those tests wrapped up in if anyof (address,envelope) then reject 'blacklisted' at a proper spot in your policy should do the trick.

    Best regards
    Jens

Children
No Data