Maildrop Authorization Failure

Discussion in 'Server Operation' started by breitscott, Feb 16, 2007.

  1. breitscott

    breitscott New Member

    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 ~]$
     
  2. falko

    falko Super Moderator

    What's the output of
    Code:
    ls -l /usr/bin/maildrop
    ? Is your Postfix running chrooted?
     
  3. breitscott

    breitscott New Member

    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?
     
  4. breitscott

    breitscott New Member

    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]#
     
  5. breitscott

    breitscott New Member

    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
     

Share This Page