Koozali.org: home of the SME Server

Transfer all spam emails to one user account only

Offline Gaetan

  • ****
  • 104
  • +0/-0
Transfer all spam emails to one user account only
« 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

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Transfer all spam emails to one user account only
« Reply #1 on: May 08, 2014, 03:22:45 PM »
a procmail rule that read the X-spam-status: Yes header

Offline Gaetan

  • ****
  • 104
  • +0/-0
Re: Transfer all spam emails to one user account only
« Reply #2 on: May 08, 2014, 03:29:53 PM »
Sorry, how do you put this into place please ?
Thanks
GL

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Transfer all spam emails to one user account only
« Reply #3 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.

Offline filippoc

  • *
  • 114
  • +0/-0
Re: Transfer all spam emails to one user account only
« Reply #4 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

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Transfer all spam emails to one user account only
« Reply #5 on: May 09, 2014, 05:08:25 PM »
Thanks Filippo!