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

Pipelining with SMTPDeliveryAgent Not Handling "530 5.7.1" Response #33

Open
bm3780 opened this issue Aug 6, 2014 · 1 comment
Open

Comments

@bm3780
Copy link

bm3780 commented Aug 6, 2014

NOTE: This issue was encountered while using the Netty 4.x branch.

I encountered a problem while using SMTPDeliveryAgent with a configuration of PipeliningMode.TRY. Our exchange mail server has a whitelist of allowed IPs, and if not allowed the server responds to EHLO request with a "530 5.7.1 Client was not authenticated" response. In my development environment, I encountered this scenario and was surprised that the SMTPClientFuture never completed. This problem is specific to PIPELINING as when I use PipeliningMode.NO, everything works OK and the future is completed.

I think I have tracked down the issue to be within the NettySMTPClientSession#addCollectionFutureHandler, where if a 530 is encountered (which short-circuits the other expected responses from RCPT, DATA, etc), the expected 'responsesCount' is never reached and thus never removes itself from the pipeline.

@normanmaurer
Copy link
Owner

@bm3780 thanks for reporting... will try to check today.

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

2 participants