Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

User unknown in virtual alias table

6,798 views
Skip to first unread message

Bill Farina

unread,
Jan 22, 2009, 12:50:23 PM1/22/09
to
I have a few virtual domains set up on a server, but I can't seem to send
messages to users that are listed under those domains.

In my main.cf file, I have the line:
virtual_alias_domains = domain1.com domain2.com domain3.com

My virtual file is located in /etc/mail/ (I used to run sendmail so I kept
this the same)

In the main.cf file, I also have the line:
virtual_alias_maps = hash:/etc/mail/virtual

Both the virtual and the virtual.db files exist.

To update the virtual.db, I run the command:
postmap /etc/mail/virtual

Then I run (I'm not certain that this is necessary):
postfix reload

When someone sends a message to us...@domain1.com, they get the message:
Recipient address rejected: User unknown in virtual alias table

I must be missing something here, but I'm not certain what. If anyone has
any ideas, I would REALLY REALLY appreciate them. I've been beating my head
against this brick wall for days now and it should be a simple thing.

Thanks in advance:
Bill

Cydrome Leader

unread,
Jan 23, 2009, 9:44:43 PM1/23/09
to

Bill Farina

unread,
Jan 24, 2009, 6:35:53 PM1/24/09
to

"Cydrome Leader" <pres...@MUNGEpanix.com> wrote in message
news:gldvar$2r1$3...@reader1.panix.com...

It looks like that worked. I really appreciate your help. I commented out
the virtual_alias_domains line and added the domains with commas to the
mydestination line which now looks like:

mydestination = $myhostname, $mydomain, localhost, virtualdomain1.com,
virtualdomain2.com, virtualdomain3.com (and on to infinity)

This line is getting a little unwieldy. Do you know if it is possible to
have the "mydestination" line reference a file like the "virtual" file that
contains all of the domain names instead of being directly inside main.cf?

Cydrome Leader

unread,
Jan 25, 2009, 5:20:58 PM1/25/09
to

no problem.



> mydestination = $myhostname, $mydomain, localhost, virtualdomain1.com,
> virtualdomain2.com, virtualdomain3.com (and on to infinity)
>
> This line is getting a little unwieldy. Do you know if it is possible to
> have the "mydestination" line reference a file like the "virtual" file that
> contains all of the domain names instead of being directly inside main.cf?

Yes you can use a file. See here

http://www.postfix.org/BASIC_CONFIGURATION_README.html

under read the section "What domains to receive mail for"

"You can specify zero or more domain names, "/file/name" patterns and/or
"type:table" lookup tables (such as hash:, btree:, nis:, ldap:, or
mysql:), separated by whitespace and/or commas. A "/file/name" pattern is
replaced by its contents;"

0 new messages