Hi TobiasThank you for your suggestion. I've tried it. unfortunately it does
not seem to work. I believe this is because it happens during cleanup process
which is right before queuing the message (not after receiving the 'rcpt to:'
command). at least the virtual(5) manual seems to suggest so:
"Virtual aliasing is recursive, and is implemented by the Postfix
cleanup(8) daemon before mail is queued."
On Monday, 4 April 2016, 14:11, Tobias Franzén <[email protected]> wrote:
Perhaps this is more of a workaround. Have you tried to first resolve virtual
aliases, and then forward the connection using smtp_proxy_filter to a second
smtpd instance where the smtpd_recipient_restrictions is performed?
Check examples for before-queue filtering. Remember to only perform address
mapping once by including no_address_mappings in receive_override_options in
relevant places (I prefer to do this globally, with explicit non-override in
the first smtpd instance).
/Tobias
On 2016-04-04 05:51, Hamy wrote:
Hello
I am setting up a postfix+dovecot setup and using quota-status service to
reject mails for full mailboxes on smtp session, according to this:
https://sys4.de/en/blog/2013/04/08/postfix-dovecot-mailbox-quota/
This is working fine and without any apparent issues. however, Postfix
doesn't seem to consult the policy when you're using virtual alias addresses. I
have defined virtual alias email addresses using virtual_alias_maps . what
happens is that Postfix only verifies there is a corresponding value for the
given email address and blindly accepts it. It seems
smtpd_recipient_restrictions , only applies to the supplied email address and
Postfix does not consult that after applying virtual alias.
Furthermore, since i am using dovecot as MDA, using
reject_unverified_recipient fails for virtual aliases if i don't have
corresponding entry for the alias address in the MDA. that's because the
supplied email address will be subjected to smtpd_recipient_restrictions before
consulting virtual daemon
Does any one have any idea how to solve these? is there a setting that I'm
missing? or is there a better way to setup email aliases that solve these
issues? My postfix version is 2.11.3 .
Best Regards,