Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2001
    Location
    London, UK
    Posts
    37

    Permission denied /usr/bin/maildrop

    Hi all, I have a VPS with Ubuntu 9.04. I've setup ISPConfig etc as per the Perfect Server Howto Forge pages.

    However I'm getting a problem with the configuration of maildrop, I get
    Code:
    temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied /usr/bin/maildrop: Unable to change to home directory.
    ls -lah /var/vmail
    Code:
    drwxr-xr-x 4 vmail vmail 4.0K Jul 27 04:19 .
    drwxr-xr-x 15 root root 4.0K Jul 26 13:01 ..
    -rw------- 1 vmail vmail 1.3K Jul 26 13:01 .mailfilter
    drwxr-xr-x 5 vmail vmail 4.0K Jul 26 17:15 siricom.co.uk
    -rw-rw---- 1 vmail vmail 4 Jul 27 04:19 ispconfig_mailsize
    drwxr-xr-x 2 root root 4.0K Jul 26 13:01 mailfilters
    grep vmail /etc/passwd
    Code:
    vmail:5000:5000::/home/vmail:/bin/sh
    Most of the examples I've found on Google of this error are permission problems, can anyone suggest another direction of investigation?

    Cheers, Rob.

  2. #2
    Join Date
    Mar 2009
    Location
    Bangalore
    Posts
    41
    Rob,

    Can you check the permission of maildrop

    # ls -l `which maildrop`
    -rwxr-sr-x 1 root mail 162676 Jan 20 2008 /usr/bin/maildrop

    Also ..

    # maildrop -v
    maildrop 2.0.4 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.


    Use - authtest {loginid} [password] [newpassword]

    authtest is a command-line diagnostic utility for the Courier Authentication Library.

    check for more details in the man pages.
    Serversignature.com - Professional Linux Consulting.

  3. #3
    Join Date
    Sep 2001
    Location
    London, UK
    Posts
    37
    Hi Kiran, here's the results:
    # ls -l `which maildrop`
    Code:
    -rwxr-sr-x 1 root mail 170016 May  9  2008 /usr/bin/maildrop
    # maildrop -v
    Code:
    maildrop 2.0.4 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.
    authtest results in
    Code:
    Authentication succeeded.
    When I do
    #maildrop -V 9 -d test@siricom.co.uk
    I get the command line hanging.
    If I do
    # echo "test" | authtest test@siricom.co.uk
    Code:
    .mailfilter(5): LOGNAME="test@siricom.co.uk"
    .mailfilter(6): EXTENSION=""
    .mailfilter(7): RECIPIENT=""
    .mailfilter(8): USER=""
    .mailfilter(9): HOST=""
    .mailfilter(10): SENDER=""
    .mailfilter(11): DEFAULT="/var/vmail///."
    .mailfilter(13): Evaluating IF condition.
    .mailfilter(13): Operation on:  and  - string not equal, result is 0
    .mailfilter(13): IF evaluated, result=0
    .mailfilter(18): Evaluating IF condition.
    .mailfilter(18): Operation on:  - logical not.
    .mailfilter(18): Operation: logical not=1
    .mailfilter(18): IF evaluated, result=1
    .mailfilter(20): SENDER="<>"
    maildrop: Filtering through `test -e /var/vmail/$HOST`
    .mailfilter(28): Evaluating IF condition.
    .mailfilter(28): Operation on: 0 and 0 - not equal, result is 0
    .mailfilter(28): IF evaluated, result=0
    maildrop: Filtering through `test -e /var/vmail/$HOST/$USER`
    .mailfilter(34): Evaluating IF condition.
    .mailfilter(34): Operation on: 0 and 0 - not equal, result is 0
    .mailfilter(34): IF evaluated, result=0
    maildrop: Filtering through `test -f /var/vmail/mailfilters/$HOST/$USER/.autoresponder`
    .mailfilter(43): Evaluating IF condition.
    .mailfilter(43): Operation on: 1 and 0 - equal, result is 0
    .mailfilter(43): IF evaluated, result=0
    maildrop: Filtering through `echo $SIZE >> /var/vmail/$HOST/$USER/ispconfig_mailsize`
    maildrop: Filtering through `test -f /var/vmail/mailfilters/$HOST/$USER/.mailfilter`
    .mailfilter(60): Evaluating IF condition.
    .mailfilter(60): Operation on: 1 and 0 - equal, result is 0
    .mailfilter(60): IF evaluated, result=0
    .mailfilter(66): Evaluating IF condition.
    .mailfilter(66): Operation on: /var/vmail///. and  - string not equal, result is 1
    .mailfilter(66): IF evaluated, result=1
    maildrop: Delivering to /var/vmail///.
    maildrop: Unable to open mailbox.
    I might be wrong but those /var/vmail/// look dodgy, I'm not sure how I fix that.


    Where next?

    TIA, Rob.

  4. #4
    Join Date
    Mar 2009
    Location
    Bangalore
    Posts
    41
    backup /etc/postfix/msaster.cf and try changing the below at /etc/postfix/msaster.cf

    # maildrop. See the Postfix MAILDROP_README file for details.
    # Also specify in main.cf: maildrop_destination_recipient_limit=1
    #
    maildrop unix - n n - - pipe
    flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}

    to the follwing below.

    maildrop unix - n n - - pipe
    flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender}


    Thanks,
    Serversignature.com - Professional Linux Consulting.

  5. #5
    Join Date
    Sep 2001
    Location
    London, UK
    Posts
    37
    Well, I checked that file and it was as you suggested already.

    I think there were underlying problems with the whole setup, it wasn't the first time I followed the Howto and it hadn't worked.

    In the end I re-installed the VPS, took a different howto and did things much more manually. It all works fine and I learned more, I wish I'd done it like that the first time.

    Thanks for your help, Rob.

  6. #6
    Join Date
    Mar 2009
    Location
    Bangalore
    Posts
    41
    Great ! please do share the howto with the community users also.

    Thanks,
    Serversignature.com - Professional Linux Consulting.

  7. #7
    Join Date
    Sep 2001
    Location
    London, UK
    Posts
    37
    I used the one here:
    http://www.howtoforge.com/virtual-us...ail-ubuntu9.04

    I missed of the quota and webmail parts as they weren't important to me.

    Still not entirely plain sailing:
    Amavisd had to be removed & purged before it worked, I think that was down to the VPS I'm using.
    The folder /home/vmail had to be created again I think that was down to the VPS I'm using.

    Thankfully it does work and I'm happy with it.

    Thanks Rob.

  8. Newsletters

    Subscribe Now & Get The WHT Quick Start Guide!

Similar Threads

  1. Permission denied
    By dujmovicv in forum Hosting Security and Technology
    Replies: 13
    Last Post: 05-09-2009, 10:45 AM
  2. permission denied
    By Eser in forum Hosting Security and Technology
    Replies: 2
    Last Post: 02-04-2006, 06:07 AM
  3. Permission denied
    By xmlxp in forum Hosting Security and Technology
    Replies: 10
    Last Post: 01-10-2005, 07:01 AM
  4. FTP permission denied
    By BooBoo in forum Dedicated Server
    Replies: 2
    Last Post: 05-31-2002, 02:30 AM
  5. permission denied
    By Omair Haroon in forum Dedicated Server
    Replies: 19
    Last Post: 08-16-2001, 01:20 PM

Posting Permissions

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