Results 1 to 2 of 2

Thread: Configure Postfix for custom LMTP agent

  1. #1
    Join Date
    Sep 2008
    Location
    Naples, Italy
    Posts
    51

    Default Configure Postfix for custom LMTP agent

    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?

    Thank you in advance

  2. #2
    Camalen NNTP User

    Default Re: Configure Postfix for custom LMTP agent

    djechelon wrote:

    > 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.

    Greetings,

    --
    Camalen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •