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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Toba
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.
Reply | Threaded
Open this post in threaded view
|

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

Gejo Paul


On Mon, Jan 5, 2009 at 2:10 AM, tôba <[hidden email]> 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 [hidden email] <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
Reply | Threaded
Open this post in threaded view
|

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

Toba
On Mon, 5 Jan 2009 03:35:52 -0500
"Gejo Paul" <[hidden email]> wrote:

> On Mon, Jan 5, 2009 at 2:10 AM, tôba <[hidden email]> 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
> [hidden email] <1

tsaida:~# touch 1; maildrop -v 4 -d [hidden email] <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.
> >
>
>
>
Reply | Threaded
Open this post in threaded view
|

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

Victoriano Giralt-2
-----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-----
Reply | Threaded
Open this post in threaded view
|

[SOLVED]Re: Maildrop "user unknown. Command output: Invalid user specified"

Toba
On Mon, 05 Jan 2009 10:02:39 +0100
Victoriano Giralt <[hidden email]> 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