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
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?
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;"