Tim Legg wrote: > Okay, I made the changes people have suggested, but it still doesn't work. > > Recipient address rejected: User unknown in virtual alias table > > Below are the files which I believe are relevant. > > I for the most part understand the what the documentation tries to say, but > there is so much I don't know still about how postfix works. > > /etc/virtual > example1.com anything > example2.org anything > c...@example2.org l...@example1.com > pon...@example1.com pon...@example1.com > So you want to deliver all "example1.com" email to the UNIX user "anything"? Then it should be (as the documentation says): @example1.com anything
If you want to associate UNIX users to various addresses, read: http://www.postfix.org/VIRTUAL_README.html#virtual_alias If you do *not* want to associate UNIX users to email addresses, then look into virtual MAILBOX domains. http://www.postfix.org/VIRTUAL_README.html#virtual_mailbox > /etc/mailname > example1.com > > > /etc/postfix/main.cf > Please post 'postconf -n' so we do not have to parse through this. This also prevents errors on what postfix is using vs what you see here. [snip] > myhostname = genex.example1.com > alias_maps = hash:/etc/aliases > alias_database = hash:/etc/aliases > myorigin = /etc/mailname > mydestination = localhost.localdomain > virtual_alias_domains = example1.com, genex.example1.com, > localhost.example1.com, example2.org, localhost.example2.org > genex.example2.org > virtual_alias_maps = hash:/etc/postfix/virtual > relayhost = > mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 > mailbox_command = procmail -a "$EXTENSION" > mailbox_command is never used when the LDA is virutal(8)