• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 958
  • Last Modified:

message_size_limit per domain

I have a postfix ( amavisd-new, spamassassin, clamav)mx gateway with 5 domains. The message_size_limit is 15M, but one of my clientes needs a conf of message_size_limit=5M(for example).
 I know that message_size_limit is a global configuration and i dont want to install another postfix with another configuration at the same machine. Some one told me to use www.policyd.org. Can i have some examples of configuration? Or another way to do this ?
0
marlley
Asked:
marlley
  • 3
  • 2
1 Solution
 
waleedaCommented:
you can create deferent send connectors for each domain, and give message limit on each connector
0
 
marlleyAuthor Commented:
give me an example ( some code ) please.
0
 
waleedaCommented:
The way you would do this is create two SMTP Connectors and set the size limits on each one, create a Mail-Enabled group for the users who are going to have the small message size limit and put their accounts into this group.

Now what you need to do is go to the SMTP Connector with the largest message size and add the group you just created to the "Delivery Restrictions" tab.

This should do the trick for you.
0
 
marlleyAuthor Commented:
Sorry but we are talking about postfix right , i think what you are saying  is related to exchange.
0
 
marlleyAuthor Commented:
No solution for my problem.
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now