@lbutlr: > Given that I have two users, lo...@example.com and s...@example.com who = > are currently both local users and given that mydomain=3Dexample.com, is = > it possible to configure postfix such that one of them is in the mysql = > database and one is still local? It appears that once I add a domain to = > the mysql_virtual_domains_maps.cf Then all the users for that domain = > need to be in the mysql table. > > (I=E2=80=99ve tried adding the user to the mysql table already, but = > since postfix figures out mydomain on its own it resolves it to the = > local user and delivers it to procmail as usual and doesn=E2=80=99t = > check the sql map as far as I can tell, which makes sense, but can I = > override this somehow? I am trying to avoid changing all the mydomain = > local users at once and prefer to start with my own account so if = > something goes wrong no one else is affected).
If the idea is to use the local(8) delivery agent for all recipients, and telling it to look into the mysql table, that would require PAM configuration. I am not familiar with that. Below is an example that uses different delivery agents, but this will need multiple overrides. /etc/postfix/main.cf: transport_maps = hash:/etc/postfix/transport # Add virtual users table for address validation. local_recipient_maps = proxy:unix:passwd.byname $alias_maps mysql:virtual_domains_maps.cf mydestination = example.com ... virtual_uid_maps = ... virtual_gid_maps = ... /etc/postfix/transport: # Overrides for virtual recipients. virtualus...@example.com virtual: virtualus...@example.com virtual: ... Instead of using virtual(8) you could try lmtp+dovecot. Wietse