• Community Support
  • USEnglish
  • BCC all mails from one domain for mail archive not working

I setup BCC for one domain to send copies to a mail archive. Incoming mails where not send to the archive. Outgoing mails works.

My setup:
relayhost <-> mallow -> archive server
Sender based transport map has a rule to send trough a mail relay for this domain
Transport-Maps has a rule for the archive mail address and the archive server as next hop
At BCC-Maps I added two entries. One with BCC-Typ sender and one receiver. Local target ist @MYDOMAIN and BCC-Target is the mail archive address.

In postfix logs I see outgoing mails become the BCC address and where send to the mail archive server. For incoming mails nothing happens.

Also I setup the relay host under the relay hosts to disable spam filter because spam filtering is done by the relay host.

I read something about BCC headers were set with postfix earlier but now its done in rspamd. So it could be the problem that the relay host has spam filter disabled? If this is the problem exists any workaround for this?

As I described it seems to be the settings for disable spam filter at relay host settings. So I solved this by deleting this settings and add an rspamd-settings-map entry:

priority = 10;
rcpt = "/.*/";
from = "/.*/";
apply "default" {
MAILCOW_WHITE = -9999.0;
}
symbols [
"MAILCOW_WHITE"
]

Is there an better way?

Have something to say?

Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

No one is typing