Docker-mailserver: Exclude local-originating mails from spam filtering

Created on 17 Mar 2018  路  4Comments  路  Source: tomav/docker-mailserver

It would be nice if locally sent emails were excluded from spam filtering by default (e.g. system notifications for root etc). I'm not sure how this should be implemented, can we trust e.g. the 'received' headers to figure out if the mail originates from our server?

question

All 4 comments

Who is denying it? Spamassassin or postscreen? Can you provide a log of the denial? What is your permit_docker setting? You are sending from where? (From inside the mailserver container/another docker container/ host system?)

Hi,
I think I am running into the same problem. A user is denied sending emails whenever he is connected through a network that is blacklisted 鈥撀燼lthough he tries to authenticate correctly. I am not sure whether there is some other configuration problem, and I am not sure how to test this better, but maybe someone else can see what's going on? Here's the relevant log.

mail    | May 10 12:08:22 mail postfix/postscreen[3115]: CONNECT from [88.130.48.213]:28199 to [172.19.0.2]:25
mail    | May 10 12:08:22 mail postfix/dnsblog[3333]: addr 88.130.48.213 listed by domain dnsbl.sorbs.net as 127.0.0.10
mail    | May 10 12:08:22 mail postfix/dnsblog[3334]: addr 88.130.48.213 listed by domain b.barracudacentral.org as 127.0.0.2
mail    | May 10 12:08:28 mail postfix/postscreen[3115]: DNSBL rank 3 for [88.130.48.213]:28199
mail    | May 10 12:08:29 mail postfix/tlsproxy[5135]: CONNECT from [88.130.48.213]:28199
mail    | May 10 12:08:29 mail postfix/tlsproxy[5135]: Anonymous TLS connection established from [88.130.48.213]:28199: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
mail    | May 10 12:08:29 mail postfix/postscreen[3115]: DISCONNECT [88.130.48.213]:28199
mail    | May 10 12:08:29 mail postfix/tlsproxy[5135]: DISCONNECT [88.130.48.213]:28199

Ulli

He should not use port 25 for sending emails. Use 587 and it should be fine.

Thanks, that worked!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

42wim picture 42wim  路  4Comments

domdorn picture domdorn  路  4Comments

ShuP1 picture ShuP1  路  4Comments

nekrondev picture nekrondev  路  3Comments

landergate picture landergate  路  4Comments