Re: Postfix Move Emails to TMP Queue Directory if recipent limit is more than 5

2012-11-05 Thread Ralf Hildebrandt
* /dev/rob0 : > But what happens when some smartaleck uses an "@" sign in the RFC > 5322 "display-name" field, as I did, above? It will break. > Joe@work > Joe@home Amen to that. I've seen that even in the From: header! -- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraß

Re: Postfix Move Emails to TMP Queue Directory if recipent limit is more than 5

2012-11-05 Thread /dev/rob0
On Mon, Nov 05, 2012 at 01:48:40PM +0100, Ralf Hildebrandt wrote: > * Prashanth P.Nair : > > I found that we can achieve this using header_check . > > > > # restrict based on message header content header_checks = > > pcre:/etc/postfix/header_checks > > > > /etc/postfix/header_checks: > > > > /^

Re: Postfix Move Emails to TMP Queue Directory if recipent limit is more than 5

2012-11-05 Thread Ralf Hildebrandt
* Prashanth P.Nair : > Thanks for the advise. > > I found that we can achieve this using header_check . > > # restrict based on message header content header_checks = > pcre:/etc/postfix/header_checks > > /etc/postfix/header_checks: > > /^To:([^@]*@){1,}/HOLD Sorry, your message has too man

Re: Postfix Move Emails to TMP Queue Directory if recipent limit is more than 5

2012-11-05 Thread Prashanth P.Nair
Thanks for the advise. I found that we can achieve this using header_check . # restrict based on message header content header_checks = pcre:/etc/postfix/header_checks /etc/postfix/header_checks: /^To:([^@]*@){1,}/ HOLD Sorry, your message has too many recepients. /^Cc:([^@]*@){1,}/ H

Re: Postfix Move Emails to TMP Queue Directory if recipent limit is more than 5

2012-11-02 Thread Noel Jones
On 11/2/2012 7:44 AM, Prashanth P.Nair wrote: > Using third party tool/script is strictly prohibited ..That is the > reason i dont use postfwd . It seems to me far less risky to use a popular peer-reviewed third-party script that you can review the source yourself, rather than trying to write some

Re: Postfix Move Emails to TMP Queue Directory if recipent limit is more than 5

2012-11-02 Thread Jan P. Kessler
> Using third party tool/script is strictly prohibited ..That is the > reason i dont use postfwd . So, what about postfix itself? Did you really analyze every line of the source code? > It would be greate if you could help me to customize > "smtpd-policy-template" for me The policy delegation

Re: Postfix Move Emails to TMP Queue Directory if recipent limit is more than 5

2012-11-02 Thread Prashanth P.Nair
Using third party tool/script is strictly prohibited ..That is the reason i dont use postfwd . It would be greate if you could help me to customize "smtpd-policy-template" for me On Fri, Nov 2, 2012 at 5:50 PM, Noel Jones wrote: > On 11/2/2012 6:45 AM, Prashanth P.Nair wrote: > > Hi Ralph > >

Re: Postfix Move Emails to TMP Queue Directory if recipent limit is more than 5

2012-11-02 Thread Noel Jones
On 11/2/2012 6:45 AM, Prashanth P.Nair wrote: > Hi Ralph > > I was trying to build a custom script which has below main.cf > entry > > smtpd_recipient_restrictions = check_policy_service > unix:private/policy,reject_unauth_destination > > and > > policy unix - n n

Re: Postfix Move Emails to TMP Queue Directory if recipent limit is more than 5

2012-11-02 Thread Prashanth P.Nair
Hi Ralph I was trying to build a custom script which has below main.cf entry smtpd_recipient_restrictions = check_policy_service unix:private/policy,reject_unauth_destination and policy unix - n n - 0 spawn user=nobody argv=/usr/libexec/postfix/perl.pl and scrip

Re: Postfix Move Emails to TMP Queue Directory if recipent limit is more than 5

2012-10-25 Thread Ralf Hildebrandt
* Prashanth P.Nair : > ok..Is it Possible Hold the queue If recipient Limit is more than 10 Yes. > and > process the HOLD queue using Perl script? You can use mailq to get queueIDs and then use postcat & postsuper from perl. -- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstra

Re: Postfix Move Emails to TMP Queue Directory if recipent limit is more than 5

2012-10-25 Thread Robert Schetterer
Am 25.10.2012 15:16, schrieb Prashanth P.Nair: > ok..Is it Possible Hold the queue If recipient Limit is more than 10 and > process the HOLD queue using Perl script? Ralf allready advised http://postfwd.org/ > > On Thu, Oct 25, 2012 at 5:15 PM, Robert Schetterer > wrote: >

Re: Postfix Move Emails to TMP Queue Directory if recipent limit is more than 5

2012-10-25 Thread Prashanth P.Nair
ok..Is it Possible Hold the queue If recipient Limit is more than 10 and process the HOLD queue using Perl script? On Thu, Oct 25, 2012 at 5:15 PM, Robert Schetterer wrote: > Am 25.10.2012 13:36, schrieb Prashanth P.Nair: > > Exact Requirement is ,If any email's have more than 10 recipient's ,I

Re: Postfix Move Emails to TMP Queue Directory if recipent limit is more than 5

2012-10-25 Thread Robert Schetterer
Am 25.10.2012 13:36, schrieb Prashanth P.Nair: > Exact Requirement is ,If any email's have more than 10 recipient's ,I > don't want to deliver those mail's to recipient's instead of that I want > to move those email to tmp queue folder. Later then Administrator > manually check the tmp queue and pr

Re: Postfix Move Emails to TMP Queue Directory if recipent limit is more than 5

2012-10-25 Thread Ralf Hildebrandt
* Prashanth P.Nair : > Exact Requirement is ,If any email's have more than 10 recipient's ,I don't > want to deliver those mail's to recipient's instead of that I want to move > those email to tmp queue folder. Later then Administrator manually check > the tmp queue and process the emails Use a po

Re: Postfix Move Emails to TMP Queue Directory if recipent limit is more than 5

2012-10-25 Thread Prashanth P.Nair
Exact Requirement is ,If any email's have more than 10 recipient's ,I don't want to deliver those mail's to recipient's instead of that I want to move those email to tmp queue folder. Later then Administrator manually check the tmp queue and process the emails 2012/10/25 Ralf Hildebrandt > * Pra

Re: Postfix Move Emails to TMP Queue Directory if recipent limit is more than 5

2012-10-25 Thread Ralf Hildebrandt
* Prashanth P.Nair : > Is it possible to Move any Emails to TMP Queue Directory if recipients are > more than 5 in Postfix 2.6 ? What is the function of the "TMP Queue Directory"? -- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München Sitz der Gesellschaft: M

Postfix Move Emails to TMP Queue Directory if recipent limit is more than 5

2012-10-24 Thread Prashanth P.Nair
Is it possible to Move any Emails to TMP Queue Directory if recipients are more than 5 in Postfix 2.6 ?