Any attachment should not deliver to cross domain

Discussion in 'HOWTO-Related Questions' started by Arraman, May 22, 2019.

?

Any attachment should not deliver to cross domain

  1. Any attachment should not deliver to cross domain

    1 vote(s)
    100.0%
  2. Any attachment should not deliver to cross domain

    0 vote(s)
    0.0%
  1. Arraman

    Arraman New Member

    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
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Did you read your text before posting? I can not understand what you are asking, your requirements are contradictory.
     
  3. Arraman

    Arraman New Member

    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
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Have you tried Internet Search Engines with
    Code:
    postfix filter attachment
    or
    Code:
    postfix block attachment
     

Share This Page