Answer the question
In order to leave comments, you need to log in
Exim4 How to configure message filtering by attachments correctly?
Filtering messages by type of files in attachments is configured. When sending from a local domain address, everything works and is filtered. When receiving mail from outside, letters with unwanted attachments reach.
How to make it so that we would receive mail from the outside, taking into account filtering, and not filter mail from the local domain at all with this acl?
accept hosts = :
deny message = This message contains an deny file extension ($mime_filename)
senders = *
condition = ${if match{$mime_filename}{\N\.(txt|doc|pdf)$\N}}
decode = default
accept
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question