Thanks for the reply but my problem is little bit different .. Here is what
i am looking for.

1. I am using postfix as MTA which is correctly delivering mails to local
and remote users.
2. I am willing to limit recipient per message which i achieved using
smtpd_recipient_limit but it counts local recipient as well.
3. Now i configured relay server with smtpd_recipient_limit feature and
used relayhost feature in main.cf to send all outgoing mails to my relay
server and deliver local mails locally without touching relay server.
4. I configured smtpd_recipient_limit in relay server so that i can limit
outgoing recipient in every mail but this strategy is not working for me.

I hope now you have understood my issues. I only willing to know is it
right strategy or not, if right than why it is not working.

I hope you all will help me on this issue.



On Tue, Jun 17, 2014 at 9:59 PM, Noel Jones <njo...@megan.vbhcs.org> wrote:

> On 6/17/2014 11:06 AM, Joy wrote:
> > Dear All,
> >                   I  want to restrict users to not send more than 5
> > recipient in TO/CC/BCC to external recipient so i have implemented
> > one relay server to restrict the same. I configured my relay server
> > with following line in main.cf <http://main.cf>
> >
> >   smtpd_recipient_limit = 5
> >
> > I reloaded the server but so far no success while all is running
> > well mail is being delivered through relay server to external
> > recipient.
> >
> > Please let me know what is going wrong.
>
> The smtpd_recipient_limit isn't intended for that purpose.  You'll
> need some sort of policy server to do what you ask.  Or maybe some
> milter has that ability.
> http://www.postfix.org/SMTPD_POLICY_README.html
>
>
>   -- Noel Jones
>

Reply via email to