Loading ...
Sorry, an error occurred while loading the content.

Re: Calling maildrop

Expand Messages
  • Michał Garcarz
    Hell ... When i changed to: #transport_maps = mysql:/usr/local/etc/postfix/mysql-transport.cf virtual_transport = maildrop virtual_mailbox_domains =
    Message 1 of 6 , Sep 30, 2006
    • 0 Attachment
      Hell

      > On Saturday, September 30, 2006 at 10:33 CEST,
      > Micha³ Garcarz <teknet8@...> wrote:
      >
      > > Virtual users with maildir, in main.cf i have:
      > >
      > > transport_maps = mysql:/usr/local/etc/postfix/mysql-transport.cf
      > > virtual_mailbox_domains = mysql:/usr/local/etc/postfix/mysql-virtual-domains.cf
      > > virtual_mailbox_maps = mysql:/usr/local/etc/postfix/mysql-virtual-maps.cf
      > >
      > > for transport_maps "virtual:" is being returned.
      >
      > Unnecessary. Just set
      >
      > virtual_transport = maildrop
      >
      > in order to have mail to virtual mailbox domains delivered with the
      > maildrop transport.

      When i changed to:

      #transport_maps = mysql:/usr/local/etc/postfix/mysql-transport.cf
      virtual_transport = maildrop
      virtual_mailbox_domains = mysql:/usr/local/etc/postfix/mysql-virtual-domains.cf
      virtual_mailbox_maps = mysql:/usr/local/etc/postfix/mysql-virtual-maps.cf

      i receive error in logs:
      Sep 30 11:18:00 multix postfix/pipe[57284]: D26944A080A: to=<user@...>, relay=maildrop, delay=0.02, delays=0/0/0/0.01, dsn=5.1.1, status=bounced (user unknown. Command output: Invalid user specified. )

      >
      > Fine.
      >
      > > The message is delivered "without maildrop" :
      > > Sep 30 10:14:31 server postfix/virtual[54094]: 899754A0851: to=<user@...>, relay=virtual, delay=0.26, delays=0.24/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
      >
      > Show the output of the following commands:
      >
      > postmap -q domain.com mysql:/usr/local/etc/postfix/mysql-transport.cf
      > postmap -q user@... mysql:/usr/local/etc/postfix/mysql-transport.cf

      -bash-2.05b# postmap -q domain.com mysql:/usr/local/etc/postfix/mysql-transport.cf
      virtual:
      -bash-2.05b# postmap -q user@... mysql:/usr/local/etc/postfix/mysql-transport.cf
      -bash-2.05b#

      Where is my mistke ?

      Thanx
      Michal
    • Magnus Bäck
      On Saturday, September 30, 2006 at 11:27 CEST, ... Sorry, that s not just unnecessary, it s plain wrong. See my last paragraph below. ... Yes, because you
      Message 2 of 6 , Sep 30, 2006
      • 0 Attachment
        On Saturday, September 30, 2006 at 11:27 CEST,
        MichaÅ? Garcarz <teknet8@...> wrote:

        > > On Saturday, September 30, 2006 at 10:33 CEST,
        > > Micha³ Garcarz <teknet8@...> wrote:
        > >
        > > > Virtual users with maildir, in main.cf i have:
        > > >
        > > > transport_maps = mysql:/usr/local/etc/postfix/mysql-transport.cf
        > > > virtual_mailbox_domains = mysql:/usr/local/etc/postfix/mysql-virtual-domains.cf
        > > > virtual_mailbox_maps = mysql:/usr/local/etc/postfix/mysql-virtual-maps.cf
        > > >
        > > > for transport_maps "virtual:" is being returned.
        > >
        > > Unnecessary. Just set
        > >
        > > virtual_transport = maildrop
        > >
        > > in order to have mail to virtual mailbox domains delivered with the
        > > maildrop transport.

        Sorry, that's not just unnecessary, it's plain wrong. See my last
        paragraph below.

        > When i changed to:
        >
        > #transport_maps = mysql:/usr/local/etc/postfix/mysql-transport.cf
        > virtual_transport = maildrop
        > virtual_mailbox_domains = mysql:/usr/local/etc/postfix/mysql-virtual-domains.cf
        > virtual_mailbox_maps = mysql:/usr/local/etc/postfix/mysql-virtual-maps.cf
        >
        > i receive error in logs:
        > Sep 30 11:18:00 multix postfix/pipe[57284]: D26944A080A: to=<user@...>, relay=maildrop, delay=0.02, delays=0/0/0/0.01, dsn=5.1.1, status=bounced (user unknown. Command output: Invalid user specified. )

        Yes, because you haven't configured maildrop to lookup the mailbox
        location. The result of virtual_mailbox_maps is only used by virtual(8),
        and you're not letting virtual(8) perform the delivery.

        > > Show the output of the following commands:
        > >
        > > postmap -q domain.com mysql:/usr/local/etc/postfix/mysql-transport.cf
        > > postmap -q user@... mysql:/usr/local/etc/postfix/mysql-transport.cf
        >
        > -bash-2.05b# postmap -q domain.com mysql:/usr/local/etc/postfix/mysql-transport.cf
        > virtual:

        The message wasn't reaching maildrop since you explicitly routed them to
        virtual(8). Had the lookup returned "maildrop:", it would've worked (but
        you'd still have the "Invalid user specified" message from maildrop
        until you'd configured maildrop properly).

        [...]

        --
        Magnus Bäck
        magnus@...
      • Michał Garcarz
        Hello ... OK, so i set to use maildrop, but how can i configure it to use my maildir location ? In master.cf i have: maildrop unix - n n -
        Message 3 of 6 , Sep 30, 2006
        • 0 Attachment
          Hello

          > On Saturday, September 30, 2006 at 11:27 CEST,
          > MichaÅ? Garcarz <teknet8@...> wrote:
          >
          > > > On Saturday, September 30, 2006 at 10:33 CEST,
          > > > Micha³ Garcarz <teknet8@...> wrote:
          > > >
          > > > > Virtual users with maildir, in main.cf i have:
          > > > >
          > > > > transport_maps = mysql:/usr/local/etc/postfix/mysql-transport.cf
          > > > > virtual_mailbox_domains = mysql:/usr/local/etc/postfix/mysql-virtual-domains.cf
          > > > > virtual_mailbox_maps = mysql:/usr/local/etc/postfix/mysql-virtual-maps.cf
          > > > >
          > > > > for transport_maps "virtual:" is being returned.
          > > >
          > > > Unnecessary. Just set
          > > >
          > > > virtual_transport = maildrop
          > > >
          > > > in order to have mail to virtual mailbox domains delivered with the
          > > > maildrop transport.
          >
          > Sorry, that's not just unnecessary, it's plain wrong. See my last
          > paragraph below.
          >
          > > When i changed to:
          > >
          > > #transport_maps = mysql:/usr/local/etc/postfix/mysql-transport.cf
          > > virtual_transport = maildrop
          > > virtual_mailbox_domains = mysql:/usr/local/etc/postfix/mysql-virtual-domains.cf
          > > virtual_mailbox_maps = mysql:/usr/local/etc/postfix/mysql-virtual-maps.cf
          > >
          > > i receive error in logs:
          > > Sep 30 11:18:00 multix postfix/pipe[57284]: D26944A080A: to=<user@...>, relay=maildrop, delay=0.02, delays=0/0/0/0.01, dsn=5.1.1, status=bounced (user unknown. Command output: Invalid user specified. )
          >
          > Yes, because you haven't configured maildrop to lookup the mailbox
          > location. The result of virtual_mailbox_maps is only used by virtual(8),
          > and you're not letting virtual(8) perform the delivery.
          >

          OK, so i set to use maildrop, but how can i configure it to use my maildir location ?
          In master.cf i have:
          maildrop unix - n n - - pipe
          flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}

          What else should i change ?

          Thanx
          Michal
        • Magnus Bäck
          On Saturday, September 30, 2006 at 11:48 CEST, ... [...] ... How maildrop is configured is not a question for the Postfix list. ... Change your maildrop
          Message 4 of 6 , Sep 30, 2006
          • 0 Attachment
            On Saturday, September 30, 2006 at 11:48 CEST,
            MichaÅ? Garcarz <teknet8@...> wrote:

            > > On Saturday, September 30, 2006 at 11:27 CEST,
            > > MichaÅ? Garcarz <teknet8@...> wrote:

            [...]

            > > Yes, because you haven't configured maildrop to lookup the mailbox
            > > location. The result of virtual_mailbox_maps is only used by
            > > virtual(8), and you're not letting virtual(8) perform the delivery.
            >
            > OK, so i set to use maildrop, but how can i configure it to use my
            > maildir location ?

            How maildrop is configured is not a question for the Postfix list.

            > In master.cf i have:
            > maildrop unix - n n - - pipe
            > flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
            >
            > What else should i change ?

            Change your maildrop configuration so that it maps recipient addresses
            to mailbox locations. As I said, the result of virtual_mailbox_maps is
            only used by virtual(8). So if you bypass virtual(8)...

            --
            Magnus Bäck
            magnus@...
          Your message has been successfully submitted and would be delivered to recipients shortly.