Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th February 2007, 16:27
breitscott breitscott is offline
Junior Member
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Maildrop Authorization Failure

I am Fedora Core 6, postfix, dovecot, spamassassin, maildrop

Irrespective of what I try, I get an authentication error on maildrop. Maildrop is launched from postfix.

I have changed directory permissions, stickybits, etc - to no avail.

Here is what I have

From the log

Feb 16 09:22:16 streit maildrop[5125]: Temporary authentication failure.
Feb 16 09:22:16 streit postfix/local[5101]: 484155A6CAC: to=<scott@streit.thestreits.com>, orig_to=<scott@thestreits.com>, relay=local, delay=5.4, delays=5.4/0/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: ERR: authdaemon: s_connect() failed: No such file or directory /usr/bin/maildrop: Temporary authentication failure. )
Feb 16 09:22:20 streit dovecot: imap-login: Login: user=<scott>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured

[root@streit lib]# rpm -qa | grep maildrop
maildrop-2.0.3-1.fc6.mf
[root@streit lib]#

-rwxr-xr-x 1 postfix mail 184600 Dec 30 20:16 maildrop


[root@streit postfix]# ls -al
total 128
drwxr-xr-x 16 root root 4096 Nov 3 08:20 .
drwxr-xr-x 14 root root 4096 Feb 14 21:23 ..
drwx------ 2 postfix root 4096 Feb 16 09:55 active
drwx------ 2 postfix root 4096 Feb 15 14:43 bounce
drwx------ 2 postfix root 4096 Sep 1 12:47 corrupt
drwx------ 18 postfix root 4096 Nov 8 17:42 defer
drwx------ 18 postfix root 4096 Nov 8 17:42 deferred
drwx------ 2 postfix root 4096 Feb 14 21:26 flush
drwx------ 2 postfix root 4096 Sep 1 12:47 hold
drwx------ 2 postfix root 4096 Feb 16 09:55 incoming
drwxrwsr-x 2 postfix postdrop 4096 Feb 16 09:22 maildrop
drwxr-xr-x 2 root root 4096 Feb 14 21:26 pid
drwx------ 2 postfix root 4096 Feb 16 09:21 private
drwxrwsr-x 2 postfix postdrop 4096 Feb 16 09:21 public
drwx------ 2 postfix root 4096 Sep 1 12:47 saved
drwx------ 2 postfix root 4096 Sep 1 12:47 trace
[root@streit postfix]#

[scott@streit ~]$ ls -al .mailfilter
-rw------- 1 scott scott 83 Feb 15 12:23 .mailfilter
[scott@streit ~]$
Reply With Quote
Sponsored Links
  #2  
Old 17th February 2007, 17:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,725 Times in 2,565 Posts
Default

What's the output of
Code:
ls -l /usr/bin/maildrop
? Is your Postfix running chrooted?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 17th February 2007, 20:46
breitscott breitscott is offline
Junior Member
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default boils down to two things

Everything seems to boil down to two things. The permissions on /usr/local/bin/maildrop and an entry in the main.cf file. By the way, in /etc/aliases my user is as follows:

scott scott, breitscott@yahoo.com, postmaster

I believe this is correct.

Now the permissions. I have tried many permutations with differing errors.

Right now

[root@streit bin]# pwd
/usr/local/bin
[root@streit bin]# ls -al
total 392
drwxr-xr-x 2 root root 4096 Feb 16 17:02 .
drwxr-xr-x 13 root root 4096 Feb 16 17:02 ..
-rwxr-xr-x 1 root root 20388 Feb 16 17:02 deliverquota
-rwxr-xr-x 1 root mail 10576 Feb 16 17:02 lockmail
-rwxr-xr-x 1 root root 23724 Feb 16 17:02 mailbot
-rwxr-xr-x 1 root root 24216 Feb 16 17:02 maildirmake
-rwsr-sr-x 1 root root 160820 Feb 16 17:02 maildrop
-rwxr-xr-x 1 root root 24240 Feb 16 17:02 makemime
-rwxr-xr-x 1 root root 39736 Feb 16 17:02 reformail
-rwxr-xr-x 1 root root 61332 Feb 16 17:02 reformime
-rwxr-xr-x 1 spamfilter root 75 Feb 10 16:45 spamfilter


and main.cf of

mailbox_command = /usr/local/bin/maildrop -d root


results in a log of

Feb 17 14:29:44 streit postfix/local[23442]: DCBB15A6C3C: to=<root@streit.thestreits.com>, orig_to=<webmaster@breitsolutions.com>, relay=local, delay=188594, delays=188593/0.09/0/1.1, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/maildrop: You are not a trusted user. )


a main.cf of

mailbox_command = /usr/local/bin/maildrop -d ${USER}

and permissions of root:mail and 755 on maildrop result in

results in the same thing as does 755 and owned by postfix and mail group.

Any ideas?
Reply With Quote
  #4  
Old 17th February 2007, 21:03
breitscott breitscott is offline
Junior Member
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Also

[root@streit postfix]# ls -al
total 128
drwxr-xr-x 16 root root 4096 Nov 3 08:20 .
drwxr-xr-x 14 root root 4096 Feb 14 21:23 ..
drwx------ 2 postfix root 4096 Feb 17 14:46 active
drwx------ 2 postfix root 4096 Feb 16 17:04 bounce
drwx------ 2 postfix root 4096 Sep 1 12:47 corrupt
drwx------ 18 postfix root 4096 Nov 8 17:42 defer
drwx------ 18 postfix root 4096 Nov 8 17:42 deferred
drwx------ 2 postfix root 4096 Feb 14 21:26 flush
drwx------ 2 postfix root 4096 Sep 1 12:47 hold
drwx------ 2 postfix root 4096 Feb 17 14:46 incoming
drwxrwsr-x 2 postfix postdrop 4096 Feb 17 14:24 maildrop
drwxr-xr-x 2 root root 4096 Feb 14 21:26 pid
drwx------ 2 postfix root 4096 Feb 17 14:13 private
drwxrwsr-x 2 postfix postdrop 4096 Feb 17 14:13 public
drwx------ 2 postfix root 4096 Sep 1 12:47 saved
drwx------ 2 postfix root 4096 Sep 1 12:47 trace
[root@streit postfix]#
Reply With Quote
  #5  
Old 17th February 2007, 21:22
breitscott breitscott is offline
Junior Member
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default More info

Ok now I have everything owned by root

resulting in the following new error:

Feb 17 15:15:23 streit postfix/postdrop[24337]: warning: mail_queue_enter: create file maildrop/944169.24337: Permission denied


permissions are:

[root@streit bin]# ls -al
total 392
drwxr-xr-x 2 root root 4096 Feb 16 17:02 .
drwxr-xr-x 13 root root 4096 Feb 16 17:02 ..
-rwxr-xr-x 1 root root 20388 Feb 16 17:02 deliverquota
-rwxr-xr-x 1 root mail 10576 Feb 16 17:02 lockmail
-rwxr-xr-x 1 root root 23724 Feb 16 17:02 mailbot
-rwxr-xr-x 1 root root 24216 Feb 16 17:02 maildirmake
-rwsr-sr-x 1 root root 160820 Feb 16 17:02 maildrop
-rwxr-xr-x 1 root root 24240 Feb 16 17:02 makemime
-rwxr-xr-x 1 root root 39736 Feb 16 17:02 reformail
-rwxr-xr-x 1 root root 61332 Feb 16 17:02 reformime
-rwxr-xr-x 1 spamfilter root 75 Feb 10 16:45 spamfilter


[root@streit postfix]# pwd; ls -al
/var/spool/postfix
total 128
drwxr-xr-x 16 root root 4096 Nov 3 08:20 .
drwxr-xr-x 14 root root 4096 Feb 14 21:23 ..
drwx------ 2 postfix root 4096 Feb 17 15:17 active
drwx------ 2 postfix root 4096 Feb 16 17:04 bounce
drwx------ 2 postfix root 4096 Sep 1 12:47 corrupt
drwx------ 18 postfix root 4096 Nov 8 17:42 defer
drwx------ 18 postfix root 4096 Nov 8 17:42 deferred
drwx------ 2 postfix root 4096 Feb 14 21:26 flush
drwx------ 2 postfix root 4096 Sep 1 12:47 hold
drwx------ 2 postfix root 4096 Feb 17 15:17 incoming
drwxrwsr-x 2 root root 4096 Feb 17 15:08 maildrop
drwxr-xr-x 2 root root 4096 Feb 14 21:26 pid
drwx------ 2 postfix root 4096 Feb 17 15:15 private
drwxrwsr-x 2 postfix mail 4096 Feb 17 15:15 public
drwx------ 2 postfix root 4096 Sep 1 12:47 saved
drwx------ 2 postfix root 4096 Sep 1 12:47 trace


no matter how I setup the maildrop command in /etc/postfix/main.cf either
-d {USER} or -d root

which directory is it referring to for maildrop and what does it need the permissions to be
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
Dovecot Auth. Failure spams Message log d3m0nic Installation/Configuration 4 20th October 2009 18:47
Order of maildrop, amavisd ColdDoT Server Operation 2 25th August 2006 13:12
maildrop & mysql issue nabs Installation/Configuration 1 25th July 2006 14:29
Virtual Users with Postfix + Maildrop immobilia HOWTO-Related Questions 2 19th July 2006 16:59
postfix+mysql and maildrop filter problem osanet Installation/Configuration 1 2nd June 2006 11:50


All times are GMT +2. The time now is 01:34.


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