I have made a server as http://howtoforge.com/virtual-users-...l-debian-lenny
, and it works very fine, now I have to go a step further ie so that emails are redirected to another mail server reading the howto the necessary function is supplyed by transport (example.com smtp:mail.anotherdomain.tld Delivers all emails for example.com via smtp to the server mail.anotherdomain.com)
and follow this instruction I put in mail data base this:
INSERT INTO `transport` (`domain`, `transport`) VALUES ('mydomain.com', 'smtp:webmail.otherdomain.it');
ok but if for example i send a mail to firstname.lastname@example.org
and the user email@example.com
doesn't exist on this server but exist on server webmail.otherdomain.it in my syslog appears:
Apr 2 09:49:36 adelaide postfix/smtpd: NOQUEUE: reject: RCPT from mail.somedomain.info[xxx.xx.xxx.xx]: 450 4.1.1 <firstname.lastname@example.org>: Recipient address rejected: User unknown in virtual alias table; from=<email@example.com> to=<firstname.lastname@example.org> proto=ESMTP helo=<mail.somedomain.it>
Apr 2 09:49:37 adelaide postfix/smtpd: disconnect from mail.somedomain.info[xxx.xx.xxx.xx]
but if I put in the user table email@example.com
without password and even without creating the maildir /home/vmai/mydomain.com/clark the mail is redirected correctly.
Perhaps I misundertood, but I thought that if you redirect all mail for a certain domain to another it should do anyway and then the other server will check whether the user exists.
What do I fail?
Any help is greatly appreciated and I thank you now
My best regards