Results 1 to 7 of 7
-
07-27-2009, 03:28 PM #1Junior 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.
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
Code:vmail:5000:5000::/home/vmail:/bin/sh
Cheers, Rob.1
-
07-27-2009, 04:37 PM #2Junior 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.0
-
07-27-2009, 06:28 PM #3Junior 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
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.
Code:Authentication succeeded.
#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.
Where next?
TIA, Rob.0
-
07-27-2009, 11:46 PM #4Junior 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.0
-
07-29-2009, 02:44 PM #5Junior 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.0
-
07-29-2009, 03:06 PM #6Junior 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.0
-
07-30-2009, 01:59 AM #7Junior 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.0
Similar Threads
-
Permission denied
By dujmovicv in forum Hosting Security and TechnologyReplies: 13Last Post: 05-09-2009, 10:45 AM -
permission denied
By Eser in forum Hosting Security and TechnologyReplies: 2Last Post: 02-04-2006, 06:07 AM -
Permission denied
By XMLxp in forum Hosting Security and TechnologyReplies: 10Last Post: 01-10-2005, 07:01 AM -
FTP permission denied
By BooBoo in forum Dedicated ServerReplies: 2Last Post: 05-31-2002, 02:30 AM -
permission denied
By Omair Haroon in forum Dedicated ServerReplies: 19Last Post: 08-16-2001, 01:20 PM