1

I have an Ubuntu 16.04 machine with Postfix 3.1.0 and virtual mailboxes (iredmail).

I'm using postscreen (with a local Bind server), Amavis with ClamAV and SpamAssassin.

The amount of received spam is pretty low. The problem is, that the server seems to forward emails which are actual calssified as spam.

For example I have a mailbox on my server [email protected]. This mailbox has a forwarding to [email protected] (the emails are kept in the mailbox). Spam filtereing works pretty well for the messages delivered to [email protected] on my server. In contrast the mailbox [email protected] gets the messages plus all the spam.

I'm using Amavis with smtpd_proxy_filter, hence emails are only accepted if they are not considered spam, all other emails are rejected.

smtp      inet  n       -       y       -       1       postscreen
smtpd     pass  -       -       y       -       -       smtpd -o smtpd_proxy_filter=127.0.0.1:10024 -o content_filter=

My guess is to append the smptd_porxy_filter to the relay service in /etc/postfix/master.cf

relay      unix  -       -       n       -       -       smtp -o smtpd_proxy_filter=127.0.0.1:10024 -o content_filter=

I didn't find anything usefull about this topic. Can anyone help me with that?

4
  • Can you explain/reword that part: "For example there are no spam emails in the mailbox on my server, but in the mailbox of the forwarding receipient."
    – binarym
    Commented Oct 25, 2019 at 7:59
  • Sure, I updated my post.
    – drlogout
    Commented Oct 25, 2019 at 18:14
  • Is "otherdomain.com" is in @local_domains_maps in Amavis configuration ? I doubt this is the root of the problem since, at this time, To: is supposed to remain the original address, not the alias...
    – binarym
    Commented Oct 25, 2019 at 18:53
  • I have @local_domains_maps = 1; I'm not sure, but seems to be fine: forum.iredmail.org/… (I'm using mysql to store virtual mailbox users)
    – drlogout
    Commented Oct 26, 2019 at 6:53

0

You must log in to answer this question.

Browse other questions tagged .