hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Permission denied /usr/bin/maildrop
Reply

Forum Jump

Permission denied /usr/bin/maildrop

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 07-27-2009, 03:28 PM
robjohnston robjohnston is offline
Junior Guru Wannabe
 
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.



Sponsored Links
  #2  
Old 07-27-2009, 04:37 PM
serversignature serversignature is offline
Junior Guru Wannabe
 
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  
Old 07-27-2009, 06:28 PM
robjohnston robjohnston is offline
Junior Guru Wannabe
 
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.

Sponsored Links
  #4  
Old 07-27-2009, 11:46 PM
serversignature serversignature is offline
Junior Guru Wannabe
 
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  
Old 07-29-2009, 02:44 PM
robjohnston robjohnston is offline
Junior Guru Wannabe
 
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  
Old 07-29-2009, 03:06 PM
serversignature serversignature is offline
Junior Guru Wannabe
 
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  
Old 07-30-2009, 01:59 AM
robjohnston robjohnston is offline
Junior Guru Wannabe
 
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.

Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission denied dujmovicv Hosting Security and Technology 13 05-09-2009 10:45 AM
permission denied Eser Hosting Security and Technology 2 02-04-2006 06:07 AM
Permission denied xmlxp Hosting Security and Technology 10 01-10-2005 07:01 AM
FTP permission denied BooBoo Dedicated Server 2 05-31-2002 02:30 AM
permission denied Omair Haroon Dedicated Server 19 08-16-2001 01:20 PM

Related posts from TheWhir.com
Title Type Date Posted


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?