I tried to send a mail from my client to a random address while LMTP service was running on console. I tried to read /var/log/mail.info and found this message: “Recipient address rejected: User unknown in virtual alias table;”
I already tested my LMTP client using manual telnet on port 8025 and all messages got delivered to my virtual domains. But I need to test it against a real implementation of LMTP more than myself.
> Hello,
> I just wrote by myself a local MTA software in C# to store the mail I
> receive using NHibernate.
>
> I now want to map all my virtual domains, let’s say example1.com and
> example2.com, to the program that is listening on TCP port 8025.
>
> First of all, my DNS MX records are set correctly, then I edited
> /etc/postfix/virtual like this
>
> example1.com lmtp:localhost:8025
> example2.com lmtp:localhost:8025
>
> and main.conf
>
> virtual_transport = lmtp:localhost:8025
>
> I tried to send a mail from my client to a random address while LMTP
> service was running on console. I tried to read /var/log/mail.info and
> found this message: “Recipient address rejected: User unknown in virtual
> alias table;”
>
> I already tested my LMTP client using manual telnet on port 8025 and
> all messages got delivered to my virtual domains. But I need to test it
> against a real implementation of LMTP more than myself.
>
> What’s wrong?
IIRC, when using “virtual_transport” you have to have your users and mail
aliases configured with “virtual_mailbox_maps” and “virtual_alias_maps”.
Check that point.