eesdonotitnow wrote
Sorry, didn't mean to be snarky, that line was in poor taste.
I'm not offended - I just took it as frustration on your part.
The system has no send-mail server as such
I suspect you'll find that it does (dpkg --get-selections | grep exim), it's required for system mail at a minimum. As long as you haven't configured it there shouldn't be any problems. The default Ubuntu firewall, and SELinux may be a problem - but this is likely an SSL problem based on the debug snippet you posted earlier.
I have not setup SSL on this server at this time. I was not aware that was a requirement for using SMTPmail.
It's not a requirement for SMTPmail - unless you choose to use an email service that requires SSL (or GnuTLS if you use the TLS option). gmail/GoogleApps requires either TLS or SSL - which is good).
- /var/log/syslog: No response to testing
- /var/log.apache2/error.log: No response to testing
- /var/log.apache2/access.log: Expected POST/GET reposes, no errors.
Thanks - I had to ask, I can't assume you checked.
We are going to run the wireshark test tomorrow to make sure we are getting actual traffic out of SMTPmail's test.
You'll find you are, but it will be rejected as unsecured by Google (which is a good thing).
Install SSL - I can highly recommend a LetsEncrypt certificate, but it's simpler to generate your own for testing purposes. Note that I don't know anything about your LAMP settings (virtualhost,
apache2-suexec-custom etc), and I use Debian, which is not Ubuntu (though Ubuntu takes from Debian, i.e. YMMV) - adjust the following to suit.
Ensure you have openssl installed (
# apt-get -y install openssl)
Make SSL available for your webserver
# a2enmod ssl&&a2ensite default-ssl&&systemctl reload apache2
Create somewhere to store your SSL cert
# mkdir /etc/apache2/ssl
Generate a SSL certificate
# openssl req -x509 -nodes -days 30 -newkey rsa:2048 -keyout /etc/apache2/ssl/eesdonotitnow.key -out /etc/apache2/ssl/eesdonotitnow.crt
You'll be asked questions:-
Common Name: the name of your
webserver (not the server/FQDN), or, the IP address
Other stuff: whatever values you want.
Secure your SSL keys (and back them up somewhere off-server)
# chmod 600 /etc/apache2/ssl/*
Edit
/etc/apache2/sites-enabled/*.conf (I don't know your setup and I use suexec with virtualdomains) and in the
<VirtualHost _default_:443> section add
ServerName beneath
ServerAdmin (e.g. ServerName eesdonotitnow.test).
Edit
/etc/apache2/sites-enabled/default*.conf and make sure the paths for SSLCertificateFile and SSLCertificateKeyFile are correct (should be
/etc/apache2/ssl/$Something.key and
/etc/apache2/ssl/$Something.crt)
# systemctl reload apache2
Test your SSL cert
openssl s_client -connect localhost:443 - you should only get minor errors (no chaining etc).
If the test works try your SMTPmail again - it should work. If you get stuck try the
Official Ubuntu documentation.
NOTE: that is a
very basic SSL setup for your webserver (might score a -C with the SSLLabs test), but should be sufficient for your SMTPmail. Proper configuration of a webserver is beyond the scope of this forum (and outside the scope of
General Help and Support › Plugins).