Hi there,
I have setup Postfix to use virtual domains with non-UNIX account users. What would you call this: virtual domains delivering to virtual accounts? Anyway, it's fine. I'd like to accept mail for all subdomains of the main domain, but I can't get it to work.

For example, I currently accept mail to @amazingmac.ca. I'd like to accept mail for any subdomain of the same, with the mail delivered to a catchall address. If it makes things any easier, all mail to the domain goes to just the one address.

The message I get when I try sending to user@subdomain.amazingmac.ca is "relay access denied". The server receives the mail, but rejects it.

I've seen elsewhere some suggestion that the directive virtual_alias_maps should point to a regexp file, which I have tried in the current configuration, but it doesn't work.

Here's the files and all their relevant contents:

root@ubuntu:/etc/postfix# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = localhost.localdomain, localhost
myhostname = localhost
mynetworks = [::ffff:]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost = 
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_maps = hash:/etc/postfix/virtual, regexp:/etc/postfix/subdomain-catchall
virtual_gid_maps = static:1001
virtual_mailbox_base = /var/spool/vmail
virtual_mailbox_domains = /etc/postfix/vhosts.txt
virtual_mailbox_maps = hash:/etc/postfix/vmaps.txt
virtual_uid_maps = static:1001
root@ubuntu:/etc/postfix# cat virtual
@amazingmac.ca catcher@amazingmac.ca
root@ubuntu:/etc/postfix# cat subdomain-catchall 
/@[^@]*\.amazingmac\.ca$/ catcher@amazingmac.ca
root@ubuntu:/etc/postfix# cat vhosts.txt 
root@ubuntu:/etc/postfix# cat vmaps.txt
catcher@amazingmac.ca amazingmac.ca/catcher/
Thanks in advance for any help!