On Wed, Feb 19, 2014 at 08:21:09AM -0800, pgala wrote: > But I want info about exceeded quota only if recipient is user in my internal > domain.
There is no need for (it is a mistake to configure) sender notices about exceeded quotas. Senders get bounces when mail is not delivered (Dovecot LDA rejects the message). > For example user2 have full mailbox. > If try user1@mydomain send mail to user2@mydomain then get mail "your mails > to user2@mydomain can't be delivered". This mail is generate by dovecto if i > use quota exceeded plugin. This is wrong, Dovecot must reject the message, and then Postfix sends a bounce. For rewriting with internal-only domains see: http://www.postfix.org/SOHO_README.html#fantasy > If i dont rewrite envelope_sender by sender_canonical_maps everythings is > fine, but if i use sender_canonical_maps, mail from dovecot is delivered to > mym...@isp.com instead user1@mydomain. Your rewriting configuration is likely misguided. Don't use sender_canonical_maps at all, it is rarely the right tool. Use generic_maps as show in http://www.postfix.org/SOHO_README.html#fantasy if you deliver to internal domains via SMTP, use the relay transport for that and set a custom value for "smtp_generic_maps" in master.cf for either "relay" (setting it empty) or "smtp" (setting it to suitable main.cf override). -- Viktor.