The document http://wiki.centos.org/HowTos says "This page contains some longer HowTos for achieving different tasks on CentOS systems". Unfortunately, the document consists of a single page, and does not seem to contain any links to the HowTos it refers to. I'm looking in particular for the HowTo on E-Mail.
(I'm looking for advice on the best way to filter out spam email already marked as such by SpamAssassin, called by amavis. I assume there must be a standard way of doing this, but have been unable to find it in the documentation I have looked at, eg <http://wiki.centos.org/HowTos/Amavisd.)
On 12/30/2013 08:42 AM, Timothy Murphy wrote:
The document http://wiki.centos.org/HowTos says "This page contains some longer HowTos for achieving different tasks on CentOS systems". Unfortunately, the document consists of a single page, and does not seem to contain any links to the HowTos it refers to. I'm looking in particular for the HowTo on E-Mail.
(I'm looking for advice on the best way to filter out spam email already marked as such by SpamAssassin, called by amavis. I assume there must be a standard way of doing this, but have been unable to find it in the documentation I have looked at, eg <http://wiki.centos.org/HowTos/Amavisd.)
I have a system that I have built, but not put in production that has a full:
Centos/Postfix/MySQL(virtualdomains)/Postfixadmin/spamassasin/amavisd/roundcube
Why not in production? No roundtoit?
But it looks GREAT. In test. But the thing I learned along the way is if you want to dump spam, it is in the config files as to what levels you set the various processing at, and there you find it on the typical product's pages, not the Centos HowTo as there are too many choices. Perhaps I can find my notes.
I really need to fix my DNSSEC problems so I can sign my zone so I can do my upgrades....
Oh, my DNSSEC problems are tied into my IPv6 support and my firewall/router. That is why I am looking for 4-port arm boxes.
On 12/30/2013 09:50 AM, Robert Moskowitz wrote:
On 12/30/2013 08:42 AM, Timothy Murphy wrote:
The document http://wiki.centos.org/HowTos says "This page contains some longer HowTos for achieving different tasks on CentOS systems". Unfortunately, the document consists of a single page, and does not seem to contain any links to the HowTos it refers to. I'm looking in particular for the HowTo on E-Mail.
(I'm looking for advice on the best way to filter out spam email already marked as such by SpamAssassin, called by amavis. I assume there must be a standard way of doing this, but have been unable to find it in the documentation I have looked at, eg <http://wiki.centos.org/HowTos/Amavisd.)
I have a system that I have built, but not put in production that has a full:
Centos/Postfix/MySQL(virtualdomains)/Postfixadmin/spamassasin/amavisd/roundcube
Oh, I left out that Dovecot is part of the mix. And I found my notes on amavisd:
You need to edit /etc/amavisd/amavisd.conf
$mydomain = 'example.com'; # Edit: a convenient default for other settings $helpers_home = "$MYHOME/var"; # Uncomment: working directory for SpamAssassin, -S $myhostname = 'mail.example.com'; # Uncomment & Edit: must be a fully-qualified domain name!
$log_level = 1; # set the log level to one $sa_tag_level_deflt = -999; # i want to see the headers so change to -99 $sa_tag2_level_deflt = 5.0; # start with 5 $sa_kill_level_deflt = 9; # change to 9 $sa_dsn_cutoff_level = 9; # change to 9 $sa_quarantine_cutoff_level = 50; # remove the starting # and change to 50 $notify_method = 'smtp:[127.0.0.1]:10025'; # uncomment the line $forward_method = 'smtp:[127.0.0.1]:10025'; # uncomment the line $final_banned_destiny = D_BOUNCE; # change to D_DISCARD $final_spam_destiny = D_PASS; # http://www200.pair.com/mecham/spam/amavisd-settings.html
Why not in production? No roundtoit?
But it looks GREAT. In test. But the thing I learned along the way is if you want to dump spam, it is in the config files as to what levels you set the various processing at, and there you find it on the typical product's pages, not the Centos HowTo as there are too many choices. Perhaps I can find my notes.
I really need to fix my DNSSEC problems so I can sign my zone so I can do my upgrades....
Oh, my DNSSEC problems are tied into my IPv6 support and my firewall/router. That is why I am looking for 4-port arm boxes.
Am 30.12.2013 14:42, schrieb Timothy Murphy:
The document http://wiki.centos.org/HowTos says "This page contains some longer HowTos for achieving different tasks on CentOS systems". Unfortunately, the document consists of a single page, and does not seem to contain any links to the HowTos it refers to. I'm looking in particular for the HowTo on E-Mail.
Thanks for pointing to this interesting site. FWIW: The links to the HowTos are working for me. Klaus
Klaus-Peter Schrage wrote:
The document http://wiki.centos.org/HowTos says "This page contains some longer HowTos for achieving different tasks on CentOS systems". Unfortunately, the document consists of a single page, and does not seem to contain any links to the HowTos it refers to. I'm looking in particular for the HowTo on E-Mail.
Thanks for pointing to this interesting site. FWIW: The links to the HowTos are working for me.
OK, I think I misunderstood - I thought the meaning was that there was a specific E-Mail wiki.
On 12/30/2013 11:51 AM, Timothy Murphy wrote:
Klaus-Peter Schrage wrote:
The document http://wiki.centos.org/HowTos says "This page contains some longer HowTos for achieving different tasks on CentOS systems". Unfortunately, the document consists of a single page, and does not seem to contain any links to the HowTos it refers to. I'm looking in particular for the HowTo on E-Mail.
Thanks for pointing to this interesting site. FWIW: The links to the HowTos are working for me.
OK, I think I misunderstood - I thought the meaning was that there was a specific E-Mail wiki.
Are you looking to build a mail server? I can give you the links I used, but I would recommend doing a mail server on Centos, not Fedora. Unless you are experimenting..
Robert Moskowitz wrote:
Are you looking to build a mail server? I can give you the links I used, but I would recommend doing a mail server on Centos, not Fedora. Unless you are experimenting..
No, I'm not trying to build a proper mail-server. I collect email on my server from various (remote) mail-servers. This is then processed by postfix/amavis/clamav/spamassassin . Spam is marked by addition of [SPAM] or ***Spam*** to the Subject header, as well as addition of several other headers.
As I understand it, the email is then passed through dovecot(?), to ~/Maildir/cur/ .
This must be a standard setup. So how normally is spam dealt with, at this stage? You seemed to be suggesting that it could be dealt with earlier, by amavis? Or it could be left to the client MUA, KMail in my case? What is the norm?
On 12/30/2013 03:17 PM, Timothy Murphy wrote:
Robert Moskowitz wrote:
Are you looking to build a mail server? I can give you the links I used, but I would recommend doing a mail server on Centos, not Fedora. Unless you are experimenting..
No, I'm not trying to build a proper mail-server. I collect email on my server from various (remote) mail-servers. This is then processed by postfix/amavis/clamav/spamassassin . Spam is marked by addition of [SPAM] or ***Spam*** to the Subject header, as well as addition of several other headers.
As I understand it, the email is then passed through dovecot(?), to ~/Maildir/cur/ .
This must be a standard setup. So how normally is spam dealt with, at this stage? You seemed to be suggesting that it could be dealt with earlier, by amavis? Or it could be left to the client MUA, KMail in my case? What is the norm?
I strongly doubt there is a norm. :)
But the howtos on amavis (which integrates clamav), show how it can do all sorts of things with spam. What helped me a lot was:
http://campworld.net/thewiki/pmwiki.php/LinuxServersCentOS/Cent6VirtMailServ...
But I used the http://wiki.centos.org/HowTos/Amavisd to do a 'better' job at configuring amavisd. but it has been over 6 months since I last looked at this.
What I do, is tag the spam and let my emailer (thunderbird) deal with it. The problem with dropping spam, is what if it is not? Being able to do a search on Junk and finding something that I really needed, has made me put up with > 500 spams per day.
On Monday, December 30, 2013 03:38:46 PM Robert Moskowitz wrote:
I collect email on my server from various (remote) mail-servers. This is then processed by postfix/amavis/clamav/spamassassin . Spam is marked by addition of [SPAM] or ***Spam*** to the Subject header, as well as addition of several other headers.
As I understand it, the email is then passed through dovecot(?), to ~/Maildir/cur/ .
This must be a standard setup. So how normally is spam dealt with, at this stage? What is the norm?
I strongly doubt there is a norm. :)
But the howtos on amavis (which integrates clamav), show how it can do all sorts of things with spam. What helped me a lot was:
http://campworld.net/thewiki/pmwiki.php/LinuxServersCentOS/Cent6VirtMailServ er
Thank you for your response. I looked at the above document, but as far as I can see it said nothing to answer my query, namely, how is spam email marked as spam by the addition of the header X-Spam-Flag: YES normally filtered into a Spam folder, preferably by dovecot, but possibly earlier by amavis or postfix?
What I do, is tag the spam and let my emailer (thunderbird) deal with it. The problem with dropping spam, is what if it is not? Being able to do a search on Junk and finding something that I really needed, has made me put up with > 500 spams per day.
I guess if the spam is filtered to a Spam folder it could be looked at there, if necessary. I could certainly filter out the spam in KMail on my laptop, but it seems preferable to me to do this on my home server, if possible.
I'm surprised you suggest there may be no norm. Surely this is something anyone running dovecot (or similar) must need to do? I'm really puzzled by the fact that none of the CentOS documentation I have looked at deals with what seems to me a rather important step in processing email.
On Tue, Dec 31, 2013 at 01:00:40AM +0100, Timothy Murphy wrote:
On Monday, December 30, 2013 03:38:46 PM Robert Moskowitz wrote:
I collect email on my server from various (remote) mail-servers. This is then processed by postfix/amavis/clamav/spamassassin . Spam is marked by addition of [SPAM] or ***Spam*** to the Subject header, as well as addition of several other headers.
As I understand it, the email is then passed through dovecot(?), to ~/Maildir/cur/ .
This must be a standard setup. So how normally is spam dealt with, at this stage? What is the norm?
I strongly doubt there is a norm. :)
But the howtos on amavis (which integrates clamav), show how it can do all sorts of things with spam. What helped me a lot was:
http://campworld.net/thewiki/pmwiki.php/LinuxServersCentOS/Cent6VirtMailServ er
Thank you for your response. I looked at the above document, but as far as I can see it said nothing to answer my query, namely, how is spam email marked as spam by the addition of the header X-Spam-Flag: YES normally filtered into a Spam folder, preferably by dovecot, but possibly earlier by amavis or postfix?
Probably uses procmail for that. In procmail I use headers inserted by spambayes like this:
########### Feed it thru SPAMBAYES first ################ :0 fw:hamlock | /usr/bin/sb_filter.py -f -d $HOME/.hammiedb
# then filter out spam and unsure stuff.... :0 * ^X-Spambayes-Classification: spam $HOME/Mail/newspam
:0 * ^X-Spambayes-Classification: unsure $HOME/Mail/unsure
which filters based on what the X-Spambayes-Classification: header says.
Joe Zeff wrote:
I'm really puzzled by the fact that none of the CentOS documentation I have looked at deals with what seems to me a rather important step in processing email.
Why should it? There's nothing about the process that's specific to CentOS.
It is a part of the postfix/amavis/clamav/spamassassin amalgam, which as far as I can see is now considered the standard CentOS setup, and which is well documented in the CentOS wiki.
It just seems curious that what seems to me an important part of the setup is not described in the same way. As I see it, if you tag spam then you must want to do something with it.
On 12/30/2013 07:43 PM, Timothy Murphy wrote:
Joe Zeff wrote:
I'm really puzzled by the fact that none of the CentOS documentation I have looked at deals with what seems to me a rather important step in processing email.
Why should it? There's nothing about the process that's specific to CentOS.
It is a part of the postfix/amavis/clamav/spamassassin amalgam, which as far as I can see is now considered the standard CentOS setup, and which is well documented in the CentOS wiki.
It just seems curious that what seems to me an important part of the setup is not described in the same way. As I see it, if you tag spam then you must want to do something with it.
Again, I did give you the variables to play with:
You need to edit /etc/amavisd/amavisd.conf
$mydomain = 'example.com'; # Edit: a convenient default for other settings $helpers_home = "$MYHOME/var"; # Uncomment: working directory for SpamAssassin, -S $myhostname = 'mail.example.com'; # Uncomment & Edit: must be a fully-qualified domain name!
$log_level = 1; # set the log level to one $sa_tag_level_deflt = -999; # i want to see the headers so change to -99 $sa_tag2_level_deflt = 5.0; # start with 5 $sa_kill_level_deflt = 9; # change to 9 $sa_dsn_cutoff_level = 9; # change to 9 $sa_quarantine_cutoff_level = 50; # remove the starting # and change to 50 $notify_method = 'smtp:[127.0.0.1]:10025'; # uncomment the line $forward_method = 'smtp:[127.0.0.1]:10025'; # uncomment the line $final_banned_destiny = D_BOUNCE; # change to D_DISCARD $final_spam_destiny = D_PASS; # http://www200.pair.com/mecham/spam/amavisd-settings.html
Play with these. First read the docs about what they do and set them to take the action you wish.
'Everyone' sets these to their own tastes.