On 05/27/10 13:11, Muzammel Asghar wrote:
> I said i use postfix only for outgoing purposes not incoming mails
> purpose, and my aim is to implement quota for outgoing limit. so how
> its possible i use this option smtpd_recipient_restrictions ? I just
> want to use policyd for quota purpose only also.

It doesn't matter what you're using policyd for, you need the
check_policy_service in both places. Its just how the Postfix delegation
protocol works.

Recipient information is not available during the DATA stage. The true
size of the mail is not available during RCPT stage. While you may get
away with not adding it to the DATA section if you know exactly what
you're doing, I'd recommend you add it to both to prevent any odd issues
creeping in.

RCPT stage gives you the recipients for the smtp transaction, DATA stage
gives you the true size of the message. Without these two the data
policyd has to work with is incomplete.

Various policies are applied at various stages, both RCPT and DATA
depending on the module you're using.

Regardless of what you're doing, you must add the check_policy_service
to BOTH recipient restrictions and data restrictions. That is just how
Postfix is.

Here is the info on how it works:
http://www.postfix.org/SMTPD_POLICY_README.html

Regards
Nigel

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to