Junos Automation (Scripting)
Highlighted
Junos Automation (Scripting)

How do I add SSL to a email in SLAX

05.02.17   |  
‎05-02-2017 11:08 AM
    version 1.1;

    ns curl extension = "http://xml.libslax.org/curl";

    param $server;

    match / {
        <out> {
            var $info = {
                <method> "email";
                <server> $server;
                <from> "muffin@example.com";
                <to> "phil@example.net";
                <subject> "Testing...";
                <contents> "Hello,
    This is an email.  But you know that.

    Thanks,
     Phil
    ";
            }

            var $res = curl:single($info);
            <res> {
                copy-of $res;
            }
        }
    }

 

In the above script, I want to add a username and password, and maybe a smtp port, so I can test on another smtp server.

This is related to not seeing the body in the emails, sent from our corporate Office 365 cloud server.

JNCIA-Junos
4 REPLIES
Junos Automation (Scripting)

Re: How do I add SSL to a email in SLAX

05.06.17   |  
‎05-06-2017 03:04 AM

I've not tried this with authentication before, but have you tried just adding a password parameter?

 

http://juniper.github.io/libslax/slax-manual.html#password

 

Regards,

Andy

Junos Automation (Scripting)

Re: How do I add SSL to a email in SLAX

05.19.17   |  
‎05-19-2017 10:03 AM

Andy,

 

I also found the username and password syntax, but clueless on the ssl or ttl port settings. Still trying to resolve the 

<content> problem.

 

Thanks

Tom

JNCIA-Junos
Junos Automation (Scripting)

Re: How do I add SSL to a email in SLAX

06.08.17   |  
‎06-08-2017 11:52 AM

No one has an answer, so is there any way in SPACE to add say postfix, or something that will relay my EX smtp message?

JNCIA-Junos
Junos Automation (Scripting)

Re: How do I add SSL to a email in SLAX

06.10.17   |  
‎06-10-2017 01:05 AM

Hi, 

 

I don't think that Space has that ability.

 

Regards,

Andy