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

Maildrop "user unknown. Command output: Invalid user specified"

Expand Messages
  • tôba
    Hello all, With postfix and maildrop, I have this issue. Mails cannot be delivered and in mail.log, I have this: ...relay=maildrop, delay=0.81,
    Message 1 of 5 , Jan 4, 2009
    • 0 Attachment
      Hello all,
      With postfix and maildrop, I have this issue. Mails cannot be delivered
      and in mail.log, I have this:

      ...relay=maildrop, delay=0.81, delays=0.8/0/0/0.01, dsn=5.1.1,
      status=bounced (user unknown. Command output: Invalid user specified. )

      I saw at google that this problem happenned already with others but I
      could not find the solution.

      My OS: Debian Etch

      Try to make running: Postfix and Courier with maildrop delivery.

      My relative (i think) postfix conf:
      virtual_minimum_uid = 6060
      virtual_gid_maps = static:6060
      virtual_uid_maps = static:6060
      virtual_alias_maps =
      proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf,
      hash:/etc/postfix/virtual virtual_mailbox_domains =
      proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
      virtual_mailbox_maps =
      proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
      virtual_transport = maildrop virtual_mailbox_base = /var/vmail/
      maildrop_destination_concurrency_limit = 2
      maildrop_destination_recipient_limit = 1

      Maildrop suid:
      tsaida:~# whereis maildrop
      maildrop: /usr/bin/maildrop /usr/X11R6/bin/maildrop /usr/bin/X11/maildrop /usr/share/maildrop /usr/share/man/man1/maildrop.1.gz
      tsaida:~# ls -l /usr/bin/maildrop
      -rwxr-sr-x 1 root mail 162132 2006-10-08 18:11 /usr/bin/maildrop
      tsaida:~#

      Postfix master.cf
      maildrop unix - n n - - pipe
      flags=uR user=vmail argv=/usr/bin/maildrop -d $recipient -w 90

      Originally, (from a howto,) it was like the following but somewhere in a
      mailinglist archive, the fellow suggested the above config.

      maildrop unix - n n - - pipe
      flags=ODRhu user=vmail:daemon argv=/usr/bin/maildrop -w 90 -d
      ${user}@${nexthop} ${extension} ${recipient} ${user} ${nexthop}

      Can someone help me?

      Best regards,

      Tôba.
    • Gejo Paul
      ... are you facing this problem for local users. ... guess you are using courrier please paste the output of #authtest #touch 1: maildrop -v 4 -d
      Message 2 of 5 , Jan 5, 2009
      • 0 Attachment
        On Mon, Jan 5, 2009 at 2:10 AM, tôba <toba@...> wrote:
        Hello all,
        With postfix and maildrop, I have this issue. Mails cannot be delivered
        and in mail.log, I have this:
        are you facing this problem for local users.


        ...relay=maildrop, delay=0.81, delays=0.8/0/0/0.01, dsn=5.1.1,
        status=bounced (user unknown. Command output: Invalid user specified. )
        guess you are using courrier
        please paste the output of #authtest  <emailid>
                                                #touch 1: maildrop -v 4 -d test@... <1



        I saw at google that this problem happenned already with others but I
        could not find the solution.

        My OS: Debian Etch

        Try to make running: Postfix and Courier with maildrop delivery.

        My relative (i think) postfix conf:
        virtual_minimum_uid = 6060
        virtual_gid_maps = static:6060
        virtual_uid_maps = static:6060
        virtual_alias_maps =
        proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf,
        hash:/etc/postfix/virtual virtual_mailbox_domains =
        proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
        virtual_mailbox_maps =
        proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
        virtual_transport = maildrop virtual_mailbox_base = /var/vmail/
        maildrop_destination_concurrency_limit = 2
        maildrop_destination_recipient_limit = 1

        Maildrop suid:
        tsaida:~# whereis maildrop
        maildrop: /usr/bin/maildrop /usr/X11R6/bin/maildrop /usr/bin/X11/maildrop /usr/share/maildrop /usr/share/man/man1/maildrop.1.gz
        tsaida:~# ls -l /usr/bin/maildrop
        -rwxr-sr-x 1 root mail 162132 2006-10-08 18:11 /usr/bin/maildrop
        tsaida:~#

        Postfix master.cf
        maildrop  unix  -       n       n       -       -       pipe
         flags=uR user=vmail argv=/usr/bin/maildrop -d $recipient -w 90

        Originally, (from a howto,) it was like the following but somewhere in a
        mailinglist archive, the fellow suggested the above config.

        maildrop  unix  -       n       n       -       -       pipe
        flags=ODRhu user=vmail:daemon argv=/usr/bin/maildrop -w 90 -d
        ${user}@${nexthop}  ${extension} ${recipient} ${user} ${nexthop}

        Can someone help me?

        Best regards,

        Tôba.



        --
        Best Regards
        Gejo Paul
      • tôba
        On Mon, 5 Jan 2009 03:35:52 -0500 ... No, with local users (I tested root), it works fine. ... Yes, courrier. ... tsaida:~# authtest toba Authentication
        Message 3 of 5 , Jan 5, 2009
        • 0 Attachment
          On Mon, 5 Jan 2009 03:35:52 -0500
          "Gejo Paul" <gejopaul@...> wrote:

          > On Mon, Jan 5, 2009 at 2:10 AM, tôba <toba@...> wrote:
          >
          > > Hello all,
          > > With postfix and maildrop, I have this issue. Mails cannot be
          > > delivered and in mail.log, I have this:
          >
          > are you facing this problem for local users.


          No, with local users (I tested root), it works fine.


          >
          > >
          > >
          > > ...relay=maildrop, delay=0.81, delays=0.8/0/0/0.01, dsn=5.1.1,
          > > status=bounced (user unknown. Command output: Invalid user
          > > specified. )
          >
          > guess you are using courrier


          Yes, courrier.


          > please paste the output of #authtest <emailid>


          tsaida:~# authtest toba
          Authentication FAILED: Input/output error
          tsaida:~#


          > #touch 1: maildrop -v 4 -d
          > test@... <1

          tsaida:~# touch 1; maildrop -v 4 -d toba@... <1
          maildrop 2.0.2 Copyright 1998-2005 Double Precision, Inc.
          GDBM extensions enabled.
          Courier Authentication Library extension enabled.
          Maildir quota extension enabled.
          This program is distributed under the terms of the GNU General Public
          License. See COPYING for additional information.
          tsaida:~#
          tsaida:~#
          tsaida:~#
          tsaida:~#ls /var/vmail/domaintest.net/toba/new/
          total 8
          drwx------ 2 root root 4096 2009-01-05 03:47 .
          drwx------ 5 root root 4096 2009-01-02 06:51 ..
          tsaida:~#


          >
          >
          > >
          > > I saw at google that this problem happenned already with others but
          > > I could not find the solution.
          > >
          > > My OS: Debian Etch
          > >
          > > Try to make running: Postfix and Courier with maildrop delivery.
          > >
          > > My relative (i think) postfix conf:
          > > virtual_minimum_uid = 6060
          > > virtual_gid_maps = static:6060
          > > virtual_uid_maps = static:6060
          > > virtual_alias_maps =
          > > proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf,
          > > hash:/etc/postfix/virtual virtual_mailbox_domains =
          > > proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
          > > virtual_mailbox_maps =
          > > proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
          > > virtual_transport = maildrop virtual_mailbox_base = /var/vmail/
          > > maildrop_destination_concurrency_limit = 2
          > > maildrop_destination_recipient_limit = 1
          > >
          > > Maildrop suid:
          > > tsaida:~# whereis maildrop
          > > maildrop: /usr/bin/maildrop /usr/X11R6/bin/maildrop /usr/bin/X11/maildrop
          > > /usr/share/maildrop /usr/share/man/man1/maildrop.1.gz
          > > tsaida:~# ls -l /usr/bin/maildrop
          > > -rwxr-sr-x 1 root mail 162132 2006-10-08 18:11 /usr/bin/maildrop
          > > tsaida:~#
          > >
          > > Postfix master.cf
          > > maildrop unix - n n - - pipe
          > > flags=uR user=vmail argv=/usr/bin/maildrop -d $recipient -w 90
          > >
          > > Originally, (from a howto,) it was like the following but somewhere
          > > in a mailinglist archive, the fellow suggested the above config.
          > >
          > > maildrop unix - n n - - pipe
          > > flags=ODRhu user=vmail:daemon argv=/usr/bin/maildrop -w 90 -d
          > > ${user}@${nexthop} ${extension} ${recipient} ${user} ${nexthop}
          > >
          > > Can someone help me?
          > >
          > > Best regards,
          > >
          > > Tôba.
          > >
          >
          >
          >
        • Victoriano Giralt
          ... Hash: SHA1 ... - ---------------^ - --------------------^ ... - -------------------^ This strongly suggests that your permissions are not very much in
          Message 4 of 5 , Jan 5, 2009
          • 0 Attachment
            -----BEGIN PGP SIGNED MESSAGE-----
            Hash: SHA1

            tôba wrote:

            > tsaida:~#ls /var/vmail/domaintest.net/toba/new/
            > total 8
            > drwx------ 2 root root 4096 2009-01-05 03:47 .
            > drwx------ 5 root root 4096 2009-01-02 06:51 ..
            - ---------------^
            - --------------------^

            >>> maildrop unix - n n - - pipe
            >>> flags=uR user=vmail argv=/usr/bin/maildrop -d $recipient -w 90
            - -------------------^

            This strongly suggests that your permissions are not very much in shape ;)

            - --
            Victoriano Giralt
            Systems Manager
            Central Computing Facility
            University of Malaga
            SPAIN
            -----BEGIN PGP SIGNATURE-----
            Version: GnuPG v1.4.9 (GNU/Linux)
            Comment: Using GnuPG with Remi - http://enigmail.mozdev.org

            iD8DBQFJYcypV6+mDjj1PTgRAhLTAJ4+pEh728/InHSyaSZR66a6KJSxdACbBn9X
            tsk9zcwRK4TiE5b9Y3yqUmk=
            =SrDY
            -----END PGP SIGNATURE-----
          • tôba
            On Mon, 05 Jan 2009 10:02:39 +0100 ... Thanks for all. I solved the problem. It was because of a synthax error in Mysql. The system tried to check the wrong
            Message 5 of 5 , Jan 5, 2009
            • 0 Attachment
              On Mon, 05 Jan 2009 10:02:39 +0100
              Victoriano Giralt <victoriano@...> wrote:

              > -----BEGIN PGP SIGNED MESSAGE-----
              > Hash: SHA1
              >
              > tôba wrote:
              >
              > > tsaida:~#ls /var/vmail/domaintest.net/toba/new/
              > > total 8
              > > drwx------ 2 root root 4096 2009-01-05 03:47 .
              > > drwx------ 5 root root 4096 2009-01-02 06:51 ..
              > - ---------------^
              > - --------------------^
              >
              > >>> maildrop unix - n n - - pipe
              > >>> flags=uR user=vmail argv=/usr/bin/maildrop -d $recipient -w 90
              > - -------------------^
              >
              > This strongly suggests that your permissions are not very much in
              > shape ;)
              >

              Thanks for all.
              I solved the problem. It was because of a synthax error in Mysql. The
              system tried to check the wrong table and I have to fix it
              in /etc/courier/authmysqlrc.

              And it was not a problem of Postfix :-) Sorry.

              Best regards,

              Tôba
            Your message has been successfully submitted and would be delivered to recipients shortly.