LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-16-2007, 01:52 AM   #16
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122

Scott, do you know why your version of maildrop is so much smaller than mine?

Edit - that's not meant to be a "mine's bigger than your" comment
 
Old 02-16-2007, 07:28 AM   #17
breitscott
LQ Newbie
 
Registered: Nov 2004
Distribution: fedora core
Posts: 26

Original Poster
Rep: Reputation: 15
Bill,

I did comment it out and mail was delivered. So we know where the problem is. The error on maildrop. Any ideas?

Scott
 
Old 02-16-2007, 03:26 PM   #18
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Given the size of your maildrop, I'd try uninstalling it and reinstalling

Bill
 
Old 02-16-2007, 03:29 PM   #19
breitscott
LQ Newbie
 
Registered: Nov 2004
Distribution: fedora core
Posts: 26

Original Poster
Rep: Reputation: 15
Bill,

I installed mine as an rpm. How did you install yours? Are you Fedora Core 6?

I got mine from
[root@streit yum.repos.d]# more enlartenment.repo
[enlartenment]
name=Enlartenment Repository for $releasever - $basearch
baseurl=http://www.enlartenment.com/packages/fedora/$releasever/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-enlartenment
enabled=0
gpgcheck=1

[enlartenment-sources]
name=Enlartenment Repository for $releasever - Sources
baseurl=http://www.enlartenment.com/packages/fedora/$releasever/SRPMS/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-enlartenment
enabled=0
gpgcheck=1
 
Old 02-16-2007, 03:42 PM   #20
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I run it on an FC5 machine, but installed from source (actually I upgraded yesterday since I noticed it looked a bit old)


I guess you'd just go yum remove maildrop and then yum install maildrop
 
Old 02-16-2007, 03:46 PM   #21
breitscott
LQ Newbie
 
Registered: Nov 2004
Distribution: fedora core
Posts: 26

Original Poster
Rep: Reputation: 15
when you installed from source, what options did you use. That is what I want to try next.

I want to yum remove maildrop.

I want to get out of this security hell, so when I do

./configure [options]

Do you have options to recommend? I am looking for simplicity

Scott
 
Old 02-16-2007, 03:53 PM   #22
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I didn't - straight old

./configure
make
make install

Check where it installs though, because I note that mine was put in /usr/local/bin which means you need to chane the path for postfix (I think that is in main.cf)
 
Old 02-16-2007, 06:01 PM   #23
breitscott
LQ Newbie
 
Registered: Nov 2004
Distribution: fedora core
Posts: 26

Original Poster
Rep: Reputation: 15
Bill,

The problem with maildrop was the rpm. Once I configured and compiled everything started working. There is one issue:

My mail is running the mail filter but ending up in /var/mail/scott. So my Maildir never sees the email. Any ideas?

Here is the result in my mailflter.log

My config is in http://problem.thestreits.com



[scott@streit ~]$ more mailfilter.log
Date: Fri Feb 16 18:57:23 2007
From: scott@appdev.j2ee.raba.com (Scott Streit)
Subj: teaste
File: /var/mail/scott (1039)


Scott
 
Old 02-16-2007, 07:59 PM   #24
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Glad that bit's fixed.

I can't see you logs. My guess is either the spamfilter config (I use amavisd to do my content filtering) or your .mailfilter file.

I'd either try removing spamfilter and see if it delivers properly, or perhaps post your .mailfilter
 
Old 02-16-2007, 08:31 PM   #25
breitscott
LQ Newbie
 
Registered: Nov 2004
Distribution: fedora core
Posts: 26

Original Poster
Rep: Reputation: 15
[scott@streit ~]$ more .mailfilter
Verbose 4
logfile mailfilter.log

if ( /^"Subject:.*SPAM/ )
to Maildir/.Trash



Also, if I remove the .mailfilter I still don't see the mail in my Maildir directories.
 
Old 02-16-2007, 08:46 PM   #26
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try this

Default=/home/scott/Maildir

Verbose 4
logfile mailfilter.log

if ( /^"Subject:.*SPAM/ )
to "$Default/.Trash/"


It may just be you need the trailing / after .Trash - trailing /'s often indicate Maildirs
 
Old 02-17-2007, 01:47 PM   #27
breitscott
LQ Newbie
 
Registered: Nov 2004
Distribution: fedora core
Posts: 26

Original Poster
Rep: Reputation: 15
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?
 
Old 02-17-2007, 02:03 PM   #28
breitscott
LQ Newbie
 
Registered: Nov 2004
Distribution: fedora core
Posts: 26

Original Poster
Rep: Reputation: 15
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]#
 
Old 02-17-2007, 02:21 PM   #29
breitscott
LQ Newbie
 
Registered: Nov 2004
Distribution: fedora core
Posts: 26

Original Poster
Rep: Reputation: 15
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
 
Old 02-17-2007, 02:42 PM   #30
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
On the alias front, I can't see the line you specify, but your aliases look OK. Are you running

postalias /etc/aliases

after updates to the aliases file?

The main.cf entry should literally be

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

don't replace {USER} with root

Try setting the ownership of maildrop back to root:mail (check you have a group mail in /etc/groups perhaps)

Then let's see what happens
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
spam filter that puts spam into spam folder? paul_mat Linux - Software 3 03-31-2009 04:18 AM
spam/not spam folder in spamassassin depam Linux - Networking 2 11-29-2006 07:01 AM
Email and spam in different folders using spamassassin tensigh Linux - Software 3 08-11-2005 10:21 AM
Training SpamAssassin - where to get current spam chakkerz Linux - Software 1 04-20-2005 11:27 PM
spamassassin tags spam while procmail isn't running broxtor Linux - Software 1 10-13-2004 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration