Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - franklinfick

Pages: [1]
1
General Help & How-To / Re: SMTP with Amazon SES Problem
« on: June 11, 2016, 05:09:49 pm »

i am revisiting this topic-- as I am trying again after some years to get SES to work with my listmailpro instalation

i switched hosts

and tested the code that was provided earlier

Code: [Select]
<?php
error_reporting
(E_ALL);
$sock=fsockopen('tls://email-smtp.us-east-1.amazonaws.com',465);
if(
$sock) echo "Socket established\n"; else exit("Socket could not be established\n");
echo 
fgets($sock,1024);
echo 
"> EHLO localhost\n";
fputs($sock,"EHLO localhost\r\n");
$line='';
while(
substr($line,3,1)!==' '){
        
$line=fgets($sock,1024);
        echo 
$line;
}


this is working and not giving me any error messages..


================================


I set up my domain and emails in Amazon SES
and got my smtp credentials
--- i tested these credentials in thunderbird--
and i have no problem signing into the amazon ses server and sending email

putting the smtp credentials into listmailpro configuration screen:
testing the mail connection gives:

Testing mail servers..

[Bounce Handling]
Is enabled?  No (you should probably configure it)

[SMTP Server]
Is enabled?  Yes
Connecting to SMTP server.. Connected!
Could not say EHLO.

The SMTP server is not configured correctly. Check your settings.


============================


trying to send a mass email
(to a test list and only one test subscriber)
I get a failed error message that smtp was not set up correctly

log file shows:
> EHLO localhost





=================================



I get the same error message when testing mail settings and sending a test email to a list
when AUTH? is checked and when it is not checked...



Is there something simple that I am missing?



Franklin


2
General Help & How-To / Re: database install problem
« on: December 16, 2014, 06:30:47 am »


Big thanks to Dean

I had to move my install..  again..
this is the 3rd server I have had my LMP installed at
the first 2 servers gave me no problem..

but this 3rd..  had a small issue


thanks for helping me fix it

everything is running great now


Franklin

3
General Help & How-To / Re: database install problem
« on: December 13, 2014, 06:58:51 am »
Hi Franklin,

Your server may have a special MySQL configuration that isn't compatible with LMP. For me to assist further please submit your hosting information at http://listmailpro.com/support under the type Other/Bug Investigation.

Regards

thanks

4
General Help & How-To / database install problem
« on: December 11, 2014, 07:09:07 am »

installing on a new server and am running into a problem with the database

on a new install I get this error message:

Creating config database table lm_config - Inserting example config data.
**Error inserting example config data.


and when trying a different way--
uninstalled the database and imported the the tables from my old install
I could see all the data in listmail
but I could not add any lists, users, etc
and was getting an error message:

admin-42-You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ',, from lm_lists where listnum = ''' at line 1




thanks
Franklin

5
General Help & How-To / Re: 1and1 SMTP Question
« on: December 10, 2014, 06:52:43 am »

thanks for the response


i found that the email with 1and1.com -- on their system (nameservers)
seems to be restricting post 587 from access

and have been messing around with plesk all day
(i am familiar with cpanel...  but not plesk)

just for anyone else this might help
the mail servers on the vps are not installed by default
so you have to install them
i spent a whole bunch of hours googleing to find out what i had to do
and finally found it...

this is what you have to do:

Plesk -> Tools & Settings -> Updates & Upgrades -> Add/Remove Components

And select Postfix and Dovecot





Franklin

6
General Help & How-To / 1and1 SMTP Question
« on: December 09, 2014, 11:13:27 pm »
decided to make this a new topic


I was thinking about getting a VPS with 1and1 hosting as recomended on the hosting page

but I found this in the forum:
1and1 is blocking smtp connections from the server

-----------------------------
After many emails to 1&1 tech support and my own experience (fsockopen: connection could not be made) it is clear that they are blocking connections from the web server to the SMTP host on both ports 25 and 587.  ListMail does support SMTP authorization - it works with practically -every- other host and used to work on 1&1.  Now, however, it appears 1&1 has a new policy in place to prevent connections to SMTP made from scripts on their web servers.  This can be implemented with a local firewall or other IP-based rule.
----------------------------------------------


is this still true?
so that if I get a vps with 1and1 -- I will not be able to send mail throguh their smtp?


thanks for your input


Franklin



7
General Help & How-To / Re: SMTP with Amazon SES Problem
« on: December 09, 2014, 11:04:41 pm »


I was thinking about getting a VPS with 1and1 hosting as recomended on the hosting page

but I found this in the forum:
1and1 is blocking smtp connections from the server

-----------------------------
After many emails to 1&1 tech support and my own experience (fsockopen: connection could not be made) it is clear that they are blocking connections from the web server to the SMTP host on both ports 25 and 587.  ListMail does support SMTP authorization - it works with practically -every- other host and used to work on 1&1.  Now, however, it appears 1&1 has a new policy in place to prevent connections to SMTP made from scripts on their web servers.  This can be implemented with a local firewall or other IP-based rule.
----------------------------------------------


is this still true?
so that if I get a vps with 1and1 -- I will not be able to send mail throguh their smtp?


thanks for your input


Franklin

8
General Help & How-To / Re: SMTP with Amazon SES Problem
« on: November 23, 2014, 07:36:22 pm »

on phone support with them...

the only option they could offer me was to connect without any encryption on port 25


so it looks like my host is not able to connect to amazon ses


any recommendations on affordable hosting that will work with tls:// on port 465?


thanks

Franklin

9
General Help & How-To / Re: SMTP with Amazon SES Problem
« on: November 23, 2014, 07:06:58 pm »

thanks for your help Dean

seems I need to change hosts

here is the jist of the conversation I just had with Godaddy representative:
--------------------------
Amy -
    I apologize for any confusion and incorrect information you had received, however, within our shared hosting environments we intentionally restrict SMTP traffic. You will not be able to use a 3rd party mail server. This is done to prevent our systems from being used to send spam, or otherwise malicious messages.

franklin -
    so you are saying it is immpossible to have a web aplication that connects with amazon ses with your shared hosting plan
    franklin -
    ?

Amy -
    That is correct
   
franklin -
    and it would also be impossible to connect with any other smtp provider as well
   
franklin -
    like sendgrid
   
franklin -
    or madrill
   
Amy -
    Correct, we do provide a relay server in order to use, that would be the only way to connect through SMTP with our shared hosting.



-------------------------------------






10
General Help & How-To / Re: SMTP with Amazon SES Problem
« on: November 23, 2014, 05:54:29 pm »


on the phone with my hosting support they confirmed that port 465 is open

and now I am getting 2 errors when trying to connect throguh LMP

--------------------
[SMTP Server]
Is enabled?  Yes
Connecting to SMTP server..
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/shenlong/public_html/connect/editconf.php on line 1894

Warning: fsockopen(): unable to connect to tls://email-smtp.us-east-1.amazonaws:465 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /home/shenlong/public_html/connect/editconf.php on line 1894
Could not find server!

The SMTP server is not configured correctly. Check your settings.

______________________


11
General Help & How-To / Re: SMTP with Amazon SES Problem
« on: November 23, 2014, 05:37:02 pm »

i tested the php file on my server

here is what it returned:

------------------------
Warning: fsockopen(): unable to connect to tls://email-smtp.us-east-1.amazonaws.com:465 (Connection refused) in /home/shenlong/public_html/connect/testphp.php on line 3
Socket could not be established
---------------------------------------------------------------


is this caused because the port 465 is not open
or something else

I need to know what to contact my host about...
and I have no clue what could be causing this


thanks
Franklin

12
General Help & How-To / Re: SMTP with Amazon SES Problem
« on: November 23, 2014, 04:40:18 pm »

thanks

still getting an error message when trying to connect to: tls://email-smtp.us-east-1.amazonaws.com

with either port 465 and 2465


-----------------------
[SMTP Server]
Is enabled?  Yes
Connecting to SMTP server..
Warning: fsockopen(): unable to connect to tls://email-smtp.us-east-1.amazonaws.com:465 (Connection refused) in /home/shenlong/public_html/connect/editconf.php on line 1894
Could not find server!

The SMTP server is not configured correctly. Check your settings.
-----------------------------------


Franklin

13
General Help & How-To / Re: SMTP with Amazon SES Problem
« on: November 23, 2014, 08:02:57 am »
Hi Franklin,

It appears there are two separate issues in your post.

1. "php_network_getaddresses: getaddrinfo failed: Name or service not known" suggests a DNS error. The PHP script is not able to do a hostname lookup to determine the IP to connect to. You might talk to your host about fixing that or try connecting by IP after looking up the host yourself.

2. LMP doesn't currently have any support for STARTTLS connections, however I will consider it for the future. Until then, please use an unencrypted service if available.

Regards,

for 1-  i think that was an error i got when trying other ports to connect through
and could not connect


2- then amazon ses is not an option?
i don't think they support unencrypted connections
(at least i can not find anything in their docs about it)

please consider in the future to make LMP comparable with Amazon SES
that would be wonderful
thanks


Franklin





14
General Help & How-To / SMTP with Amazon SES Problem
« on: November 22, 2014, 07:09:46 pm »
I can not get the SMTP Setting with Amazon SES to work

I am getting this error message on the log
[23-Nov-2014 01:39:34 UTC] PHP Warning:  fsockopen(): unable to connect to      email-smtp.us-east-1.amazonaws.com:465 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /home/shenlong/public_html/connect/editconf.php on line 1894

and this on the test mail settings:
[SMTP Server]
Is enabled?  Yes
Connecting to SMTP server.. Connected!
Verifying username and password... Failed!
The SMTP server is not configured correctly. Check your settings.


I have the
host
port
Auth - login ID and Password

all filled out correctly

and I have tried every port that Amazon has in their help file on connecting to the SMTP server

///////////////////////
STARTTLS

STARTTLS is a means of upgrading an unencrypted connection to an encrypted connection. There are versions of STARTTLS for a variety of protocols; the SMTP version is defined in RFC 3207.

To set up a STARTTLS connection, the SMTP client connects to the Amazon SES SMTP endpoint on port 25, 587, or 2587, issues an EHLO command, and waits for the server to announce that it supports the STARTTLS SMTP extension. The client then issues the STARTTLS command, initiating TLS negotiation. When negotiation is complete, the client issues an EHLO command over the new encrypted connection, and the SMTP session proceeds normally.
TLS Wrapper

TLS Wrapper (also known as SMTPS or the Handshake Protocol) is a means of initiating an encrypted connection without first establishing an unencrypted connection. With TLS Wrapper, the Amazon SES SMTP endpoint does not perform TLS negotiation: it is the client's responsibility to connect to the endpoint using TLS, and to continue using TLS for the entire conversation. TLS Wrapper is an older protocol, but many clients still support it.

To set up a TLS Wrapper connection, the SMTP client connects to the Amazon SES SMTP endpoint on port 465 or 2465. The server presents its certificate, the client issues an EHLO command, and the SMTP session proceeds normally.
///////////////////////



I previously had my listmap pro installation set up to run STMP through a VPS that I had

I no longer have the VPS

and have decided to try Amazon SES

but can't get to work


Here is my SMTP log File that was written


> EHLO localhost

250-email-smtp.amazonaws.com

250-8BITMIME

250-SIZE 10485760

250-STARTTLS

250-AUTH PLAIN LOGIN

250 Ok

LM: AUTH LOGIN Detected

> AUTH LOGIN

530 Must issue a STARTTLS command first


thanks for any help in this matter

Franklin


Pages: [1]