LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-27-2017, 07:05 PM   #1
Zaxxon
LQ Newbie
 
Registered: Aug 2017
Posts: 12

Rep: Reputation: Disabled
Question Procmail Issue/Assistance


Greetings,

I am a member of the SDF Unix/NetBSD system.

Sometime back in December of last year, they changed something and procmail which had been worked until then stopped saving my incoming email according to the folders/recipes I had been using.

If I try to run it locally, I get
Code:
> formail -s procmail < inBox
/bin/sh: Can't open /usr/pkg/bin/spamc
procmail: Error while writing to "/usr/pkg/bin/spamc"
procmail: Rescue of unfiltered data succeeded
I tried:
Code:
> cd /usr/pkg/bin
> ls -l spamc
ls: spamc: No such file or directory
Is there something locally, I can do to get procmail working again?
Or ask the admins with some more detailed request?
 
Old 08-27-2017, 07:45 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,194

Rep: Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040
Do you use your own .procmailrc? Is there something which needs to write to spamc? You can also check the system /etc/procmailrc which should be world readable.

I am a bit puzzled by the spamc thing. Usually the MTA sends mail off to the spamc processor and then delivers it to your inbox. It is the normal rule for procmail to check and filter on a modified subject line if spamc considers it as spam.

jlinkels
 
Old 08-27-2017, 08:11 PM   #3
Zaxxon
LQ Newbie
 
Registered: Aug 2017
Posts: 12

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by jlinkels View Post
Do you use your own .procmailrc?
Yes, I use my own .procmailrc file.

Quote:
Originally Posted by jlinkels View Post
Is there something which needs to write to spamc?
No clue, only that if I try to run procmail on existing mail, I get that message. And no, spamc doesn't see to exist, so not sure where it's being referenced from.

Quote:
Originally Posted by jlinkels View Post
You can also check the system /etc/procmailrc which should be world readable.
It's not accessible to regular users like myself. I get:
Code:
> ls -l /etc/proc*
ls: No match.
Quote:
Originally Posted by jlinkels View Post
I am a bit puzzled by the spamc thing.
I agree. As I said, something on the system changed, and no procmail doesn't work on saving my mail to specifed folders. It does forward some of my email in accordance to the recipe I have. So some of procmail is working, just not all.

Very strange.
 
Old 08-28-2017, 04:48 AM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,194

Rep: Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040
It is likely /etc/procmail does not exist. If you had no permissions it would say "access denied".

What is the contents of your .procmailrc?

jlinkels
 
Old 08-28-2017, 02:56 PM   #5
Zaxxon
LQ Newbie
 
Registered: Aug 2017
Posts: 12

Original Poster
Rep: Reputation: Disabled
Post

Quote:
Originally Posted by jlinkels View Post
What is the contents of your .procmailrc?
Code:
#DEFAULT=/var/mail/zaxxon
#MAIL=/var/mail/zaxxon
#ORGMAIL=/var/mail/zaxxon
PMDIR=$HOME/Mail
BINDIR=$HOME/bin
COMSAT=no
LOCKEXT=.lock
LOGABSTRACT=all
LOGFILE=$PMDIR/procmail.log    # Log file
MAILDIR=$HOME/.procmail      #you''d better make sure it exists
PATH=/bin:/usr/bin:/usr/local/bin:/arpa/tz/z/zaxxon:/usr/libexec/bin
SHELL=/bin/sh
VERBOSE=off
JFDIR=$HOME/.junkfilter/junkfilter
JFUSERDIR=$JFDIR/user_blocklist
FROM="^(From[  ]|(Old-|X-)?(Resent-)?(From|Reply-To|Sender):)(.*\<)?"
# Note: Usage is "$ ${FROM}" - The first "$" on the condition line
# tells that the environment variable(s) on the line are to be
# expanded, instead of taking all the text on the condition line
# literally.

:0c
* $ ${FROM}.*(mangafox|nanowrimo|keiramarcos|rpgcrossing).*
! sachss200x@yahoo.com

:0:
* $ ${FROM}.*(mangafox|nanowrimo|keiramarcos|rpgcrossing).*
$DEFAULT

:0c
* $ ${FROM}.*(facebook|pottermore|goodreads).*
! sachss200x@yahoo.com

:0:
* $ ${FROM}.*(facebook|pottermore|goodreads).*
$DEFAULT

:0c
* $ ${FROM}.*(archiveofourown|ficwad|tthfanfic|fanficauthors|sufficientvelocity))
.*
! sachss200x@yahoo.com

:0:
* $ ${FROM}.*(archiveofourown|ficwad|tthfanfic|fanficauthors|sufficientvelocity))
.*
$DEFAULT

:0: 
* $ ${FROM}.*(sdf\.org|lastpass\.com|xmarks\.com).* 
$DEFAULT 
 
:0: 
* ^(TO|Subject:|Mailing-List:).*[Zz][Bb][Rr][Ll].* 
* !^(Subject:|Mailing-List:).*[Ss][Pp][Aa][Mm].*
zbrl.list

:0:
* ^(From|Subject:|Mailing-List:).*[Nn]eko[Cc]on.*
nekocon.list

:0:
* ^(Subject:|Mailing-List:).*[Pp]ort[Kk]ey.[Oo]rg.*
$DEFAULT

:0:
* $ ${FROM}.*([Mm]edia[Mm]iner|luwriting).*
$DEFAULT

:0B:
* Subject:.* PM: .*
* .*fanfiction\.net.*
${PMDIR}/pm

:0B:
* Subject:.*(Favorite|Follow|Review).*
* .*fanfiction\.net.*
${PMDIR}/alerts

:0:
* ^Subject:.*[Ss][Pp][Aa][Mm].*
junkmail

# Check for Mailing List Emails
INCLUDERC=$HOME/.procmail.mailinglistsrc

:0:
* ^FROM_MAILER
postm.admin
 
Old 08-28-2017, 03:27 PM   #6
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,194

Rep: Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040
I can't say this sheds any light ...

The only thing which I can imagine is that the mail forwarding command (! sachss200x@yahoo.com) triggers something else but sendmail. So can you temporarily comment out the rules which forward something (the entire stanza, from ":0c" up to and including "! sachss200x@yahoo.com") and try again. I think there are 2 of them, right?

Let's see what happens.

jlinkels
 
  


Reply

Tags
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
Postfix / Procmail issue NightStalkerX6 Linux - Software 2 03-28-2014 08:33 PM
[SOLVED] issue recompiling procmail cbastos Slackware 3 11-17-2012 10:09 PM
PROCMAIL+POSTFIX - Vacation Mail issue arjuns8471 Linux - Newbie 4 02-26-2009 11:12 PM
gftp issue after procmail install swamprat Linux - Software 1 08-11-2007 03:51 AM
funky courier / procmail issue burnitall Linux - Software 0 03-24-2004 07:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:38 PM.

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