W dniu 03.09.2013 22:51, Nigel Kukard pisze:
On 03/09/2013 18:19, Przemysław Orzechowski wrote:
Hi

I have following setup

postfix 2.7.0 dual instance (single computer postmulti in use)

main postfix instance (recives mail from remote for local delivery and also recives mails from authenticated users and forwards them to second instance) second instance does or rather should enforce limits on outgoing mails/authenticatedsender

And here is the question
Is there a way to setup this that cluebringer in second instance would account mails/saslauthenticated user from first instance ? I need to accept all submited mais but limit the speed at wich they are sent out (per login/user outgoing rolling quotas)

any suggestions welcome

I hope I understand you right, but how about this ....

Define 'outboundsmtp' in master.cf , set it to check the policy service using -o . Set default_transport in main.cf to outboundsmtp?

That would mean that all outbound mail would be limited, but inbound mail wouldn't be.

Alternatively why not just limit based on there being a sasl username present? Using $*?

-N



_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org
I will try to clarify it somewhat then

1) external incoming mail should not be limited
2) localy submited mail (maildrop) and mail from sasl authenticated users should always be accepted 3) mail going to external domains should be limited by ie 100 mails /1h /authenticated user
4) mail for local domains should be unrestricted
5) authenticated MUA should be always able to submit mail (if sending quota is exceeded mail should pile up in deferred queue)

For some reason my superiors will not accept rejecting mail submited by authenticated MUA what happened on my test single instance setup (thats why i tried 2 instance setup)

If i get it right You suggest defining separate transport for outgoing mail in first instance with policy service -o and then redirecting outgoing mail to this transport
Will this accomplish aove goals?

About the alternative method im not sure what You mean by Using $*

Its my first attempt to configure cluebringer together with postfix and i most probably miss something.


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

Reply via email to