Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comm.software.mailserver > #6467

postfix access

From Ulli Horlacher <framstag@tandem-fahren.de>
Newsgroups de.comm.software.mailserver
Subject postfix access
Date 2021-08-03 18:39 +0000
Organization [ posted via ] IN-Ulm
Message-ID <sec2heUebitL1@news.in-ulm.de> (permalink)

Show all headers | View raw


Nachdem ich tausende von Spams via protection.outlook.com bekommen habe
und Microsoft (wie ueblich) Beschwerden ignoriert habe ich die Domain
gesperrt:

root@tandem:/etc/postfix# grep protection.outlook.com access
protection.outlook.com          521 550 E-mail rejected: protection.outlook.com is classified as a spammer domain

Das funktioniert auch :

root@tandem:/etc/postfix# grep protection.outlook.com /var/log/mail.log|head
2021-08-01 06:27:31  connect from mail-bn7nam10olkn2109.outbound.protection.outlook.com[40.92.40.109]
2021-08-01 06:27:32  NOQUEUE: reject: RCPT from mail-bn7nam10olkn2109.outbound.protection.outlook.com[40.92.40.109]: 521 5.7.1 <mail-bn7nam10olkn2109.outbound.protection.outlook.com[40.92.40.109]>: Client host rejected: 550 E-mail rejected: protection.outlook.com is classified as a spammer domain; from=<XXXXXX@msn.com> to=<framstag@flupp.org> proto=ESMTP helo=<NAM10-BN7-obe.outbound.protection.outlook.com>
2021-08-01 06:27:32  disconnect from mail-bn7nam10olkn2109.outbound.protection.outlook.com[40.92.40.109] ehlo=2 starttls=1 mail=1 rcpt=0/1 rset=1 commands=5/6
2021-08-01 06:37:34  connect from mail-mw2nam10olkn2075.outbound.protection.outlook.com[40.92.42.75]
2021-08-01 06:37:35  NOQUEUE: reject: RCPT from mail-mw2nam10olkn2075.outbound.protection.outlook.com[40.92.42.75]: 521 5.7.1 <mail-mw2nam10olkn2075.outbound.protection.outlook.com[40.92.42.75]>: Client host rejected: 550 E-mail rejected: protection.outlook.com is classified as a spammer domain; from=<XXXXXX@msn.com> to=<framstag@flupp.org> proto=ESMTP helo=<NAM10-MW2-obe.outbound.protection.outlook.com>
2021-08-01 06:37:35  disconnect from mail-mw2nam10olkn2075.outbound.protection.outlook.com[40.92.42.75] ehlo=2 starttls=1 mail=1 rcpt=0/1 commands=4/5
2021-08-01 06:47:37  connect from mail-dm6nam10olkn2068.outbound.protection.outlook.com[40.92.41.68]
2021-08-01 06:47:38  NOQUEUE: reject: RCPT from mail-dm6nam10olkn2068.outbound.protection.outlook.com[40.92.41.68]: 521 5.7.1 <mail-dm6nam10olkn2068.outbound.protection.outlook.com[40.92.41.68]>: Client host rejected: 550 E-mail rejected: protection.outlook.com is classified as a spammer domain; from=<XXXXXX@msn.com> to=<framstag@flupp.org> proto=ESMTP helo=<NAM10-DM6-obe.outbound.protection.outlook.com>
2021-08-01 06:47:38  disconnect from mail-dm6nam10olkn2068.outbound.protection.outlook.com[40.92.41.68] ehlo=2 starttls=1 mail=1 rcpt=0/1 commands=4/5


Leider ist mir genau DIESER Absender XXXXXX@msn.com wichtig, den moechte
ich gerne durchlassen.

http://www.postfix.org/access.5.html

Also hab ich noch ins access file geschrieben:

root@tandem:/etc/postfix# grep XXXXXX access
XXXXXX@msn.com             OK

Und danach auch "make access.db" aufgerufen:

root@tandem:/etc/postfix# ll access*
-rw-r--r-- root root  62,214 2021-08-02 09:44:45 access
-rw-r--r-- root root 151,552 2021-08-02 09:44:52 access.db
-rw-r--r-- root root      20 2015-05-05 17:29:28 access_ok
-rw-r--r-- root root  12,288 2015-05-05 17:33:04 access_ok.db

root@tandem:/etc/postfix# grep access main.cf
smtpd_client_restrictions = check_client_access hash:/etc/postfix/access_ok
                            check_client_access hash:/etc/postfix/access
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/access

Leider funktioniert das nicht, XXXXXX@msn.com wird weiterhin
abgewiesen, egal ob die OK-Regel am Anfang oder Ende vom access file steht.

Ich hab dann noch die OK-Regel nach access_ok geschrieben:

root@tandem:/etc/postfix# cat access_ok
127.0.0.1               OK
XXXXXX@msn.com          OK

root@tandem:/etc/postfix# make
postmap hash:access
postmap hash:access_ok

Wird allerdings immer noch abgewiesen:

root@tandem:/etc/postfix# grep XXXXXX /var/log/mail.log|tail -2
2021-08-02 10:10:28  NOQUEUE: reject: RCPT from mail-mw2nam08olkn2041.outbound.protection.outlook.com[40.92.46.41]: 521 5.7.1 <mail-mw2nam08olkn2041.outbound.protection.outlook.com[40.92.46.41]>: Client host rejected: 550 E-mail rejected: protection.outlook.com is classified as a spammer domain; from=<XXXXXX@msn.com> to=<framstag@flupp.org> proto=ESMTP helo=<NAM04-MW2-obe.outbound.protection.outlook.com>
2021-08-02 10:12:17  NOQUEUE: reject: RCPT from mail-mw2nam08olkn2105.outbound.protection.outlook.com[40.92.46.105]: 521 5.7.1 <mail-mw2nam08olkn2105.outbound.protection.outlook.com[40.92.46.105]>: Client host rejected: 550 E-mail rejected: protection.outlook.com is classified as a spammer domain; from=<XXXXXX@msn.com> to=<framstag@tandem-fahren.de> proto=ESMTP helo=<NAM04-MW2-obe.outbound.protection.outlook.com>

Was hab ich uebersehen oder falsch gemacht?


-- 
+ Ulli Horlacher + framstag@tandem-fahren.de + http://tandem-fahren.de/ +

Back to de.comm.software.mailserver | Previous | NextNext in thread | Find similar | Unroll thread


Thread

postfix access Ulli Horlacher <framstag@tandem-fahren.de> - 2021-08-03 18:39 +0000
  Re: postfix access Thomas Hochstein <thh@thh.name> - 2021-08-03 21:14 +0200
    Re: postfix access Matthias Andree <matthias.andree@gmx.de> - 2021-08-04 11:53 +0200
      Re: postfix access Thomas Hochstein <thh@thh.name> - 2021-08-04 13:51 +0200

csiph-web