Re: Use postfix and spamd on CentOS 6 - looking for a shortest guide

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Ha what a co-incidence, just did this an hour ago
I roughly followed this
http://www.rosehosting.com/blog/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps/

my master.cf looks like this

spamassassin unix -     n       n       -       -       pipe
  user=nobody argv=/usr/bin/spamc -f -e
  /usr/sbin/sendmail -oi -f ${sender} ${recipient}

I also have these

policy_spf  unix  -       n       n       -       9       spawn
  user=nobody argv=/usr/bin/perl /etc/postfix/policy_spf_d.pl
policy_grey  unix  -       n       n       -       9       spawn
  user=nobody argv=/usr/bin/perl /etc/postfix/policy_greylist_d.pl


In my case I only want to filter through spamassassin is spf doesn't pass
so I hacked the policy_spf_d

#  else                       { return "DUNNO"; }
  else                       { return "FILTER spamassassin:scanner"; }


Just watch out, if you filter all the mail using
content_filter=spamassassin
you will create a mail loop unless you use a content filter bypass on mail
coming back from spamassassin.

dave.



On Mon, Aug 11, 2014 at 9:38 PM, Alexander Farber <
alexander.farber@xxxxxxxxx> wrote:

> Hello fellow CentOS-users,
>
> on the net there are lots of Spamassassin related HOWTOs - describing how
> to create a shell script for Postfix and how to install Spamassassin and
> start its spamd daemon - step by step. Additionally antivirus setups are
> described...
>
> But I have a strong feeling, that this is unneeded on CentOS 6 - because
> there are already preconfigured stock packages for postfix and
> spamassassin.
>
> So I have installed the both packages and I have configured postfix (it
> works fine).
>
> Also I have started the spamd (and can see it in "ps uawx") with:
>
>     # chkconfig spamassassin on
>     # service spamassassin start
>
> So I'm just missing the connection between postfix and spamd.
>
> Could anybody using these 2 programs on CentOS 6 please share it with me?
>
> Should I add something (involving spamc?) into /etc/postfix/master.cf?
>
> Thank you
> Alex
>
> P.S. Below is my "postconf -n". I accept mails (here I'd like to filter
> spam) for 6 virtual domains and then forward them to different GMail
> accounts:
>
> alias_database = hash:/etc/aliases
>
> alias_maps = hash:/etc/aliases
>
> command_directory = /usr/sbin
>
> config_directory = /etc/postfix
>
> daemon_directory = /usr/libexec/postfix
>
> data_directory = /var/lib/postfix
>
> debug_peer_level = 2
>
> header_checks = pcre:/etc/postfix/header_checks
>
> html_directory = no
>
> inet_interfaces = all
>
> inet_protocols = ipv4
>
> mail_owner = postfix
>
> mailq_path = /usr/bin/mailq.postfix
>
> manpage_directory = /usr/share/man
>
> mydestination = $myhostname, localhost.$mydomain, localhost
>
> myhostname = www.afarber.de
>
> newaliases_path = /usr/bin/newaliases.postfix
>
> queue_directory = /var/spool/postfix
>
> readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
>
> sample_directory = /usr/share/doc/postfix-2.6.6/samples
>
> sendmail_path = /usr/sbin/sendmail.postfix
>
> setgid_group = postdrop
>
> smtp_destination_concurrency_limit = 2
>
> smtp_destination_rate_delay = 40s
>
> smtp_generic_maps = hash:/etc/postfix/generic
>
> unknown_local_recipient_reject_code = 550
>
> virtual_alias_domains = videoskat.de balkan-preferans.de simplex.ru
> larissa-farber.de bukvy.de slova.de
>
> virtual_alias_maps = hash:/etc/postfix/virtual
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux