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 ?
LVL 1
marlleyAsked:
Who is Participating?
 
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
 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.