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

Too many connections to smtp server #3

Open
viewpnt opened this issue Jun 18, 2019 · 0 comments
Open

Too many connections to smtp server #3

viewpnt opened this issue Jun 18, 2019 · 0 comments

Comments

@viewpnt
Copy link

viewpnt commented Jun 18, 2019

On error, emailcli opens too many connections to smtp server, not even notifying the user about the error...

In my case, invoking the program like this...

./email --username [email protected] --host smtp.server --port 587 --subject "Test mail" --body "Test Body" [email protected]

Does not show any error, but smtp server side I got...

Jun 18 18:14:20 smtp postfix/smtpd[17329]: connect from smtp.server[XX.XX.XX.XX] Jun 18 18:14:20 smtp postfix/smtpd[17329]: warning: Connection rate limit exceeded: 2323 from smtp.server[XX.XX.XX.XX] for service smtp Jun 18 18:14:20 smtp postfix/smtpd[17329]: disconnect from smtp.server[XX.XX.XX.XX] Jun 18 18:14:20 smtp postfix/smtpd[17329]: connect from smtp.server[XX.XX.XX.XX] Jun 18 18:14:20 smtp postfix/smtpd[17329]: warning: Connection rate limit exceeded: 2324 from smtp.server[XX.XX.XX.XX] for service smtp Jun 18 18:14:20 smtp postfix/smtpd[17329]: disconnect from smtp.server[XX.XX.XX.XX] Jun 18 18:14:20 smtp postfix/smtpd[17329]: connect from smtp.server[XX.XX.XX.XX] Jun 18 18:14:20 smtp postfix/smtpd[17329]: warning: Connection rate limit exceeded: 2325 from smtp.server[XX.XX.XX.XX] for service smtp Jun 18 18:14:20 smtp postfix/smtpd[17329]: disconnect from smtp.server[XX.XX.XX.XX] Jun 18 18:14:20 smtp postfix/smtpd[17329]: connect from smtp.server[XX.XX.XX.XX] Jun 18 18:14:20 smtp postfix/smtpd[17329]: warning: Connection rate limit exceeded: 2326 from smtp.server[XX.XX.XX.XX] for service smtp Jun 18 18:14:20 smtp postfix/smtpd[17329]: disconnect from smtp.server[XX.XX.XX.XX]

Maybe there should be a --verbose option showing the error, or better yet, a --debug option, showing all server - client activity...
a CAPABILITY
a LOGIN [email protected] passwd
a LIST "" "*"
a STATUS INBOX (MESSAGES)
a STATUS INBOX (MESSAGES UNSEEN RECENT)
a SELECT INBOX
a LOGOUT

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

1 participant