why I cannot connect to sharefile's ftps server? - network-programming

I tried connect to ftps://we-can.sharefileftp.com in port 990 but I got this response:
Response: 530 Username/password not accepted for
user#host.com on account 'we-can'.
thanks a lot
Nate

Related

Sign In with Apple REST api refuses incoming requests

I'm currently implementing Sign In with Apple for Zotonic. The development server I'm doing this on is sometimes unable to connect to the appleid.apple.com.
When connecting, for example when retrieving the apple's keys I get this reponse 50% of the time.
> curl https://appleid.apple.com/auth/keys
curl: (7) Failed to connect to appleid.apple.com port 443: Connection refused
It looks like an ip-block to me.
After further investigation I found that when appleid.apple.com resolves to
dig +short appleid.apple.com
appleid.idms-apple.com.akadns.net.
17.157.64.68
I'm able to connect, but when it resolves to:
> dig +short appleid.apple.com
appleid.idms-apple.com.akadns.net.
17.32.194.37
17.32.194.6
I'm not
Does anybody experience this kind of problem in practice? (kind of worried about the reliability)
Does anybody know how to remove a server from apple's blocklist?

"Failed to connect to api.twilio.com port 443: Connection refused" error

I've disabled SSL Certificate Validation under General Settings because my WordPress site is using http.
But I am still still getting "Failed to connect to api.twilio.com port 443: Connection refused" on live and test credentials."
I've also purge caches on the browser.
I am using the guide from https://www.twilio.com/blog/2017/08/send-sms-wordpress-php-plugin.html.
Does the setting takes time to remove the SSL certification validation or what else could go wrong?
Answered by Twilio support "All connections to the Twilio API endpoints must use HTTPS and so if you have no SSL Cert for your Wordpress website it will refuse the request. You will need to get an SSL Certificate for your website in order to call the API endpoints from your Wordpress site/domain. Disabling SSL Certificate Validation setting on Twilio dashboard is for calls from Twilio to your servers, not the other way around."
I am also facing the same challenge while doing a POC to send SMS using twilio. This is the exception that I am getting.
Exception in thread "main" com.twilio.exception.ApiException: Connect to api.twilio.com:443 [api.twilio.com/54.209.184.12, api.twilio.com/52.45.186.111, api.twilio.com/52.4.111.215, api.twilio.com/52.5.142.82, api.twilio.com/54.165.83.5, api.twilio.com/54.84.239.1, api.twilio.com/52.45.52.233, api.twilio.com/52.72.204.95] failed: Connection refused: connect
at com.twilio.http.NetworkHttpClient.makeRequest(NetworkHttpClient.java:128)
at com.twilio.http.HttpClient.reliableRequest(HttpClient.java:42)
at com.twilio.http.HttpClient.reliableRequest(HttpClient.java:25)
at com.twilio.http.TwilioRestClient.request(TwilioRestClient.java:42)
at com.twilio.rest.api.v2010.account.MessageCreator.create(MessageCreator.java:402)

Telnet: Network is unreachable

I'm new with Ruby on Rails, so I was trying to figure out how to send emails from the server.
I have followed several tutorial without success, so decided to check the basics and see if port 25 is open, I get the following line:
$ telnet example.com 25
Trying 93.184.216.34...
Trying 2606:2800:220:1:248:1893:25c8:1946...
telnet: Unable to connect to remote host: Network is unreachable
I have read about Conection refused but I can't figure out about unreachable is my port blocked or maybe my ISP?
Any help is useful
if you using ubuntu / debian based
check your server firewall and allow port 25
sudo ufw allow 25/tcp
1. install postfix if you want to build your own smtp server
2. other Alternatif
using gmail account as smtp server in rails , action mailer with gmail as smtp
or you can register to sendgrid.com as smtp server (not free but can apply testing account for one year trial)

Oauth2 gmail SMTP Authentication Error with phpmailer

It's really a night mare. I don't know why I'm getting this for last 24 hours. Any help much appreciated please.
SERVER -> CLIENT: 220 smtp.gmail.com ESMTP w23sm28778307wmd.1 - gsmtp
CLIENT -> SERVER: EHLO cslexicon.tk
SERVER -> CLIENT: 250-smtp.gmail.com at your service, [31.170.164.33]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
CLIENT -> SERVER: STARTTLS
SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
CLIENT -> SERVER: EHLO cslexicon.tk
SERVER -> CLIENT: 250-smtp.gmail.com at your service, [31.170.164.33]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
CLIENT -> SERVER: AUTH XOAUTH2 dXNlcj1zc3Nzc2F0aHlhYTY3QGdtYWlsLmNvbQFhdXRoPUJlYXJlciB5YTI5LmFRS2E2OC1qUmZsenhhYnE1YmkxNWlYcUtOa1VmTjdJZ3NBT2dLYU1uekhpR2I0NVV4dm9GNWozcDZoZGp3LXZtTjEyVEEBAQ==
SERVER -> CLIENT: 334 eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==
SMTP ERROR: AUTH command failed: 334 eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==
SMTP Error: Could not authenticate.
CLIENT -> SERVER: QUIT
SERVER -> CLIENT: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/answer/14257 w23sm28778307wmd.1 - gsmtp
SMTP ERROR: QUIT command failed: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/answer/14257 w23sm28778307wmd.1 - gsmtp
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
I used league/oauth2-client, league/oauth2-google and got refresh token.
ClientID, Secret Code and Refresh code everything seems fine in my phpmailer code.
Followed everything at https://support.google.com/mail/answer/14257
Still, stuck here for very long time.
If you are using league/oauth2-client and league/oauth2-google,
you will get the following prompt by default on getting refresh token.
But, these permissions do not allow you to send emails.
So you apply a simple quick fix.
At this stage, move your eyes towards the url in the address bar.
Analyze it closely and somewhere you find this,
&scope=email+openid+profile&response_type
Change the scope to the following and don't touch the remaining part,
&scope=https://mail.google.com/&response_type
Now, go to this new modified url. You will get a prompt like this,
Click Allow and you are Good to go.
i faced the same problem. however it can be solved by go to Account Settings and remove permission and then grant permission again.
hope it will work with you too
Please go and check your scopes if you are dealing with SMTP
please add this in the scope https://mail.google.com/

Jenkins email notification setup

I am trying to setup email notification for my jenkins server for build failures.
Things I have tried:
1) Use my company smtp mail server with authentication - does not work. Connection refused
2) Setup my own James mail server. SMTP server - localhost. Authentication - admin,admin. Port 25. I see that my SMTP server is running. - does not work. Connection refused
3) Use my personal gmail account with authentication - Works!!!
I have followed other discussions on this topic but not got an answer.
Some say it may be a firewall issue but I am not sure how to overcome it.
Any suggestions are most welcome.
Thanks,
I had the similar problem.
I was on wireless + windows 7 and when checked internet connectivity status, IPV4 was connected to internet but IPV6 was not.
Looks like IPV6 is used as default on windows 7 but it was not able to connect to the SMTP server using it.
Started my jenkins with -Djava.net.preferIPv4Stack=true and it worked for me.
java -Djava.net.preferIPv4Stack=true -jar jenkins.war and the "Test Configuration" worked.
For Sending Email Notifications using localhost SMTP server you need to install postfix,
For Linux :
sudo apt-get install postfix
telnet localhost 25
and then try sending test email. :)
I know this is late but just in case any other person is facing problem!

Resources