Postfix and mails from outlook.com

Bugs in eFa 4
Post Reply
samrein
Posts: 28
Joined: 04 May 2018 08:41

Postfix and mails from outlook.com

Post by samrein »

Hello,

we have trouble with some mails from outlook.com domains.

After few weeks with many trouble with cutoumers i am disable greylisting on my efa4 server.
Now we have complaints that the messages will not be delivered.

The only message on the server is:

Code: Select all

Jun 26 13:38:35 server postfix/smtpd[25403]: 49tZdl6Svjz9yvBS: client=xxx.outbound.protection.outlook.com[40.107.7.81]
Jun 26 13:43:36 server postfix/smtpd[25403]: timeout after BDAT (17968 bytes) from xxx.outbound.protection.outlook.com[40.107.7.81]
Jun 26 13:43:36 server postfix/smtpd[25403]: disconnect from xxx.outbound.protection.outlook.com[40.107.7.81] ehlo=2 starttls=1 mail=1 rcpt=1 bdat=2 commands=7
ICMP Packets on the firewall are allowed.

Where can i search for this error?

Hope, anyone can help me.

Regards
Stefan
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: Postfix and mails from outlook.com

Post by pdwalker »

viewtopic.php?t=1733
[root@efa4 ~]# update_sqlgrey_config
< bunch of things happen >
this adds several things to the sqlgrey whitelists, including adding this to /etc/sqlgrey/clients_fqdn_whitelist
+# Outlook.com users, retries do not come from the same server.
+*.outbound.protection.outlook.com
I think this will accomplish what you're looking for.

I don't know if restarting the sqlgrey service was necessary, but I did it anyway.
[root@efa4 sqlgrey]# service sqlgrey restart
Redirecting to /bin/systemctl restart sqlgrey.service
samrein
Posts: 28
Joined: 04 May 2018 08:41

Re: Postfix and mails from outlook.com

Post by samrein »

Hi pdwalker,


I have deactivated greylisting, does it still have an effect?

The entry is included in my "clients_fqdn_whitelist

.

Greetings
Stefan


EDIT:

i have set

smtpd_discard_ehlo_keywords = chunking, silent_discard

and now the mails running.


Whether there are any better options?
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: Postfix and mails from outlook.com

Post by pdwalker »

I would leave greylisting enabled because greylisting does result in a lot of discarded spam.

Once you've updated your domain whitelist, you shouldn't have any problem receiving messages from outlook.com. Send some to yourself and verify.

As for "smtpd_discard_ehlo_keywords = chunking, silent_discard", I have no idea what that is and what it is for. I could look it up and see.

Why did you add this?
samrein
Posts: 28
Joined: 04 May 2018 08:41

Re: Postfix and mails from outlook.com

Post by samrein »

Hi Pdwalker,

thanks.

I will reactivate greylisting.

I actived "smtpd_discard_ehlo_keywords = chunking, silent_discard", because messages from outlook.com didn't reach me anymore. i also had no error message in the maillog. only.

Code: Select all

Jun 26 13:38:35 server postfix/smtpd[25403]: 49tZdl6Svjz9yvBS: client=xxx.outbound.protection.outlook.com[40.107.7.81]
Jun 26 13:43:36 server postfix/smtpd[25403]: timeout after BDAT (17968 bytes) from xxx.outbound.protection.outlook.com[40.107.7.81]
Jun 26 13:43:36 server postfix/smtpd[25403]: disconnect from xxx.outbound.protection.outlook.com[40.107.7.81] ehlo=2 starttls=1 mail=1 rcpt=1 bdat=2 commands=7
Please have a look at:

http://www.postfix.org/BDAT_README.html


After i set "smtpd_discard_ehlo_keywords = chunking, silent_discard" mails from outlook.com reached me.

Greetings
Stefan
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: Postfix and mails from outlook.com

Post by pdwalker »

Useful feedback, thanks. I'll be looking it over carefully.
Post Reply