Hi,

I'm operating a very small mail server and am having trouble getting 2 
apparantly antagonistic behaviours to work.

The server is responsible for domainA.org and domain1...domain5.org.

I want all mail to domainA to be sent to a catchall address/local user and
I also want domain1-5 to act as if they were identical, i.e. a mail to 
p...@domain1.org gets sent to the same place a mail to p...@domain4.org would.

For this I have specified the following settings:
main.cf:

myhostname = domainA.org
mydomain = domainA.org
myorigin = domainA.org
mydestination =  $myhostname, localhost.$mydomain
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = domain1.org domain2.org domain3.org domain4.org 
domain5.org

/etc/postfix/virtual contains (amongst more things):
@domainA.org catchall
p...@domain3.org existant_local_user
(yes catchall is the actual user name and exists on that system)

Trying to send a mail to p...@domain3.org returns:

5.1.1 host mail.domainA.org [IP was here] said: <p...@domain3.org>: Recipient 
address rejected: User unknown in virtual alias table (H-BADRCPT)

..... what?


Before this version I tried having domain1-5.org added to the mydestination 
variable instead of virtual_alias_domains. This allowed me to send mail to 
p...@domain3.org BUT it would end up in the catchall mailbox which I couldnt 
understand either because the catchall should only grab mails directed at 
domainA.org, no?

Additional info:

catchall and existant_local_user do exist on that system, have home folders 
owned by themselves (+ respective group), home folders have the proper 751.
I did run postmap /etc/postfix/virtual as well as postfix reload before testing.

This is very confusing to me and any help is greatly appreciated.


There might be garbage advertisement after this line:
--------------------------------------------------------------------------

Reply via email to