Exchange2016 + Linux mail relay delay when QUIT session

Hello we have a problem with Exchange 2016 email relay and a Linux 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:15:33 UTC 2013 i686 i686 i386 GNU/Linux

On the linux there is an application that use the relay on exchange 2016

We can send email but the problem is that when we do a QUIT on the session i take a really long time

Exemple:

admin@linuxservername:~$ telnet 192.168.xx.xx 25
Trying 192.168.xx.xx...
Connected to 192.168.xx.xx.
Escape character is '^]'.
220 servername.xxx.xx Microsoft ESMTP MAIL Service ready at Thu, 29 Mar 2018 15:19:45 -0400
HELO 127.0.0.1
250 servername.xxx.xx Hello [192.168.xx.xx]
MAIL FROM: xxx@xxx.xx
250 2.1.0 Sender OK
RCPT TO: xx@hotmail.com
250 2.1.5 Recipient OK
DATA
354 Start mail input; end with <CRLF>.<CRLF>
SUBJECT: xx
xx
.
250 2.6.0 <aee962d6-f8ab-47fb-a509-53b5010bb329@servername.xxx.xx> [InternalId=3199750635781, Hostname=servername.xxx.xx] 1846 bytes in 0.103, 17,468 KB/sec Queued mail for delivery

At this point we received the email in our mailbox immediatly

When we do the command below
QUIT

It take around 5 minutes  to have this error

451451 Retry later. Email Session ID: {5ABD3C52-5-6501FDCF-C0000001}
Connection closed by foreign host.
admin@linuxservername:~$

Can someone help me

Ive tried the same thing on windows and don't have any problem

The linux box send multiple emails in a day and is use for a library to send email to citizens so everytime the application send an email it hang around 5 minutes before user can continue to work

Thanks !
Jean-François GuénetNetwork AdministratorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jean-François GuénetNetwork AdministratorAuthor Commented:
I want to tell you that i change the ConnectionInactivityTimeout for the ReceiveConnector

Get-ReceiveConnector "VIREXCH2K16\Blainville Mail Relay To Internal & External" | Set-ReceiveConnector -ConnectionInactivityTimeout 00:00:02

Before it was at 00:05:00 and that is why it was waiting around 5 minutes

It's a temporary fix but i would prefer to find out why we have this problem on the linux server

Ive tried with a different linux (centos-release-6-7.el6.centos.12.3.x86_64 and i don't have any problem at all
0
Sunil ChauhanLead AdministratorCommented:
This is probably your app host issue then if it's not happening on another host, probably try reinstalling network drivers etc. or telnet client app probably.
0
Jean-François GuénetNetwork AdministratorAuthor Commented:
Finally it was a problem with our Firewall with the antispam that was causing this issue

We made an exception to not scan the ip of the server and now it's alright

Thanks !
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jean-François GuénetNetwork AdministratorAuthor Commented:
Finally it was a problem with our Firewall with the antispam that was causing this issue

We made an exception to not scan the ip of the server and now it's alright

Thanks !
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.