[SOLVED] Internal E-Mails marked as Spam

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
diginetde
Posts: 16
Joined: Sat Sep 13, 2014 1:52 am

[SOLVED] Internal E-Mails marked as Spam

Post by diginetde »

Hi,
we have the problem that internal sent mails often are scored as Spam. Training doesn't help.
Version of Zimbra is 6.0.10_GA_2692
Here are two headers:
Received: from zimbra.diginet.de (LHLO zimbra.diginet.de) (10.210.20.120) by

zimbra.diginet.de with LMTP; Fri, 25 Feb 2011 16:41:10 +0100 (CET)

Received: from localhost (localhost [127.0.0.1])

by zimbra.diginet.de (Postfix) with ESMTP id 3CCAD63413E

for ; Fri, 25 Feb 2011 16:41:10 +0100 (CET)

X-Virus-Scanned: amavisd-new at diginet.de

X-Spam-Flag: YES

X-Spam-Score: 6.021

X-Spam-Level: ******

X-Spam-Status: Yes, score=6.021 tagged_above=-10 required=5.6

tests=[BAYES_00=-1.9, HTML_IMAGE_ONLY_16=1.092, HTML_MESSAGE=0.001,

RCVD_IN_PBL=3.335, RCVD_IN_RP_RNBL=1.31, RDNS_NONE=0.793,

SHORT_HELO_AND_INLINE_IMAGE=1.39] autolearn=no

Received: from zimbra.diginet.de ([127.0.0.1])

by localhost (zimbra.diginet.de [127.0.0.1]) (amavisd-new, port 10024)

with ESMTP id IMK+uclRw3c6; Fri, 25 Feb 2011 16:41:09 +0100 (CET)

Received: from zimbra.diginet.de (zimbra.diginet.de [10.210.20.120])

by zimbra.diginet.de (Postfix) with ESMTP id A63B863413D;

Fri, 25 Feb 2011 16:41:09 +0100 (CET)
Received: from zimbra.diginet.de (LHLO zimbra.diginet.de) (10.210.20.120) by

zimbra.diginet.de with LMTP; Fri, 25 Feb 2011 16:47:45 +0100 (CET)

Received: from localhost (localhost [127.0.0.1])

by zimbra.diginet.de (Postfix) with ESMTP id 9939F63413F

for ; Fri, 25 Feb 2011 16:47:45 +0100 (CET)

X-Virus-Scanned: amavisd-new at diginet.de

X-Spam-Flag: YES

X-Spam-Score: 6.021

X-Spam-Level: ******

X-Spam-Status: Yes, score=6.021 tagged_above=-10 required=5.6

tests=[BAYES_00=-1.9, HTML_IMAGE_ONLY_16=1.092, HTML_MESSAGE=0.001,

RCVD_IN_PBL=3.335, RCVD_IN_RP_RNBL=1.31, RDNS_NONE=0.793,

SHORT_HELO_AND_INLINE_IMAGE=1.39] autolearn=no

Received: from zimbra.diginet.de ([127.0.0.1])

by localhost (zimbra.diginet.de [127.0.0.1]) (amavisd-new, port 10024)

with ESMTP id GE-LVs1KWoqg; Fri, 25 Feb 2011 16:47:45 +0100 (CET)

Received: from zimbra.diginet.de (zimbra.diginet.de [10.210.20.120])

by zimbra.diginet.de (Postfix) with ESMTP id 3F9CE63413E;

Fri, 25 Feb 2011 16:47:45 +0100 (CET)

Date: Fri, 25 Feb 2011 16:47:45 +0100 (CET)
What can we do that those mails aren't scored as Spam anymore?
Thanks for help
uxbod
Ambassador
Ambassador
Posts: 7811
Joined: Fri Sep 12, 2014 10:21 pm

[SOLVED] Internal E-Mails marked as Spam

Post by uxbod »

Welcome to the forums :)
What do you have configured for the followingsu - zimbra

zmprov gs `zmhostname` zimbraMtaMyNetworks
diginetde
Posts: 16
Joined: Sat Sep 13, 2014 1:52 am

[SOLVED] Internal E-Mails marked as Spam

Post by diginetde »

Thank you uxbod.
[quote user="uxbod"]Welcome to the forums :)
What do you have configured for the followingsu - zimbra

zmprov gs `zmhostname` zimbraMtaMyNetworks[/QUOTE]
zimbra@zimbra:~$ zmprov gs `zmhostname` zimbraMtaMyNetworks

# name zimbra.diginet.de

zimbraMtaMyNetworks: 127.0.0.0/8 10.210.20.0/24
It seems right for me.
PS: Funny GIF
ewilen
Elite member
Elite member
Posts: 1429
Joined: Fri Sep 12, 2014 11:34 pm

[SOLVED] Internal E-Mails marked as Spam

Post by ewilen »

Although it doesn't look like it from your headers, are you absolutely sure that you aren't running into Bug 44384 – Bypass SA for emails sent from internal ZWC users (or provide a way to score them) ?
I.e., what setting do you have for Global Settings -> MTA -> Add X-Originating-IP ?
mickier
Advanced member
Advanced member
Posts: 84
Joined: Fri Sep 12, 2014 11:15 pm

[SOLVED] Internal E-Mails marked as Spam

Post by mickier »

If you haven't resolved this issue yet, here's a suggestion;
I suggest that you add your public ip address x.x.x.x/32 to your zimbraMtaMyNetworks. (/32 adds ONLY your own public address -- not the whole public ip subnet [which would be very BAAADDDD] -- to the MtaMyNetworks) ie 52.33.234.22/32.
This setting tells zimbra which networks are trusted. Zimbra then knows it can relay messages from these addresses. If a user logs into the zimbra web portal, (especially from outside your network) their messages will appear to have come from the public ip address of your server. With your current settings, only messages from localhost and from your local network are allowed to relay, so the messages sent from the web portal are being relay-denied.
(I'm sure someone else can give you a more correct answer...but that's the way I understand it.)
ewilen
Elite member
Elite member
Posts: 1429
Joined: Fri Sep 12, 2014 11:34 pm

[SOLVED] Internal E-Mails marked as Spam

Post by ewilen »

It seems from the original post that mail is being relayed properly, but it's getting scored as spam.
diginetde
Posts: 16
Joined: Sat Sep 13, 2014 1:52 am

[SOLVED] Internal E-Mails marked as Spam

Post by diginetde »

[quote user="ewilen"]Although it doesn't look like it from your headers, are you absolutely sure that you aren't running into Bug 44384 – Bypass SA for emails sent from internal ZWC users (or provide a way to score them) ?
I.e., what setting do you have for Global Settings -> MTA -> Add X-Originating-IP ?[/QUOTE]
Using these Settings
1) Disable "Add X-Originating-IP to messages" option (in the Admin UI)

2) Remove X-Originating-IP from the originating_ip_headers line in /opt/zimbra/conf/spamassassin/10_default_prfs.cf
was helpfull. Now it works properly.
Thank you!
But it seems that we got some more Spam. We'll try some changes in the setttings. If we got some new information we will post.
ewilen
Elite member
Elite member
Posts: 1429
Joined: Fri Sep 12, 2014 11:34 pm

[SOLVED] Internal E-Mails marked as Spam

Post by ewilen »

I would just do one of those two. Option (1) is less likely to increase your spam, although it removes a bit of useful diagnostic information.
Post Reply