#1  
Old 5th November 2009, 20:16
warlock warlock is offline
Member
 
Join Date: Nov 2008
Posts: 93
Thanks: 1
Thanked 6 Times in 4 Posts
Default maildrop issues

Hi,

I have update via the update script and mail fails I then reinstalled from scratch and am having the same issue.

status=deferred (temporary failure. Command output: /usr/bin/maildrop: Unable to open mailbox. )

I am running ubuntu 9.10 and ISPConfig 3.0.1.6

Any ideas, all mailbox are in lower case.
Reply With Quote
Sponsored Links
  #2  
Old 5th November 2009, 20:30
warlock warlock is offline
Member
 
Join Date: Nov 2008
Posts: 93
Thanks: 1
Thanked 6 Times in 4 Posts
Default

Ok so I did

apt-get install maildrop

it then removed courier-maildrop and installed just maildrop, is this going to be a problem, mail is being delivered now. ?
Reply With Quote
  #3  
Old 6th November 2009, 11:55
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
Default

You have to check if the maildrop package you installed now supports mysql. If not, then things like quota will not work anymore.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 6th November 2009, 14:27
warlock warlock is offline
Member
 
Join Date: Nov 2008
Posts: 93
Thanks: 1
Thanked 6 Times in 4 Posts
Default

Cool,

How and were can I check this and any idea why the couries-maildrop is failing ?

I tried re-installing it but get the same error as above......

Last edited by warlock; 6th November 2009 at 14:48.
Reply With Quote
  #5  
Old 7th November 2009, 18:29
lenthir lenthir is offline
Junior Member
 
Join Date: Jul 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think this is bug, because user folders are being owned by vmail, and in courier-maildrop manual is:

"In all cases, the -d option is allowed if user is the same user who is running maildrop."

And in log I have this:
Nov 7 18:29:39 columbo authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/srv/poczta, address=admin[...], fullname=<null>, maildir=/srv/poczta/[domain]/admin, quota=0, options=disableimap=0,disablepop3=0
Nov 7 18:29:39 columbo maildrop[19409]: Unable to open mailbox.

I'm working on this problem.

Other thing... I noticed that, you could have more problems if your default system umask are different from 022 (or even 002, eg. wrong WWW folder rights for new users).
Reply With Quote
  #6  
Old 7th November 2009, 18:43
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
Default

If it is working on several thousand servers and just not in yours, it is a configuration issue on your system and not a bug. Otherwise it would not work for anybody.

Maildrop is invoked as user vmail by postfix. If thats not the case on your system, check the maildrop line in master.cf.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 7th November 2009, 21:33
lenthir lenthir is offline
Junior Member
 
Join Date: Jul 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank You for your reply. I will check and write here the results
Reply With Quote
  #8  
Old 8th November 2009, 12:33
lenthir lenthir is offline
Junior Member
 
Join Date: Jul 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've found something strange...

This is line from master.cf:
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender}

I've added: `echo "$LOGNAME; $EXTENSION; $RECIPIENT; $USER; $HOST; $SENDER; $DEFAULT" >> /var/vmail/maildrop_tst` near the end of file: .mailfilter...

In maildrop_tst I have:
; ; ; user; domain.com; sender@otherdomain.com; /var/vmail///.

I've noticed that in Debian Squeeze "tolower" doesn't work! :/

mail.log says:
/usr/bin/maildrop: Unable to open mailbox.

--

Workaround for Fedora (and for Debian Squeeze?) is shitful !! And you can't tell now, that this is not bug
DEFAULT="/var/vmail/$HOST/$USER/." is defined before workaroud, and this shouldn't work! Moreover when recipient has uppercase, new mailbox is created!

Last edited by lenthir; 8th November 2009 at 13:53.
Reply With Quote
  #9  
Old 8th November 2009, 13:19
lenthir lenthir is offline
Junior Member
 
Join Date: Jul 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

This is better .mailfilter code:

Code:
#
# Import variables
#

TEST=tolower("test")
if($TEST)
{
  LOGNAME=tolower("$LOGNAME")
  RECIPIENT=tolower("$2")
  USER=tolower("$3")
  HOST=tolower("$4")
}
else
{
  # Workaround for broken tolower function in some current debian/fedora releases
  LOGNAME=`echo $LOGNAME | tr '[:upper:]' '[:lower:]'`

  RECIPIENT=$2
  RECIPIENT=`echo $RECIPIENT | tr '[:upper:]' '[:lower:]'`

  USER=$3
  USER=`echo $USER | tr '[:upper:]' '[:lower:]'`

  HOST=$4
  HOST=`echo $HOST | tr '[:upper:]' '[:lower:]'`
}

EXTENSION="$1"
if ( "$EXTENSION" ne "" )
{
  DELIMITER="+"
}

SENDER="$5"
if (!$SENDER)
{
  SENDER = "<>"
}

DEFAULT="/var/vmail/$HOST/$USER/."

#
# Autocreate maildir, if not exist
#
(...)
Now everything works, but I've unnecessary SQL query in LOG!

Code:
Nov  8 13:12:43 columbo authdaemond: received userid lookup request: vmail
Nov  8 13:12:43 columbo authdaemond: authmysql: trying this module
Nov  8 13:12:43 columbo authdaemond: SQL query: SELECT email, password, "", uid, gid, homedir, maildir, quota, "", concat('disableimap=',disableimap,',disablepop3=',disablepop3) FROM mail_user WHERE email = 'vmail'
Nov  8 13:12:43 columbo authdaemond: zero rows returned
Nov  8 13:12:43 columbo authdaemond: authmysql: REJECT - try next module
Nov  8 13:12:43 columbo authdaemond: FAIL, all modules rejected
Nov  8 13:12:43 columbo postfix/pipe[3326]: 5AB1D2834: to=<user@domain.com>, relay=maildrop, delay=15858, delays=15849/9.2/0/0.19, dsn=2.0.0, status=sent (delivered via maildrop service)
Nov  8 13:12:43 columbo postfix/qmgr[27328]: 5AB1D2834: removed
How to remove SQL query? Is it possible?

Last edited by lenthir; 8th November 2009 at 13:48.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
All my mail is going to /var/mail/vmail _sluimers_ Installation/Configuration 21 10th January 2011 13:21
maildrop problem zond Installation/Configuration 2 16th July 2009 11:00
Maildrop Postfixadmin create mail directories tecstream HOWTO-Related Questions 9 25th July 2008 12:17
maildrop: unable to change home directory eliufoo Server Operation 2 22nd July 2008 14:58
postfix+mysql and maildrop filter problem osanet Installation/Configuration 1 2nd June 2006 11:50


All times are GMT +2. The time now is 21:45.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.