OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Virtual hosting and parent domain - Getting user unknown in virtual mailbox table

From: Christian Winter (thepoeta-za-z0-9.de)
Date: Wed Nov 02 2005 - 04:42:51 CST


Hi,

I just noticed that postfix is unable to deliver mails to one of the
parent domains of a
virtual domain. That is, mobile.mydomain.invalid is treated as virtual
domain and delivered
correctly to the local imap folder. The server itself has a hostname of
smtp.mydomain.invalid.
If one of the virtual users tries to send mail to usermydomain.invalid,
this mail is rejected
with "user unknown in virtual mailbox table".

Here's the output of "postconf -n":

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = $myhostname
mydomain = mailing.mydomain.invalid
myhostname = smtp.mydoman.invalid
mynetworks = 127.0.0.0/8, 217.5.128.0/24
myorigin = /etc/mailname
recipient_delimiter = +
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_forward.cf,
mysql:/etc/postfix/mysql_virtual_loop.cf
virtual_gid_maps = static:10000
virtual_mailbox_base = /data/virtual
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virt.cf
virtual_uid_maps = static:10000

I tried adding a transport map for the parent domain, however this seems
to break
the handling of the virtual subdomain. I'm starting to get a headache,
so if anyone
could give me a little slap to the back of my head to realize where I'm
thinking along
the wrong line I'd be grateful.

TIA
-Chris