LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-28-2017, 06:09 AM   #1
kryspek
LQ Newbie
 
Registered: Apr 2017
Posts: 8

Rep: Reputation: Disabled
Postfix with Spamassassin, discards the spam instead of delivering to spam folder


I've a problem with my Spamassassin, it discards email instead of delivering it to the actual spam folder, I need to change this option just in case the email wasn't spam but i got marked that it was, so i can check my spam folder from time to time.

Quote:
/etc/postfix/master.cf

smtp inet n - n - - smtpd -o content_filter=spamassassin
spamassassin unix - n n - - pipe user=spamd argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
My configuration is set to


Quote:
/etc/postfix/header_checks
/^X-Spam-Flag:.YES/ DISCARD This is spam
Is there a way to configure it so it will mark the message as spam and deliver it to spam/junk folder?

Log

Quote:
Apr 28 09:55:26 testmail postfix/pickup[2171]: BF55C2C2451: uid=1001 from=<email@email>
Apr 28 09:55:26 testmail postfix/pipe[2275]: 006602C244C: to=<email@email>, relay=spamassassin, delay=0.99, delays=0.34/0.03/0/0.62, dsn=2.0.0, status=sent (delivered via spamassassin service)
Apr 28 09:55:26 testmail postfix/qmgr[2172]: 006602C244C: removed
Apr 28 09:55:26 testmail postfix/cleanup[2274]: BF55C2C2451: message-id=<0d84bd23-8e3a-588d-d6f1-501f61f5d1a9@gmail.com>
Apr 28 09:55:26 testmail postfix/cleanup[2274]: BF55C2C2451: discard: header X-Spam-Flag: YES from local; from=<email@email> to=<email@email>: This is spam

Last edited by kryspek; 04-28-2017 at 06:10 AM.
 
Old 04-28-2017, 05:55 PM   #2
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 417

Rep: Reputation: 74
What's the output of:

Code:
postconf -n mailbox_command
postconf -d mailbox_command
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Move SA Marked Spam to Junk/Spam Folder Using Procmail, Postfix, and Virtual Users alden_pease Linux - Server 0 01-05-2012 12:29 AM
spam filter that puts spam into spam folder? paul_mat Linux - Software 3 03-31-2009 04:18 AM
LXer: How to filter spam with Spamassassin and Postfix in Debian LXer Syndicated Linux News 0 04-20-2008 04:50 PM
Postfix, dovecot, spamassassin SPAM to a spam folder breitscott Linux - Server 30 02-17-2007 02:47 PM
spam/not spam folder in spamassassin depam Linux - Networking 2 11-29-2006 07:01 AM

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

All times are GMT -5. The time now is 08:54 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