<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Control WebPanel Wiki &#187; spamassassin</title>
	<atom:link href="https://wiki.centos-webpanel.com/tag/spamassassin/feed" rel="self" type="application/rss+xml" />
	<link>https://wiki.centos-webpanel.com</link>
	<description>CentOS WebPanel Wiki</description>
	<lastBuildDate>Wed, 12 Feb 2025 20:38:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>Test SpamAssassin and ClamAV</title>
		<link>https://wiki.centos-webpanel.com/test-spamassassin-and-clamav</link>
		<comments>https://wiki.centos-webpanel.com/test-spamassassin-and-clamav#comments</comments>
		<pubDate>Mon, 27 Dec 2021 12:41:56 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[E-Mail]]></category>
		<category><![CDATA[clamav]]></category>
		<category><![CDATA[spamassassin]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1640</guid>
		<description><![CDATA[By default when you rebuild the mail server in CWP with antispam then it comes with enabled ClamAV &#038; SpamAssassin protection. You can enable it from CWP.admin by going to MailServer Manager. Test ClamAV Send an email with content X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H* If ClamAV works you will see the following in the log: /var/log/maillog Dec 27 07:22:42 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>By default when you rebuild the mail server in CWP with antispam then it comes with enabled ClamAV &#038; SpamAssassin protection.<br />
You can enable it from CWP.admin by going to MailServer Manager.</p>
<h3>Test ClamAV</h3>
<p>Send an email with content</p>
<pre>X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*</pre>
<p>If ClamAV works you will see the following in the log: <strong>/var/log/maillog</strong></p>
<pre>
Dec 27 07:22:42 cwp1 clamd[17958]: /var/spool/amavisd/tmp/amavis-20211227T071305-18132-Ocyoo8yY/parts/p001: {HEX}EICAR.TEST.3.UNOFFICIAL FOUND

Dec 27 07:22:42 cwp1 amavis[18132]: (18132-02) Blocked INFECTED ({HEX}EICAR.TEST.3.UNOFFICIAL) {DiscardedOpenRelay,Quarantined}, [209.85.216.47]:46925 [209.85.216.47] <cwptest@gmail.com> -> <mailbox@centos-webpanel.com>, Queue-ID: 9762E703FD2, Message-ID: <CAPpHnLrWNtv33LpLmFMQ=tXsttb1GuLL=Gh1=QNQZA-H+9rWeg@mail.gmail.com>, mail_id: TKHZnGx2Bs7T, Hits: -, size: 3868, dkim_sd=20210112:gmail.com, 111 ms

Dec 27 07:22:42 cwp1 postfix/smtp[12663]: 9762E703FD2: to=<mailbox@centos-webpanel.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.34, delays=0.21/0.02/0/0.11, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=18132-02 - INFECTED: {HEX}EICAR.TEST.3.UNOFFICIAL)</pre>
<h3>Test SpamAssassin</h3>
<p>Send an email with content:</p>
<pre>XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X</pre>
<p>If SpamAssassin works you will see the following in the log: <strong>/var/log/maillog</strong></p>
<pre>Dec 27 07:25:37 cwp1 amavis[18133]: (18133-02) Blocked SPAM {DiscardedOpenRelay,Quarantined}, [209.85.215.174]:37637 [209.85.215.174] <cwptest@gmail.com> -> <mailbox@centos-webpanel.com>, Queue-ID: 59C16703FD2, Message-ID: <CAPpHnLrfq+9m1gdBmrNtkn97CERDqhbs7nestLeqxkNCewqrrg@mail.gmail.com>, mail_id: vES-jRB7LKPt, Hits: 999.904, size: 3903, dkim_sd=20210112:gmail.com, 579 ms</pre>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/test-spamassassin-and-clamav/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to configure Spamassassin</title>
		<link>https://wiki.centos-webpanel.com/how-to-configure-spamassassin</link>
		<comments>https://wiki.centos-webpanel.com/how-to-configure-spamassassin#comments</comments>
		<pubDate>Tue, 02 Jul 2019 08:26:15 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[E-Mail]]></category>
		<category><![CDATA[spamassassin]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1192</guid>
		<description><![CDATA[Hi, there is how to configure Spamassassin + CWP's mail server. First, we have to edit Postifx and SpamAssassin configs. The /etc/postfix/master.cf has few variants at the time (january 2019) a) mail server built without ClamAV+SA+Amavis (you must install SpamAssassin manually) smtp inet n - n - - smtpd # -o content_filter=smtp-amavis:127.0.0.1:10024 # -o receive_override_options=no_address_mappings [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Hi, there is how to configure Spamassassin + CWP's mail server.</p>
<div class="st-alert st-alert- "><strong>NOTE:</strong> You should enable Anti-SPAM from CWP.admin under MailServer Manager.</p>
<p><em>* Please note that these changes can disable ClamAV protection and Dovecot rules or custom filters.</em></div>
<p>First, we have to edit Postifx and SpamAssassin configs.<br />
The <strong>/etc/postfix/master.cf</strong> has few variants at the time (january 2019)<br />
a) mail server built without ClamAV+SA+Amavis (you must install SpamAssassin manually)</p>
<pre class="prettyprint">smtp      inet  n       -       n       -       -       smtpd
#  -o content_filter=smtp-amavis:127.0.0.1:10024
#  -o receive_override_options=no_address_mappings</pre>
<p>b) mail server built with ClamAV+SA+Amavis</p>
<preclass="prettyprint">smtp      inet  n       -       n       -       -       smtpd
  -o content_filter=smtp-amavis:127.0.0.1:10024
  -o receive_override_options=no_address_mappings</pre>
<p>So, there must be added the line below (do NOT forget about two spaces before <em>-o</em>:</p>
<pre><code>  -o content_filter=spamassassin</code></pre>
<p>You must get the one of options below:</p>
<pre class="prettyprint"><strong>a)</strong>
smtp      inet  n       -       n       -       -       smtpd
#  -o content_filter=smtp-amavis:127.0.0.1:10024
#  -o receive_override_options=no_address_mappings
  -o content_filter=spamassassin
<strong>b)</strong>
smtp      inet  n       -       n       -       -       smtpd
  -o content_filter=smtp-amavis:127.0.0.1:10024
  -o receive_override_options=no_address_mappings
  -o content_filter=spamassassin
</pre>
<p>Once it done you have to add the lines below at the bottom /etc/postfix/master.cf</p>
<pre class="prettyprint">spamassassin      unix -      n      n      -      -      pipe
  user=nobody argv=/usr/bin/spamc -f -e
  /usr/sbin/sendmail -oi -f ${sender} ${recipient}</pre>
<p>Next, we have to edit <strong>/etc/sysconfig/spamassassin</strong> with the code below:</p>
<pre class="prettyprint">SAHOME="/var/lib/spamassassin/"
SPAMDOPTIONS="-d -c -m5 -u nobody -s ${SAHOME}spamd.log"</pre>
<p>Options there:<br />
<strong>-d</strong> Detach from starting process and run in background (daemonize).<br />
<strong>-c</strong> Create user preferences files if they don't exist.<br />
<strong>-C</strong> Set config path.<br />
<strong>-m</strong> This option specifies the maximum number of children to spawn.<br />
<strong>-u</strong> Run as the named user.<br />
<strong>-s</strong> Specify the syslog facility</p>
<p>(do not forget to check if /var/lib/spamassassin/ owned by nobody).</p>
<p>Configure <strong>/usr/share/spamassassin/local.cf</strong> with default options below:</p>
<pre class="prettyprint">rewrite_header Subject *****SPAM*****
# report_safe 1
# trusted_networks 212.17.35.
required_score 5.0
use_bayes 1
bayes_auto_learn 1
bayes_ignore_header X-Bogosity
bayes_ignore_header X-Spam-Flag
bayes_ignore_header X-Spam-Status
include /usr/share/spamassassin/
</pre>
<p>Configuration is complete.</p>
<pre><code>
sa-update
systemctl restart postfix spamassassin
</pre>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/how-to-configure-spamassassin/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Rebuild Postfix Mail Server ?</title>
		<link>https://wiki.centos-webpanel.com/how-to-rebuild-postfix-mail-server</link>
		<comments>https://wiki.centos-webpanel.com/how-to-rebuild-postfix-mail-server#comments</comments>
		<pubDate>Tue, 24 Feb 2015 19:16:45 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[E-Mail]]></category>
		<category><![CDATA[amavis]]></category>
		<category><![CDATA[antivirus]]></category>
		<category><![CDATA[clamav]]></category>
		<category><![CDATA[clamd]]></category>
		<category><![CDATA[spamassassin]]></category>
		<category><![CDATA[spamd]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=58</guid>
		<description><![CDATA[Starting from the CWP version 0.9.6+ you have a new awesome Postfix Mail Server Manager (Re-Builder) With a single click you can select additional Mail Server options and ReBuild your mail server according to your needs. Location in the CWP.admin area Left Menu --> Email --> Postfix Manager Options - AntiSpam and AntiVirus Protection (Spamassassin [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><object width="700" height="425"><param name="movie" value="https://www.youtube.com/v/NjMyeZ2fDtU?version=3&amp;showinfo=0&amp;theme=light&amp;fs=1&amp;rel=0&amp;iv_load_policy=3&amp;modestbranding=1"></param><param name="allowScriptAccess" value="always"></param><param name="allowFullScreen" value="true"></param><embed src="https://www.youtube.com/v/NjMyeZ2fDtU?version=3&amp;showinfo=0&amp;theme=light&amp;fs=1&amp;rel=0&amp;iv_load_policy=3&amp;modestbranding=1" type="application/x-shockwave-flash" allowScriptAccess="always" allowfullscreen="true" width="700" height="425"></embed></object></p>
<p>Starting from the CWP version 0.9.6+ you have a new awesome Postfix Mail Server Manager (Re-Builder)<br />
With a single click you can select additional Mail Server options and ReBuild your mail server according to your needs.</p>
<p><strong>Location in the CWP.admin area</strong><br />
Left Menu --> Email --> Postfix Manager</p>
<p><strong>Options</strong><br />
- AntiSpam and AntiVirus Protection (Spamassassin and ClamAV are scanning all your incoming emails, this requires server with min. 1Gb of RAM).<br />
- rDNS check (Drop all emails if no rDNS/PTR)<br />
- Reject Unknown Hostname (Reject unless the hostname has valid DNS record, IGNORE as you could be blocked also)</p>
<p><strong>AntiSpam and AntiVirus</strong><br />
It's possible that ClamAV Antivirus will work with 512MB RAM server but its recommended to have at least 1GB+ RAM.</p>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/how-to-rebuild-postfix-mail-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
