Delete myvirtualdomain.com and add www.myvirtualdomain.com. Your SME server will then no longer interfere with mail for user@myvirtualdomain.com (but will only provide website content via http://www.myvirtualdomain.com/ and not http://myvirtualdomain.com/, assuming that you have DNS configured correctly. There's no easy workaround to this limitation - you would need to use custom templates for various parts of the mailsystem.
Thanks!
I lookup for the qmail configuration files...
I could verify that all the configuration files were in the /var/qmail/control.
So, I rewrite the templates files assuming that there has a domain property 'qmail' set to disabled:
db domains setprop myvirtualdomain.com qmail disabled
Then I edit and change /etc/e-smith/templates/var/qmail/control/rcpthosts/10standard
{
use esmith::DomainsDB;
my $ddb = esmith::DomainsDB->open_ro or die "Couldn't open DomainsDB\n";
my @rcpt_hosts = ( "$SystemName.$DomainName" );
foreach my $domain ( $ddb->get_all_by_prop( type => "domain" ) )
{
my $qmail = $domain->prop('qmail') || 'enabled';
if ($qmail eq 'enabled')
{
push @rcpt_hosts, $domain->key;
}
}
$OUT = join "\n", @rcpt_hosts;
}
I also edit and change /etc/e-smith/templates/var/qmail/control/virtualdomains/80localdomains:
{
$OUT = '';
use esmith::DomainsDB;
my $domainsdb = esmith::DomainsDB->open_ro();
for my $domain ($domainsdb->domains)
{
my $mail_server = $domain->prop('MailServer')
|| $DelegateMailServer
|| 'localhost';
next if ( $mail_server ne 'localhost' );
$emaildomain = $domain->key;
my $handler = $domain->prop('EmailTo') || "alias-localdelivery";
my $qmail = $domain->prop('qmail') || 'enabled';
if ($qmail eq 'disabled')
{
$OUT .= "#------------------------------------------------------------\n";
$OUT .= "# To qmail use this domain delete the key\n";
$OUT .= "# qmail\n";
$OUT .= "# from db domains with the command:\n";
$OUT .= "# db domains delprop $emaildomain qmail\n";
$OUT .= "# $emaildomain:$handler\n";
$OUT .= "#------------------------------------------------------------\n";
}
else
{
$OUT .= "$emaildomain:$handler\n";
}
}
}
After this:
expand-template /var/qmail/control/rcpthosts
expand-template /var/qmail/control/virtualdomains
And restarted qmail:
/etc/init.d/qmail restart
After all that everything is working as I want!

I hope this could help more people!