LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   postfix wont process mail through procmail (http://www.linuxquestions.org/questions/linux-software-2/postfix-wont-process-mail-through-procmail-460162/)

Red Squirrel 07-01-2006 10:54 PM

postfix wont process mail through procmail
 
I added this line:

mailbox_command = /usr/bin/procmail -f

In the main.cf, but it's still not procesisng mail through procmail, is there anything else I need to do? (I restarted it obviously)

Mail is processed by fetchmail, goes to postfix, and is suppost to go through procmail then in the inbox/spam folder.


I dont know if this is related or not, but I get a bunch of weird crap in the maillog, have no clue what its even trying to do, since the imap server works fine.

Code:

Jul  2 00:02:15 borg dovecot: imap(email_ryan): ioctl(inotify_fd, FIONREAD) failed: Permission denied
Jul  2 00:02:16 borg dovecot: child 6429 (imap) returned error 89
Jul  2 00:02:17 borg dovecot: imap-login: Login: user=<email_ryan>, method=plain, rip=::ffff:10.1.1.20, lip=::ffff:10.1.1.10
Jul  2 00:02:17 borg dovecot: imap-login: Login: user=<email_ryan>, method=plain, rip=::ffff:10.1.1.20, lip=::ffff:10.1.1.10
Jul  2 00:02:18 borg dovecot: imap(email_ryan): ioctl(inotify_fd, FIONREAD) failed: Permission denied
Jul  2 00:02:18 borg dovecot: child 6474 (imap) returned error 89
Jul  2 00:02:19 borg dovecot: imap-login: Login: user=<email_ryan>, method=plain, rip=::ffff:10.1.1.20, lip=::ffff:10.1.1.10
Jul  2 00:02:29 borg dovecot: imap-login: Login: user=<email_ryan>, method=plain, rip=::ffff:10.1.1.20, lip=::ffff:10.1.1.10
Jul  2 00:02:32 borg dovecot: imap(email_ryan): ioctl(inotify_fd, FIONREAD) failed: Permission denied
Jul  2 00:02:32 borg dovecot: child 6483 (imap) returned error 89
Jul  2 00:02:33 borg dovecot: imap-login: Login: user=<email_ryan>, method=plain, rip=::ffff:10.1.1.20, lip=::ffff:10.1.1.10
Jul  2 00:02:35 borg dovecot: imap-login: Login: user=<email_ryan>, method=plain, rip=::ffff:10.1.1.20, lip=::ffff:10.1.1.10
Jul  2 00:02:36 borg dovecot: imap(email_ryan): ioctl(inotify_fd, FIONREAD) failed: Permission denied
Jul  2 00:02:36 borg dovecot: child 6499 (imap) returned error 89
Jul  2 00:02:40 borg dovecot: imap(email_ryan): ioctl(inotify_fd, FIONREAD) failed: Permission denied
Jul  2 00:02:40 borg dovecot: child 6494 (imap) returned error 89
Jul  2 00:02:41 borg dovecot: imap(email_ryan): ioctl(inotify_fd, FIONREAD) failed: Permission denied
Jul  2 00:02:41 borg dovecot: child 6130 (imap) returned error 89



Also when I view mail headers of received mail it shows to be coming from my LAN IP, is there a way to change this? I will probably get issues trying to send mail if the destination server blocks such mails, thinking it is spam.



Also, where is the procmail log? I checked using find in /var/log and its nowhere to be found. Perhaps my migrated .procmailrc is invalid with this version, or the path to spamc changed, or something but I dont know where the error is going, if its generating one.

Red Squirrel 07-02-2006 10:35 AM

I've been searching on google and it seems all I have to do is add that line, so maybe its going through procmail but erroring out, so where can I find the procmail log?

And I really want to figure out why I'm getting all those weird access denied errors, drives me nuts when I'm trying to find something in the mail log.

Berhanie 07-02-2006 12:49 PM

To log messages from procmail you need to set a few variables in your procmailrc. Read the procmailrc
man page, and look for LOGFILE and LOGABSTRACT. Here is an example a of a .procmailrc file which
enables logging:
Code:

LOGFILE=$HOME/.procmaillog
LOGABSTRACT=all #log abstract (From, Subject, final destination folder, length)

:0
* ^Sender: owner-postfix-users
postfix-list

You didn't post any of the postfix logs. When postfix hands mail to procmail, it notes it in the logs.
Also, the '-f' option to procmail looks strange without an argument following.


All times are GMT -5. The time now is 03:54 AM.