<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>DIYMacServer &#187; Tag: filter - Recent Topics</title>
<link>http://diymacserver.com/forum/</link>
<description>DIYMacServer &#187; Tag: filter - Recent Topics</description>
<language>en</language>
<pubDate>Wed, 08 Feb 2012 06:38:16 +0000</pubDate>

<item>
<title>Priz on "/usr/local/bin/maildrop: Cannot have world/group permissions"</title>
<link>http://diymacserver.com/forum/topic/usrlocalbinmaildrop-cannot-have-worldgroup-permissions#post-326</link>
<pubDate>Mon, 26 Feb 2007 00:04:10 +0000</pubDate>
<dc:creator>Priz</dc:creator>
<guid isPermaLink="false">326@http://diymacserver.com/forum/</guid>
<description>&#60;p&#62;Hello,&#60;br /&#62;
I had an error when the postfix server received an email :&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;&#60;code&#62;postfix/pipe[1692]: 8699098029C:to=&#38;lt;xxxxxxx@xxxxxxxx.net&#38;gt;,relay=maildrop, delay=3100, delays=3100/0.02/0/0.04, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/maildrop: Cannot have world/group permissions on the filter file - for your own good. )&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Answer from Richard :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;The rights should be:
-rw-------  vmail  wheel  /etc/maildroprc&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and I complete :&#60;/p&#62;
&#60;p&#62;&#60;code&#62;Don&#38;#39;t forget to restart services authdaemond, maildrop and postfix&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Thank's Richard&#60;/p&#62;&#60;/blockquote&#62;</description>
</item>
<item>
<title>Richard on "Regexp instead of PCRE in postfix access?"</title>
<link>http://diymacserver.com/forum/topic/regexp-instead-of-pcre-in-postfix-access#post-281</link>
<pubDate>Sat, 27 Jan 2007 09:05:20 +0000</pubDate>
<dc:creator>Richard</dc:creator>
<guid isPermaLink="false">281@http://diymacserver.com/forum/</guid>
<description>The thing is that you are mixing up two seperate functions into one.&#60;br /&#62;
&#60;br /&#62;
The listing of the PCRE filter &#60;p&#62;&#60;code&#62;/./&#38;nbsp; &#38;nbsp; &#38;nbsp;FILTER dspam&#38;#58;dspam&#60;/code&#62;&#60;/p&#62; in the option &#38;quot;smtpd_recipient_restrictions&#38;quot;. Is only there to filter incoming mail only. If you leave out this option all outgoing mail will be filtered as well which is not something you would want.&#60;br /&#62;
&#60;br /&#62;
The retraining transports are there for another reason, you want to feed dspam with incorrect identified emails and you don't want it delivered to a users mailbox. Therefore you define a separate transport.&#60;br /&#62;
&#60;br /&#62;
In main.cf you add the following lines to do that&#60;br /&#62;
&#60;p&#62;&#60;code&#62;recipient_delimiter = - &#60;/code&#62;&#60;/p&#62; (to separate the username from the -spam in the mail address)&#60;br /&#62;
&#60;br /&#62;
and &#60;br /&#62;
&#60;p&#62;&#60;code&#62;transport_maps = hash&#38;#58;/etc/postfix/transport&#60;br /&#62;
local_recipient_maps = proxy&#38;#58;unix&#38;#58;passwd.byname $alias_maps $transport_maps &#60;/code&#62;&#60;/p&#62;&#60;br /&#62;
to define the transports:&#60;br /&#62;
&#60;br /&#62;
and then you ceate a file called transport and add:&#60;br /&#62;
&#60;p&#62;&#60;code&#62;&#60;a href=&#34;mailto:spam@mydomain.tld&#34;&#62;spam@mydomain.tld&#60;/a&#62;&#38;nbsp; &#38;nbsp; dspam-retrain&#38;#58;spam&#60;br /&#62;
&#60;a href=&#34;mailto:ham@mydomain.tld&#34;&#62;ham@mydomain.tld&#60;/a&#62;&#38;nbsp; &#38;nbsp; &#38;nbsp;dspam-retrain&#38;#58;innocent &#60;br /&#62;
&#60;a href=&#34;mailto:notspam@mydomain.tld&#34;&#62;notspam@mydomain.tld&#60;/a&#62;&#38;nbsp; &#38;nbsp; &#38;nbsp;dspam-retrain&#38;#58;innocent &#60;/code&#62;&#60;/p&#62;&#60;br /&#62;
&#60;br /&#62;
do a &#60;p&#62;&#60;code&#62;sudo postmap transport&#60;/code&#62;&#60;/p&#62; to convert it.&#60;br /&#62;
&#60;br /&#62;
and add&#60;br /&#62;
&#60;p&#62;&#60;code&#62;dspam-retrain&#38;nbsp; &#38;nbsp;unix&#38;nbsp; &#38;nbsp; -&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp;n&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp;n&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp;-&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp;10&#38;nbsp; &#38;nbsp; &#38;nbsp; pipe&#60;br /&#62;
&#38;nbsp; flags=Ru user=dspam argv=/usr/local/bin/dspam-retrain $nexthop $sender $recipient &#60;/code&#62;&#60;/p&#62;&#60;br /&#62;
as a transport in our master.cf for retraining purposes !&#60;br /&#62;
&#60;br /&#62;
The retraining shell script you can download from &#60;a href=&#34;http://switch.richard5.net/serverinstall/dspam-retrain&#34;&#62;here.&#60;/a&#62;&#60;br /&#62;
&#60;br /&#62;
Hope this helps !</description>
</item>

</channel>
</rss>

