The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Exim - Filter per account and message size

Discussion in 'E-mail Discussions' started by NinjaTrader, May 28, 2010.

  1. NinjaTrader

    NinjaTrader Registered

    Joined:
    Mar 29, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I am attempting to filter e-mail on 1 account on my domain via message size.
    I am new to Exim scripting and need to ensue this is correct before proceed.

    Basically check is for support@mydomain and the size is less than 3mb then allow, if not less than 3mb block and send response to sender.

    if $local_part_suffix is "support" and $message_size is above 3m then
    mail
    to $sender_address
    from Support@mydomain.com
    subject “RE: $h_subject:”
    test “$sender_address , $h_subject: , $tod_ful \n\nYour message was over our 3MB size limit and was not processed please try truncating your message and send again.
    seen finish
    endif

    Thank you for your assistance in advance.
     
Loading...

Share This Page