Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: Gaetan on May 08, 2014, 12:47:06 PM

Title: Transfer all spam emails to one user account only
Post by: Gaetan on May 08, 2014, 12:47:06 PM
Hi,
Is there a way to transfer all spam emails to one user account only ?
Regards
GL
Title: Re: Transfer all spam emails to one user account only
Post by: Stefano on May 08, 2014, 03:22:45 PM
a procmail rule that read the X-spam-status: Yes header
Title: Re: Transfer all spam emails to one user account only
Post by: Gaetan on May 08, 2014, 03:29:53 PM
Sorry, how do you put this into place please ?
Thanks
GL
Title: Re: Transfer all spam emails to one user account only
Post by: CharlieBrady on May 08, 2014, 10:53:17 PM
Is there a way to transfer all spam emails to one user account only ?

You would need to create a custom template for the .qmail-junkmail file in each users home directory. Someone here can hopefully explain how to do that in detail.

I think this is a better approach than to use procmail.
Title: Re: Transfer all spam emails to one user account only
Post by: filippoc on May 09, 2014, 04:11:20 PM
Sorry, how do you put this into place please ?

I've instructions in Italian, I'm copying the commands required:

cd /home/e-smith/files/users/filippo
cp -p .qmail-junkmail .qmail-spam
echo "&filippo-spam" > /etc/e-smith/templates-user-custom/.qmail-junkmail
signal-event email-update
Title: Re: Transfer all spam emails to one user account only
Post by: CharlieBrady on May 09, 2014, 05:08:25 PM
Thanks Filippo!