ssmtp with sparkpost in docker - docker

I'm trying to set up a simple email server for testing during development, but SSMTP keeps giving me "Invalid response SMTP server" even with -vvvv, I get no more information.
My ssmtp config file looks like this right now:
root=my-email#gmail.com
mailhub=smtp.sparkpostmail.com:587
rewriteDomain=email.codyhaines.com
fromLineOverride=yes
useSTARTTLS=yes
useTLS=yes
AuthMethod=AUTH LOGIN
AuthUser=SMTP_Injection
AuthPass=MY_SPARK_POST_API_KEY
I've set up the domain through sparkpost, and verified it with the TXT DNS record, my API_KEY has 'Send via SMTP' enabled. Not sure what's wrong with the config and why it's not sending.

My issue was with the network I was on. It seems the "Invalid response SMTP server" error is almost always a result of either connecting to a bad address or firewall issues (either on your local device, or your network). In my case, I was using a local coffee shop's wifi, and they blocked all non-standard ports, so it wasn't connecting.

Related

When connecting to owncloud i get 'You are accessing the server from an untrusted domain'

Just installed owncloud using the instructions in https://doc.owncloud.com/server/next/admin_manual/installation/docker/ and when I try to connect to the server from my machine I get the following error message...
You are accessing the server from an untrusted domain.
Please contact your administrator. If you are an administrator of this instance, configure the "trusted_domains" setting in config/config.php. An example configuration is provided in config/config.sample.php or at the documentation.
IK what the error message means and how I would normally fix it in a standard apache setup, but how do I change these in the docker images?
I tried changing the line OWNCLOUD_TRUSTED_DOMAINS in the .env file to a wildcard (originally it said localhost) and that did not help.

HTTP proxy Configuration always returns error 403 on jenkins

After Installing Jenkins on Ubuntu, I get screen where it shows that jenkins is working in offline mode. It gives option to configure proxy, even after entering correct proxy details for server name, port, username and password I get error message "Failed to connect to http://jenkins-ci.org/ (code 403)", when trying to validate proxy. Have entered many other url but each gives same error.
Also, the same url gives result on wget on server(ubuntu) hosting jenkins.
Have also set proxy for JENKINS user on host machine
In proxy, provide only proxy host and port. Leave the username and password empty And go to .jenkins folder and update the URL from https to Http in the hudson.model.UpdateCenter.xml file. Restart and try again with proxy.

Cannot access wsdl file from different machine

I am trying to run the running Client & Server Application on different machine but then I am getting below exception message which says it can not get wsdl file on that machine:
javax.xml.ws.WebServiceException: Failed to access the WSDL at:
http://localhost:8080/proj_name/EmpServices?wsdl. It failed with: Got
http://localhost:8080/proj_name/EmpServices?wsdl while opening stream
from same_link_as_above/EmpServices?wsdl.
It looks like connection issue, not WSDL or service-related.
Possible causes and solutions:
You tell about "remote machine", but errors says "localhost".
Have you configured your service client to work with your remote machine?
Shouldn't it be remote machine's address? Or is it just a typo?
If you configured it correctly, make sure that you have a working connection and port 8080 is allowed in your firewalls.
You may also try to open this link directly in your browser from client machine, and see what is says.
Perhaps, you will get connection error message, while you should get WSDL file.

Heroku sporadically returns "hostname" not found

I'm creating an iOS app that uses a Rails API backend on Heroku. Periodically (one every 20 API calls), heroku cannot be found. The following NSError is returned:
Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo=0x755ce00 {NSErrorFailingURLStringKey=https://xxx.herokuapp.com/api/v1/matchups, NSErrorFailingURLKey=https://xxx.herokuapp.com/api/v1/matchups, NSLocalizedDescription=A server with the specified hostname could not be found., NSUnderlyingError=0x71ca730 "A server with the specified hostname could not be found."
Seems like a DNS issue on the network to which your iPhone/iPad is connected. To be sure, try any of the following:
1) Change your host name to an IP address instead of a string hostname, and add a Host: header to the HTTP request.
2) If (1) is hard, set your iPhone's DNS to a PC on your LAN, and install a DNS server on that PC, and serve at least that specific address directly from the PC (don't recurse for that domain).
It looks like you are being hit by a Dyno sleep behaviour. Please check this documentation, specially the section Dyno sleeping and make sure you understand it.
Also there are several ways to keep the app on, like pinging the site regularly.
Another option is DNS, create an Ad-Hoc network on your computer and connect your iphone to that network. Use wireshark to make a network capture and analyse the DNS and HTTP responses.
Your url = https://xxx.herokuapp.com/api/v1/matchups
Did you explicitly specify your subdomain xxx with your domain provider to direct to your server IP?
If not, try add a new A record with your subdomain xxx point to your server IP.
Hope that helps.

"getaddrinfo: Temporary failure in name resolution" in RoR application

I'm trying to retrieve emails from gmail using pop3 to my rails applicaiton. I get the error - "getaddrinfo: Temporary failure in name resolution" when i try to retrieve the email.
the weird thing is, it works when i try it at home but not at my university. i'm guessing it has something to do with the internet connection.
please help!
I had the same problem just started getting this error out of the blue in a RoR application that connects to an API using a RestClient running on a local virtual machine using Vagrant that I have as a development environment.
The only thing that fixed the issue was simply restarting my virtual machine. Just done a vagrant down & up command, then rackup and back in the game.
This generally means you aren't getting a response from DNS. Your university connection is probably behind a proxy preventing you from directly accessing the Internet. If so, this proxy must be specified in your code. Check your POP3 library documentation, or failing that, you may be able to use a library like socksify that redirects TCP connections through your SOCKS proxy.
Simple. You may be directed through a proxy server. Set up a new connection ,set up your college settings,restart your server and it should work.
ssh into your server and check if the machine is able to resolve the domain.
ping <your_site> should resolve the domain name to IP.
If its not resolving correctly, then there is some problem in your hosting service.
quick fix: You can manually map domain-to-ip in the etc/hosts file of your server.

Resources