typically virtual users are defined in the /etc/postfix/virtual file, referenced by the following line in main.cf:
virtual_alias_maps = hash:/etc/postfix/virtual most distros have this file heavily commented, read it to be sure you're using the correct syntax. you'll need to run 'postmap /etc/postfix/virtual' after editing it. > I just tried a test of sending an email to two virtual users from > gmail to my postfix server. > > The two users were [EMAIL PROTECTED] and [EMAIL PROTECTED] > I own both domains and dns is set up to find my server. I sent one > email addressed to both users. It got through to > [EMAIL PROTECTED], but bounced to [EMAIL PROTECTED] > > The bounce message says: > Delivery to the following recipient failed permanently: > > [EMAIL PROTECTED] > > Technical details of permanent failure: > PERM_FAILURE: SMTP Error (state 9): 550 <[EMAIL PROTECTED]>: User > unknown in virtual alias table > > > > My /etc/postfix/vmaps.txt file has the following lines: > > [EMAIL PROTECTED] denhaven2.com/rick/ > [EMAIL PROTECTED] denhaven2.com/rick/ > [EMAIL PROTECTED] denhaven2.com/deborah/ > [EMAIL PROTECTED] denhaven2.com/rick/ > [EMAIL PROTECTED] denhaven2.com/rick/ > [EMAIL PROTECTED] denhaven2.com/deborah/ > @denhaven2.homeip.net denhaven2.com/rick/ > [EMAIL PROTECTED] denhaven2.com/rick/ > [EMAIL PROTECTED] denhaven2.com/deborah/ > @denhaven2.com denhaven2.com/rick/ > @mercuryspacecraft.com denhaven2.com/rick/ > > I thought that the last two lines would direct any otherwise users in > these domains to me. It looks like it works for mercuryspacecraft.com > but not denhaven2.com, and vhosts.txt has all of these domains listed. > > vmaps.txt.db has a later timestamp so it's been hashed from this file. > > Any ideas? > > -- > Rick DeNatale > > Visit the Project Mercury Wiki Site > http://www.mercuryspacecraft.com/ > -- > TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug > TriLUG Organizational FAQ : http://trilug.org/faq/ > TriLUG Member Services FAQ : http://members.trilug.org/services_faq/ > > -- TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ : http://trilug.org/faq/ TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
