Dear,
        Did you enter a space before the local_only ? 
[space or tab]smtpd_restriction_classes=local_only

_____
邓卫华  信息课
高时(厦门)石业有限公司
_____________________________________
TEL:0592 7221600     Mobile:18950000312


-----邮件原件-----
发件人: Hiren Mistry [mailto:[email protected]] 
发送时间: 2010年6月3日 16:33
收件人: [email protected]; Deng Wei Hua
主题: Re: How to create a Postfix class for restrict senderlevel


Dear, Weihua.Deng

I have tried as you suggest but it show error in log. Below I mentioned 
error from mail log.

==> mail.err <==
Jun  1 19:28:53 test1 postfix/smtpd[12604]: fatal: restriction class 
`local_only' needs a definition

==> mail.log <==
Jun  1 19:28:54 test1 postfix/master[321]: warning: process 
/usr/lib/postfix/smtpd pid 12604 exit status 1
Jun  1 19:28:54 test1 postfix/master[321]: warning: 
/usr/lib/postfix/smtpd: bad command startup -- throttling
Jun  1 19:29:54 test1 postfix/smtpd[12733]: fatal: restriction class 
`local_only' needs a definition


Kindly guide me now what I need to do, is there any mistake in class 
creation ?


Regards,
Hiren Mistry



On Tuesday 01 June 2010 05:30 PM, [email protected] wrote:
> Send Users mailing list submissions to
>       [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>       http://lists.policyd.org/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
>       [email protected]
>
> You can reach the person managing the list at
>       [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Users digest..."
>
>
> Today's Topics:
>
>     1. ??:  How to create a Postfix class for restrict senderlevel
>        (Deng Wei Hua)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 31 May 2010 22:04:59 +0800
> From: "Deng Wei Hua"<[email protected]>
> Subject: [policyd-users] ??:  How to create a Postfix class for
>       restrict senderlevel
> To:<[email protected]>
> Message-ID:<[email protected]>
> Content-Type: text/plain; charset="gb2312"
>
> Dear, Hiren
> you should use smtpd_recipient_restrictions in main.cf of postfix.
>
> smtpd_recipient_restrictions=check_sender_access hash:/etc/postfix/mysender,
> permit_mynetworks,
> ..
> ..
> smtpd_restriction_classes=local_only
> local_only=check_recipient_access hash:/etc/postfix/my_rcp,
> reject
> #vi /etc/postfix/mysender
> [email protected] local_only
> #vi /etc/postfix/my_rcpt
> yourdomain.com OK
>
> and then run postmap for mysender and my_rcpt
>
> Regards
>
> Weihua.Deng
>
> ________________________________
>
> From: [email protected] ?? Hiren Mistry
> Sent: 2010-5-31 (???) 17:47
> To: [email protected]
> Subject: [policyd-users] How to create a Postfix class for restrict 
> senderlevel
>
>
>
> Hi,
>
> I am new to use postfix. I want to create a restriction level for
> sending policy in postfix. I need to set sending policy like "Only Some
> User Can Send Mail to Outside Network and Other Can Send Only in Local
> Network"
>
> Any one can guide me, How to create this policy ?
>
> Regards,
> Hiren Mistry
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.policyd.org/mailman/listinfo/users
>
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/ms-tnef
> Size: 5033 bytes
> Desc: not available
> Url : 
> http://lists.policyd.org/pipermail/users/attachments/20100531/7dc7c364/attachment-0001.bin
>
> ------------------------------
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.policyd.org/mailman/listinfo/users
>
>
> End of Users Digest, Vol 24, Issue 1
> ************************************
>
>

_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users

Reply via email to