Hello Till , Can you please help me to fix my problems. Please find below the same. I'm Using Postfix and created virtual domain for example domain1 and domain2 my requirement is that if we send any mail with attachment from domain1 to domain2 that should be deliver but if we are sending mail from domain1 to domain2 that should be rejected. Any attachment should not deliver to cross domain. - Thanks
Did you read your text before posting? I can not understand what you are asking, your requirements are contradictory.
Okay Fine let me explain you the requirement and my environment in points. # My environment/Settings 1) I am Using Postfix in centos 7.4. 2) I have configured two domains in same server . eg : domain1 and domain2 # Requirement 1) From domain1 to domain2 mail are allowed (bidirectional). 2) from domain1 to domain1 mail as well as attachment are allowed. 3) But if any mail from domain1 with attachment to domain 2 it should rejected. In short any bidirectional are allowed between both domains but attachment should not deliver from domain1 to domain2 but domain2 to domain1 attachment are allow . Regards... A Raja Raman
Have you tried Internet Search Engines with Code: postfix filter attachment or Code: postfix block attachment