Discussion:
Email test server recommendations
Gus Wirth
2018-08-29 00:32:47 UTC
Permalink
I have a typical LAMP web application written in PHP ( SuiteCRM
<https://suitecrm.com/> ), that has the capability of sending out
e-mails using SMTP and encrypting the connection with TLS. It uses the
phpmailer library <https://github.com/PHPMailer/PHPMailer/> to do the
mailing.

Some portions of SuiteCRM can send out e-mail just fine while other
areas fail during what I think is the authentication step. I'm trying to
debug what's going on but I need to see what is happening on the e-mail
server side. So I want to set up a test server that supports TLS and has
a debug mode so that I can see what is happening. The received e-mail
doesn't need to go anywhere, I just need to see the connections and
negotiation.

Does anyone have recommendations for a simple setup? The only tricky
part that I can see is the TLS which I hope can be solved with either a
self-signed certificate or Lets Encrypt.

Gus
--
KPLUG-***@kernel-panic.org
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
Urivan Flores Saaib
2018-08-29 01:40:48 UTC
Permalink
Google provided a link to this Python smtp test script:

https://github.com/turbodog/python-smtp-mail-sending-tester

Open your favorite Python IDE and run a debug session with the settings
of your SMTP server with the data that generates the failure.

Regards,

-Urivan
I have a typical LAMP  web application written in PHP ( SuiteCRM
<https://suitecrm.com/> ), that has the capability of sending out
e-mails using SMTP and encrypting the connection with TLS. It uses the
phpmailer library <https://github.com/PHPMailer/PHPMailer/> to do the
mailing.
Some portions of SuiteCRM can send out e-mail just fine while other
areas fail during what I think is the authentication step. I'm trying
to debug what's going on but I need to see what is happening on the
e-mail server side. So I want to set up a test server that supports
TLS and has a debug mode so that I can see what is happening. The
received e-mail doesn't need to go anywhere, I just need to see the
connections and negotiation.
Does anyone have recommendations for a simple setup? The only tricky
part that I can see is the TLS which I hope can be solved with either
a self-signed certificate or Lets Encrypt.
Gus
--
KPLUG-***@kernel-panic.org
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
Gus Wirth
2018-08-29 02:49:20 UTC
Permalink
Post by Urivan Flores Saaib
https://github.com/turbodog/python-smtp-mail-sending-tester
Open your favorite Python IDE and run a debug session with the settings
of your SMTP server with the data that generates the failure.
Except this is the client. I need the server.

Gus
--
KPLUG-***@kernel-panic.org
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
Kevin Keane Subscription
2018-08-29 02:17:43 UTC
Permalink
No direct answer to your question, but

 
Is using the built-in SMTP mailer mandatory, or does it offer the option of using sendmail instead?

 
Sendmail/postfix tends to be much easier to troubleshoot because it offers good logging, and is probably also more reliable because you won’t have to deal with implementation differences/incompatibilities/etc. If SMTP is your only option, you could use it to send to a relay host.

 
That said – you said that you have a problem with authentication, and I noticed a note in the PHPMailer readme: If you want to use the Gmail XOAUTH2 authentication class, you will also need to add a dependency on the league/oauth2-client package in your composer.json.

 
No idea if that is relevant to your problem, just thought I’d mention it.

 
Sent from Mail for Windows 10

 
From: Gus Wirth <mailto:***@gmail.com>
Sent: Tuesday, August 28, 2018 5:41 PM
To: Main Discussion List for KPLUG <mailto:kplug-***@kernel-panic.org>
Subject: Email test server recommendations

 


I have a typical LAMP  web application written in PHP ( SuiteCRM
<https://suitecrm.com/> ), that has the capability of sending out
e-mails using SMTP and encrypting the connection with TLS. It uses the
phpmailer library <https://github.com/PHPMailer/PHPMailer/> to do the
mailing.

Some portions of SuiteCRM can send out e-mail just fine while other
areas fail during what I think is the authentication step. I'm trying to
debug what's going on but I need to see what is happening on the e-mail
server side. So I want to set up a test server that supports TLS and has
a debug mode so that I can see what is happening. The received e-mail
doesn't need to go anywhere, I just need to see the connections and
negotiation.

Does anyone have recommendations for a simple setup? The only tricky
part that I can see is the TLS which I hope can be solved with either a
self-signed certificate or Lets Encrypt.

Gus


--
KPLUG-***@kernel-panic.org
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
--
KPLUG-***@kernel-panic.org
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
Brian Whalen
2018-08-29 02:39:00 UTC
Permalink
After being a freebsd guy for awhile I switched to Linux a few years
back and am running my own server for one of my domains. In the
Ubuntu-server case, the mail-stack-delivery package was helpful.

Brian
I have a typical LAMP  web application written in PHP ( SuiteCRM
<https://suitecrm.com/> ), that has the capability of sending out
e-mails using SMTP and encrypting the connection with TLS. It uses the
phpmailer library <https://github.com/PHPMailer/PHPMailer/> to do the
mailing.
Some portions of SuiteCRM can send out e-mail just fine while other
areas fail during what I think is the authentication step. I'm trying
to debug what's going on but I need to see what is happening on the
e-mail server side. So I want to set up a test server that supports
TLS and has a debug mode so that I can see what is happening. The
received e-mail doesn't need to go anywhere, I just need to see the
connections and negotiation.
Does anyone have recommendations for a simple setup? The only tricky
part that I can see is the TLS which I hope can be solved with either
a self-signed certificate or Lets Encrypt.
Gus
--
KPLUG-***@kernel-panic.org
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
Gus Wirth
2018-08-29 02:59:53 UTC
Permalink
Post by Brian Whalen
After being a freebsd guy for awhile I switched to Linux a few years
back and am running my own server for one of my domains. In the
Ubuntu-server case, the mail-stack-delivery package was helpful.
I'll take a look at it. Although I'll have to set up a virtual machine
because all my real boxes are CentOS.

Gus
--
KPLUG-***@kernel-panic.org
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
Tony Su
2018-08-31 01:34:13 UTC
Permalink
A modification on what Kevin suggested,

I'd recommend setting up your own outbound SMTP relay (Postfix or Sendmail).
Doesn't actually have to forward anywhere if you're testing only connectivity.

Without looking at documentation,
I wouldn't know how to configure your suiteCRM, but I assume it should
be a prominent configuration option.

Else,
Kevin's suggestion is a possible option, configuring a Postfix or
Sendmail as an MTA... again, whether this can be done would have to be
found in your documentation.

Tony
Post by Gus Wirth
Post by Brian Whalen
After being a freebsd guy for awhile I switched to Linux a few years
back and am running my own server for one of my domains. In the
Ubuntu-server case, the mail-stack-delivery package was helpful.
I'll take a look at it. Although I'll have to set up a virtual machine
because all my real boxes are CentOS.
Gus
--
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
--
KPLUG-***@kernel-panic.org
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
Tony Su
2018-08-31 01:35:57 UTC
Permalink
Addendum to my last post,
Of course it's always easier to set up these kinds of alternate
network configurations as virtual machines unless you don't mind the
pain of installing/uninstalling/re-configuring on real hardware...

Tony
Post by Tony Su
A modification on what Kevin suggested,
I'd recommend setting up your own outbound SMTP relay (Postfix or Sendmail).
Doesn't actually have to forward anywhere if you're testing only connectivity.
Without looking at documentation,
I wouldn't know how to configure your suiteCRM, but I assume it should
be a prominent configuration option.
Else,
Kevin's suggestion is a possible option, configuring a Postfix or
Sendmail as an MTA... again, whether this can be done would have to be
found in your documentation.
Tony
Post by Gus Wirth
Post by Brian Whalen
After being a freebsd guy for awhile I switched to Linux a few years
back and am running my own server for one of my domains. In the
Ubuntu-server case, the mail-stack-delivery package was helpful.
I'll take a look at it. Although I'll have to set up a virtual machine
because all my real boxes are CentOS.
Gus
--
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
--
KPLUG-***@kernel-panic.org
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
Continue reading on narkive:
Loading...