Thomas Leuxner [2016-11-24 15:56 +0100] : > * Niklaas Baudet von Gersdorff <st...@niklaas.eu> 2016.11.24 12:28: > > > I appreciate any ideas or hints. > > You should be able to workaround this with a restriction class. > Although the example is not LDAP specific it should provide > general direction:
Thomas, thank you for your reply and the example. So, do I understand correctly that Postfix is forced to expand aliases to real mailboxes when using smtpd_recipient_restrictions? Or is this "only" a workaround to prevent evaluation against dovecot's quota service with aliases? Anyway, even if it's "only" a workaround, it's a great start to evaluate against the service for some cases at least. > # We will query for quotas on real mailboxes only via > smtpd_recipient_restrictions > smtpd_restriction_classes = > quota_users > quota_users = > check_policy_service { unix:private/quota-status, timeout=10s, > default_action=DUNNO } > > smtpd_recipient_restrictions = > [...] > check_recipient_access lmdb:$config_directory/quota_users > > The real accounts are listed here: > > $ cat /etc/postfix/quota_users > u...@example.com quota_users BTW, of course, you're right, it's a policy service and not a milter. Niklaas