node-red-node-email send via port 25 unauthenticated

318 views
Skip to first unread message

Simon

unread,
Jan 9, 2017, 6:22:39 PM1/9/17
to Node-RED
I need to send an email via port 25, and only specify the from address to conform to our internal mail server. It allows IP's internally to send to internal addresses so no security concerns there but I cant change any setting on the mail server end due to the other clients using it.

is there a way or another node I can use instead?

Zenofmud

unread,
Jan 10, 2017, 5:47:08 AM1/10/17
to node...@googlegroups.com
did you try using it and setting just the minimums? It will come back with an error during deploy but try it anyway and see what happens.

On Jan 9, 2017, at 6:22 PM, Simon <simon...@gmail.com> wrote:

I need to send an email via port 25, and only specify the from address to conform to our internal mail server. It allows IP's internally to send to internal addresses so no security concerns there but I cant change any setting on the mail server end due to the other clients using it.

is there a way or another node I can use instead?

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/db6c9e3b-809a-4707-a140-76020a7fe718%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrey K

unread,
Jan 10, 2017, 9:08:40 AM1/10/17
to Node-RED
Search where the module "node-red-node-email"
modify the file:
1. insert  in file 61-email.html 
in element <script type="text/x-red" data-template-name="e-mail">
insert
   <div class="form-row">
        <label for="node-input-useSSL"><i class="fa fa-lock"></i> <span data-i18n="email.label.useSSL"></span></label>
        <input type="checkbox" id="node-input-secure" style="width: auto;">
    </div>

2. replace in file 61-email.js
        var smtpTransport = nodemailer.createTransport({
            host: node.outserver,
            port: node.outport,
            secure: true,
            auth: {
                user: node.userid,
                pass: node.password
            }
        });

replace the 

        var smtpTransport = nodemailer.createTransport({
            host: node.outserver,
            port: node.outport,
            secure: node.secure, //false, //true,
            auth: {
                user: node.userid,
                pass: node.password
            }
        });

Then restart node-red

вторник, 10 января 2017 г., 2:22:39 UTC+3 пользователь Simon написал:

Dave C-J

unread,
Jan 10, 2017, 9:25:51 AM1/10/17
to node...@googlegroups.com
Actually that looks like a bug !
node.useSSL already exists - so maybe 
     secure:node.useSSL,
Is all that is needed ?

Andrey K

unread,
Jan 10, 2017, 9:37:14 AM1/10/17
to Node-RED
Only block input  SMTP
Send SMTP uses only with SSL to port 465.

вторник, 10 января 2017 г., 17:25:51 UTC+3 пользователь Dave C-J написал:
Reply all
Reply to author
Forward
0 new messages