Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authenticated users' emails classified as spam #2622

Closed
2 of 12 tasks
codesmaker opened this issue Nov 7, 2018 · 12 comments
Closed
2 of 12 tasks

Authenticated users' emails classified as spam #2622

codesmaker opened this issue Nov 7, 2018 · 12 comments

Comments

@codesmaker
Copy link

Classification (Please choose one option):

  • Crash/Hang/Data loss
  • WebUI/Usability
  • Serious bug
  • Ordinary bug
  • Feature
  • Enhancement

Reproducibility (Please choose one option):

  • Always
  • Sometimes
  • Rarely
  • Unable
  • I didn’t try
  • Not applicable

Rspamd version:

version 1.8.1

Operation system, CPU:

Debian 9

Description (Please provide a descriptive summary of the issue):

Some of the authenticated users' emails classified as spams.

Compile errors (if any):

Relevant logs (see details here):

Expected results:

local and authenticated users should not be classified as spams

Actual results:

Some authenticated users are classified as spams

Debugging information (see details here):

Configuration (e.g. rspamadm configdump module):

Additional information:

Hi,

As mentioned above, some of my authenticated users are being classified as spams as you can see below:

2018-11-07 11:02:13 #30678(rspamd_proxy) <363e69>; proxy; rspamd_task_write_log: id: <bb349cce-9968-688e-ed4a-7eee0c6817c0@example.com>, qid: <37D2F5A00>, ip: x.x.x.x, from: <john@example.com>, (default: F (add header): [13.66/15.00] [HFILTER_HELO_BADIP(4.50){192.168.1.26;1;},HFILTER_HOSTNAME_5(3.00){x.x-x-x.isp.orange.be;},IP_SCORE(2.27){ip: (5.91), ipnet: x.x.0.0/14(2.96), asn: 5432(2.47), country: BE(0.01);},DMARC_POLICY_REJECT(2.00){example.com : No valid SPF, No valid DKIM;reject;},RBL_SPAMHAUS_PBL(2.00){81.56.65.87.zen.spamhaus.org : 127.0.0.11;},MIME_GOOD(-0.10){text/plain;},MX_GOOD(-0.01){cached: mail.example.com;},ARC_NA(0.00){},ASN(0.00){asn:5432, ipnet:x.x.0.0/14, country:BE;},FROM_EQ_ENVFROM(0.00){},FROM_HAS_DN(0.00){},GREYLIST(0.00){pass;body;},MID_RHS_MATCH_FROM(0.00){},RCPT_COUNT_ONE(0.00){1;},RCVD_COUNT_ZERO(0.00){0;},RCVD_TLS_ALL(0.00){},R_DKIM_NA(0.00){},R_SPF_PERMFAIL(0.00){-all;},TO_DN_ALL(0.00){},TO_DOM_EQ_FROM_DOM(0.00){},TO_MATCH_ENVRCPT_ALL(0.00){}]), len: 447, time: 128.002ms real, 5.978ms virtual, dns req: 21, digest: <d67360b8433316135996d2ad208abfac>, rcpts: <peter@example.com>, mime_rcpts: <peter@example.com>

What is also strange is that my domain "example.com" is rejected because it has no valid SPF no DKIM which is not the case. Could you please help?

@codesmaker
Copy link
Author

Another thing is that I'm getting this:
2018-11-07 13:19:38 #1227(rspamd_proxy) <352b3c>; dkim_signing; lua_dkim_tools.lua:104: ignoring unauthenticated mail

This user is authenticated. Why rspamd sees it as unauthenticated?

@codesmaker
Copy link
Author

Anyone?

@moisseev
Copy link
Member

moisseev commented Nov 7, 2018

Make sure your MTA sends {auth_authen} macro to rspamd proxy milter.

@codesmaker
Copy link
Author

Thanks for the reply. This is what I have in Postfix:
milter_mail_macros="i {mail_addr} {client_addr} {client_name} {auth_authen}"

@moisseev
Copy link
Member

moisseev commented Nov 7, 2018

The quotes around parameter value look suspicious. Try to remove them.
Actually, you don't need to configure milter_mail_macros parameter since its default value is just fine.

@codesmaker
Copy link
Author

Indeed. The problem was the quotes! Thanks a lot @moisseev !

@yoshimo
Copy link
Contributor

yoshimo commented Nov 7, 2018

Expected results:
local and authenticated users should not be classified as spams

In modern times where a lot of spam is sent by hacked accounts of mailproviders with good reputation and not by bots, you should filter outgoing mails for spam too. Your users might have been hacked.

@codesmaker
Copy link
Author

Thanks @yoshimo ! You are probably right and I can also see the need. I've quickly checked the documentation https://rspamd.com/doc/tutorials/scanning_outbound.html which says that it is done through Rmilter but it also says that it is deprecated since Rspamd 1.6? The version I have is 1.8.1

@moisseev
Copy link
Member

moisseev commented Nov 8, 2018

You don't need rmilter anymore. Use rspamd proxy instead.

@codesmaker
Copy link
Author

I'm already using the rspamd proxy. Do I need special configs to filter outbound emails?

@moisseev
Copy link
Member

moisseev commented Nov 8, 2018

No, just follow Using Rspamd with Postfix MTA.

@codesmaker
Copy link
Author

Sorry for the late reply. My Rspamd is already configured like that.

Thanks a lot guys for all the help. Great support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants