HAProxy Mailer SMTP Authentication - haproxy

I would like to send alerts using a mailer in HAProxy.
I tried to follow:
email-alert
The problem is that my mail server requires a SSL connection with username an password.
Any suggestions?

Solution.
Following (https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-14-04) I've configured a local postfix.
HAProxy connects to this SMTP server to send mails.

Related

Joomla to G Suite and Bluehost - SMTP Configuration

I'm trying to Configure on Joomla the SMTP Mail Option. But try to connect via, smtp.gmail.com port 465 / smtp-relay.gmail.com port 587 with and without authentication, and with no luck.
The error I receive is a Timeout Connection error.
The Bluehost server is pointing all the Emails to G Suite.
When contacting Bluehost, they say that Google is the problem, when contacting Google they say is Bluehost that have the problem.
Try the following configuration to send an email via Gmail SMTP
From Nmae - Your site email
Mailer - SMTP
SMTP Host - smtp.gmail.com
SMTP Port - 465
SMTP Security - SSL/TLS
SMTP Authentication - Yes
If you have enabled the 2 factor authentication for your profile then you need to follow more steps as mentioned here

Nodemailer works well on localhost and server over HTTP, but mail don't received over HTTPS

Setup a front thank to VueJS with a basic contact form. Backend is a feathers (node/express) API with a POST route to a mail service (nodemailer) that handle to send the email to the account.
On my machine (localhost) everything is working.
Put on my own server (Ubuntu 17.04) over HTTP (served by Nginx) it's working.
I added let's encrypt SSL certificate.
Now the client received a 200 response when I send an email. I have no error on the server (connection check with transporter.verify()). But I don't get email anymore.
What do I have to configure with a HTTPS connexion ?

Send mail through proxy

I would like to set up a proxy for SMTP traffic by this i mean send and receive mail through a proxy.
I have a machine which is not directly connect to an internet gateaway, I already have an squid proxy for http and https but now i need to send mail (receive is not fundamental)
Which tools do you advice me to use and if you have some doc or tutorial to use this tool as an smtp proxy it would be great. (I'm running on CentOS 7)
Thanks in advance

send/receive mail from OWIN self-host webapp with custom domain

I have a domain, a Console Application with OWIN self-host.
The Console app host on AWS EC2 server windows server 2012.
My mail feature of server is sending Verification Mail
I've google many owin mail send or receive infomation,
but all of them are smtp/pop3 on google or some other smtp/pop3 server.
Is it possible to do send / receive mail in a console with current ip or custom domain?
I've try method.
Use hMailServer:
No luck in this. can't send/receive any mail, and set gmail for add smtp and pop3,
but fail.
the error msg: "We were unable to locate the other domain. Please contact your other provider."
Use AWS SES:
Still fail on this.
AWS SES need vail domain with anyaccount#domain, but i have no mail feature on my server.
Use my gmail:
Connect gmail need SSL. I have no SSL.
And research hours for host ssl on OWIN self-host,
Is there other solution for this?
I set a DNS MX Record from my DNS provider.
Now,I can send/receive mail with hamilserver and gmail smtp/pop3.
not best solution, but my problem solved.

A way to forward or intercept smtp mail request to localhost?

Wondering if we have options for a failing smtp mail at "localhost" after changing DNS host.
The problem setup is this:
SMTP mail is being sent from a server, with mail being configured on the server itself. Originally, server was host of DNS domain as well as web app.
Using JavaMail, a request is sent to "localhost" without any authentication
The DNS settings have changed, server hosting web app is no longer the "from" email address
The Java web app cannot be modified and is still sending to "localhost"
Question: Do we have any options?
I'd like to intercept the "localhost" smtp mail request and forward it along to our domain's mail server, with new credentials, but am unsure if that is possible. A stand-alone script to watch for those requests?
We did receive the suggestion to edit our DNS settings on the new hosting and add "MX" and "A" records, but that would require a change of source code, which is not an option at this time.
Thanks!
If there's no SMTP server running on localhost, and you just want to redirect mail to another mail server without authentication, you could use a simple "proxy/tunnel" using something like the "netcat" program.
If there is an SMTP server running on localhost, you might be able to configure it to forward all messages to your other mail server.
Otherwise, is it possible to change the properties used by JavaMail in your web app, without changing the source code? For example, do the properties come from a file or from System.getProperties()?