Yes, you're right sir, we have for all of our domains ("postmap -q @ankara.edu.tr(or other subdomains) mysql:$config_directory/maps/sql-valiases.cf" yields some return value).
When I remove the record (For example, @ankara.edu.tr) from "alias" table then I can get "Recipient address rejected: User unknown in virtual mailbox table" message and that's what I want. So I can remove all of that records from database, right? Süleyman Düzdaban Ankara Üniversitesi Bilgi İşlem Daire Başkanlığı - Sistem Grubu 0312 215 90 01 (Dahili: 3033) On 02/06/2017 07:03 PM, Viktor Dukhovni wrote: > On Mon, Feb 06, 2017 at 05:37:27PM +0300, Süleyman Düzdaban wrote: > >>> Be specific, what type of domain is "mydomain": >>> >>> Please be very clear whether you're trying to reject mail *to* >>> non-existent recipients, or *from* non-existent senders. I am >>> assuming "recipients" for now based on the above. >> I mean virtual mailbox domain listed in $virtual_mailbox_domains. >> >>>> virtual_mailbox_domains = >>>> proxy:mysql:$config_directory/maps/sql-vdomains.cf >>> Any domains listed there? >> Yes. All of our domains (ankara.edu.tr, >> agri.ankara.edu.tr,politics.ankara.edu.tr etc.) and "postmap -q >> existent-domain proxy:mysql:$config_directory/maps/sql-vdomains.cf" >> yields return value "virtual:" for the existent-domains and nothing for >> the non-existent-domains. > For domains listed in virtual_mailbox_domains the Postfix smtpd(8) > server rejects mail to addresses that are not listed in any of: > > recipient_canonical_maps > canonical_maps > virtual_alias_maps > virtual_mailbox_maps > > Perhaps you have wildcard mappings in one of these. Based on your > reported configuration, that would be virtual_alias_maps or > virtual_mailbox_maps. Any output from: > > $ config_directory=$(postconf -hx config_directory) > $ postmap -q @ankara.edu.tr mysql:$config_directory/maps/sql-valiases.cf > $ postmap -q @ankara.edu.tr mysql:$config_directory/maps/sql-vmailboxes.cf >