1

Topic: An accout where spam can be forwarded

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: RH7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx): apache
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi,
I have an iredmail-pro server which manages some domains with local acconts and acts as spam gateway for one domain (domain.com)

Because users from domain.com have no local storage I'm not able to learn spam from their maildirs.

Is it possible to create a dedicated account, in one of a local domains, that users can forward spammy mails that had gone through my server, and than use it to learn eg. spamassasin that these are spam messages.

I guess i should somehow strip forwad headers or send mails as attachments

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: An accout where spam can be forwarded

With Amavisd setting like below, Amavisd will save a copy of detected spam in SQL (quarantined):

$final_spam_destiny = D_DISCARD;

# Quarantine SPAM into SQL server.
$spam_quarantine_to = 'spam-quarantine';
$spam_quarantine_method = 'sql:';

I suggest you try it on a testing machine first.

3

Re: An accout where spam can be forwarded

Yes I have it set but then tha admin has to mark a legitimate email manually and whitelist.
My idea was to let users to forward legitimate message and than run corn job to learn spamassasin

4

Re: An accout where spam can be forwarded

Try either one:

- https://wiki2.dovecot.org/Plugins/Antispam
- https://wiki2.dovecot.org/Pigeonhole/Si … /IMAPSieve