LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-01-2006, 10:54 PM   #1
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 784

Rep: Reputation: 36
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.

Last edited by Red Squirrel; 07-02-2006 at 10:34 AM.
 
Old 07-02-2006, 10:35 AM   #2
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 784

Original Poster
Rep: Reputation: 36
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.
 
Old 07-02-2006, 12:49 PM   #3
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
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.

Last edited by Berhanie; 07-02-2006 at 12:51 PM.
 
  


Reply

Tags
mail, passing, postfix, procmail


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
confuguring postfix to use procmail for system wide mail delivery jomy Linux - Networking 0 01-23-2005 07:47 AM
procmail trashes postfix mail server jillu Linux - Software 0 09-22-2004 03:35 PM
postfix error procmail: Couldn't create "/var/spool/mail/ bentman78 Linux - Software 4 05-26-2004 12:04 AM
mail replication postfix + procmail + fetchmail sebastianjustin Linux - Software 5 08-21-2003 07:45 AM
configuring mail server (postfix+fetchmail+procmail) amolchikhale Linux - Networking 0 08-01-2003 04:59 AM


All times are GMT -5. The time now is 02:29 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration