Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 04-28-2017, 07:09 AM   #1
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.


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

/^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?


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=<>
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 07:10 AM.
Old 04-28-2017, 06:55 PM   #2
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 417

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

postconf -n mailbox_command
postconf -d mailbox_command


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 01:29 AM
spam filter that puts spam into spam folder? paul_mat Linux - Software 3 03-31-2009 05:18 AM
LXer: How to filter spam with Spamassassin and Postfix in Debian LXer Syndicated Linux News 0 04-20-2008 05:50 PM
Postfix, dovecot, spamassassin SPAM to a spam folder breitscott Linux - Server 30 02-17-2007 03:47 PM
spam/not spam folder in spamassassin depam Linux - Networking 2 11-29-2006 08:01 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:09 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration