LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 11-06-2008, 04:16 PM   #1
sessnarus
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
postfix + procmail trouble


hello!

I am trying to setup automated incoming mail processing and run into the following problem - can't setup procmail + postfix integration

main.cf:
mailbox_command = /usr/bin/procmail

.procmailrc:
:0 fw:
* ^Subject:.*test
| /path/to/mail/processing/script

nothing happens.
mail with subject set to "test" arrives successfully, no any processing takes place.

attempt to debug - change main.cf
mailbox_command = /tmp/1.sh

where /tmp/1.sh:

#!/bin/sh

echo "hello" > /tmp/hello.txt

attept to send email - mail with subject set to "test" arrives successfully, no hello.txt in /tmp/

ls /tmp/h*
ls: /tmp/h*: No such file or directory

Any ideas on what's going on?
Thanks in advance!
 
Old 11-06-2008, 04:42 PM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 120Reputation: 120
Do your maillogs show anything?
 
Old 11-07-2008, 01:34 AM   #3
sessnarus
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Original Poster
Rep: Reputation: 0
log excerpt

Quote:
Originally Posted by billymayday View Post
Do your maillogs show anything?
well, I am close to newbie with postfix, and can't say for sure
here is my tail from the /var/log/maillog for test message receiving

postfix/smtpd[4176]: connect from fg-out-1718.google.com[72.14.220.153]
postfix/smtpd[4176]: E1E84CE8072: client=fg-out-1718.google.com[72.14.220.153]
postfix/cleanup[4180]: E1E84CE8072: message-id=<1789729710.20081107102701@gmail.com>
postfix/qmgr[29037]: E1E84CE8072: from=<mymail@gmail.com>, size=2078, nrcpt=1 (queue active)
lmtpunix[3190]: accepted connection
lmtpunix[3190]: lmtp connection preauth'd as postman
master[4183]: about to exec /usr/lib/cyrus-imapd/lmtpd
lmtpunix[3190]: IOERROR: fstating sieve script /var/lib/imap/sieve/a/admin/defaultbc: No such file or directory
lmtpunix[3190]: duplicate_check: <1789729710.20081107102701@gmail.com> user.admin 0
lmtpunix[4183]: executed
lmtpunix[3190]: duplicate_check: <1789729710.20081107102701@gmail.com> user.admin 0
lmtpunix[3190]: mystore: starting txn 2147491066
lmtpunix[3190]: mystore: committing txn 2147491066
lmtpunix[3190]: duplicate_mark: <1789729710.20081107102701@gmail.com> user.admin 1226042574 12312996
lmtpunix[3190]: Delivered: <1789729710.20081107102701@gmail.com> to mailbox: user.admin
postfix/lmtp[4182]: E1E84CE8072: to=<admin@mydomain.com>, relay=mydomain.com[/var/lib/imap/socket/lmtp], delay=0.11, delays=0.09/0/0/0.01, dsn=2.1.5, status=sent (250 2.1.5 Ok)
postfix/qmgr[29037]: E1E84CE8072: removed

what means the presented IOERROR?
But no any mention of even attempt to execute /tmp/1.sh script or do something with mailbox_command!
Thanks in advance!

Last edited by sessnarus; 11-07-2008 at 01:39 AM. Reason: Forgot to add a line :)
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
procmail Autoresponder for Postfix javed_dogar Linux - Server 8 09-25-2008 11:44 PM
Need help POSTFIX,PROCMAIL tkmuthuvel Linux - General 9 04-18-2006 11:31 PM
postfix - procmail, fetchmail varun_saa Mandriva 3 09-11-2005 12:53 AM
Using Procmail with Postfix jomy Linux - Networking 1 06-05-2005 09:38 AM
postfix, procmail, cyrus jonin Linux - Software 0 10-15-2004 02:09 PM


All times are GMT -5. The time now is 06:19 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
Open Source Consulting | Domain Registration