Adam King
2014-Aug-11 11:04 UTC
[CentOS] Use postfix and spamd on CentOS 6 - looking for a shortest guide
whats your database user in spamd.conf? Adam King IT Systems Administrator Skipton Girls High School 01756 707600 www.sghs.org.uk ----- Original Message ----- From: "Alexander Farber" <alexander.farber at gmail.com> To: "CentOS mailing list" <centos at centos.org> Sent: Monday, August 11, 2014 12:38:09 PM Subject: [CentOS] Use postfix and spamd on CentOS 6 - looking for a shortest guide 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 at centos.org http://lists.centos.org/mailman/listinfo/centos
Alexander Farber
2014-Aug-11 11:38 UTC
[CentOS] Use postfix and spamd on CentOS 6 - looking for a shortest guide
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
David Beveridge
2014-Aug-11 11:54 UTC
[CentOS] Use postfix and spamd on CentOS 6 - looking for a shortest guide
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 at gmail.com> 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 at centos.org > http://lists.centos.org/mailman/listinfo/centos >
Alexander Dalloz
2014-Aug-11 16:01 UTC
[CentOS] Use postfix and spamd on CentOS 6 - looking for a shortest guide
Am 2014-08-11 13:38, schrieb Alexander Farber:> 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?[ ... ] Do yourself a favour and use a milter instead of piping each single mail through spamassassin. http://pkgs.org/centos-6/epel-x86_64/spamass-milter-0.3.2-3.el6.x86_64.rpm.html Then add something like smtpd_milters = unix:/var/run/spamass-milter/postfix/sock inet:127.0.0.1:8891 non_smtpd_milters = $smtpd_milters milter_default_action = accept to your Postfix' main.cf and configure the milter flags in /etc/sysconfig/spamass-milter.> Thank you > Alex[ ... ] Alexander
Seemingly Similar Threads
- Using postfix in CentOS 6 to relay mails to First.Last@gmail.com
- haproxy + Apache + virtual hosts -> wrong host is displayed
- postmap: fatal: open database /etc/postfix/sasl_passwd.db: Permission denied
- Bug#353868: logcheck-database: no longer ignores "spamd: checking message ..."
- sieve filter not working