SMTP connection to mail server.

19 views
Skip to first unread message

Cary Gordon

unread,
Aug 30, 2021, 7:18:43 PM8/30/21
to Islandora ISLE
Hi all,

How can I connect to a mail server on port 587 from the apache container? This is ISLE 7.

Thanks,

Cary

ga...@born-digital.com

unread,
Aug 31, 2021, 9:07:04 AM8/31/21
to Islandora ISLE
Hi Cary, 

Hope you are well. 

Can you expand on what your setup and goal is?

Are you attempting to setup a Drupal module that uses an external webserver on the ISLE host server? 

I can say from my experience that setting up a Drupal module like https://www.drupal.org/project/smtp works great either with SendGrid or Mailgun, or an on premise email server on ports 25, 587, 465 etc. 

Or are you literally on the Apache container using the command line and are attempting to telnet to a third party email server e.g. Gmail ?

Apologies in advance if I'm missing something obvious here. 

Thanks, 
Gavin

Cary Gordon

unread,
Aug 31, 2021, 4:38:04 PM8/31/21
to ga...@born-digital.com, Islandora ISLE
Hi Gavin,

Thanks for getting back to me.

Upon further investigation, it looks like there is an issue with the SMTP module. I will try to figure it out.

The module is returning this error: SMTP -> ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)

I logged into the Apache container, and ran this PHP script:
<?php
$ip = gethostbyname('ourmailserver.com');
echo $ip;
?>

from the command line, and it worked fine, so the problem is really not in that part of the system.

There is no problem connecting to the mail server from the server command line or from the container command line.

More digging to come.

Thanks,

Cary


--
You received this message because you are subscribed to the Google Groups "Islandora ISLE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora-isl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/islandora-isle/3db6818f-e4d1-4a41-b327-dc64db3bb8b7n%40googlegroups.com.


--
Cary Gordon
The Cherry Hill Company
818-694-1626 (mobile)
https://chillco.com
Reply all
Reply to author
Forward
0 new messages