<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Restricting sending emails to external email ids from Linux using sas program in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Restricting-sending-emails-to-external-email-ids-from-Linux/m-p/288465#M5596</link>
    <description>&lt;P&gt;I think there might be a confusion here between session encryption (such as TLS/STARTTLS) and message encryption (such as S/MIME).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code you posted uses SAS to send an email by connecting to an SMTP server, initially unencrypted on port 587, and then upgrading the connection to encrypted using STARTTLS. The transfer of the message between SAS (as a client) and the SMTP server is then over an encrypted connection. Someone on the same network that could capture the traffic would have a hard time decrypting it. However the email message itself is not encrypted. The server that received the message may not be the ultimate destination for the receipient. It may relay the message onto another server (or series of servers) before it gets to the recipient. Any of those intermediate servers can inspect the message contents. Additionally you cannot be sure that any of those intermediate servers will use TLS when passing the message on (after the initial exchange between SAS and the first server). Where this is an issue, email message encryption (such as S/MIME) can be considered. In that situation the message itself is encrypted for the recipient(s) such that only the receipient(s) should be able to decrypt it. The message may or may not pass over encrypted connections between the intermediate servers and the intermediate servers will not be able to decrypt the message contents.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My understanding is that SAS supports session encryption (TLS/STARTTLS) but not message encryption such as S/MIME.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You mentioned the code didn't work for you but you didn't post the error you got.&amp;nbsp; You may want to talk to your local email admin as they will be able to advise which ports the server will accept messages on and the protocols that it supports.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Aug 2016 08:07:51 GMT</pubDate>
    <dc:creator>PaulHomes</dc:creator>
    <dc:date>2016-08-01T08:07:51Z</dc:date>
    <item>
      <title>Restricting sending emails to external email ids from Linux using sas program</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Restricting-sending-emails-to-external-email-ids-from-Linux/m-p/288289#M5587</link>
      <description>&lt;P&gt;Hello friends&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a question how can I restrict someone sending emails to external(personal)and internal email ids from Linux server using sas program or email program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would appreciate anyone's suggestions and ideas on this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in Advance&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2016 03:51:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Restricting-sending-emails-to-external-email-ids-from-Linux/m-p/288289#M5587</guid>
      <dc:creator>sasprofile</dc:creator>
      <dc:date>2016-07-30T03:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting sending emails to external email ids from Linux using sas program</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Restricting-sending-emails-to-external-email-ids-from-Linux/m-p/288336#M5588</link>
      <description>&lt;P&gt;You want to prevent a user from programmatically sending e-mails using FILENAME EMAIL or another SMTP utility? &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think that there is a way to restrict this in SAS (t&lt;A href="http://blogs.sas.com/content/sasdummy/2014/02/21/using-lockdown-sas94/" target="_self"&gt;he LOCKDOWN option&lt;/A&gt; doesn't seem to include FILENAME EMAIL, though you could try it). &amp;nbsp;Ideally, you would restrict the SMTP server itself -- even if you prevent the SAS language from using it, seems like you're after a wider approach that would also restrict the many "built-in" tools that offer SMTP access.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2016 15:14:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Restricting-sending-emails-to-external-email-ids-from-Linux/m-p/288336#M5588</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-07-30T15:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting sending emails to external email ids from Linux using sas program</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Restricting-sending-emails-to-external-email-ids-from-Linux/m-p/288354#M5590</link>
      <description>Yes my question is,Is there any way to encrypt the Emails that are sent from SAS code,because there is a chance that emails might have sensitive data.</description>
      <pubDate>Sat, 30 Jul 2016 21:26:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Restricting-sending-emails-to-external-email-ids-from-Linux/m-p/288354#M5590</guid>
      <dc:creator>sasprofile</dc:creator>
      <dc:date>2016-07-30T21:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting sending emails to external email ids from Linux using sas program</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Restricting-sending-emails-to-external-email-ids-from-Linux/m-p/288411#M5591</link>
      <description>&lt;P&gt;Encryption of emails would be a feature of your email system - nothing to do with SAS. Talk to your email administrator.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jul 2016 19:33:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Restricting-sending-emails-to-external-email-ids-from-Linux/m-p/288411#M5591</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-07-31T19:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting sending emails to external email ids from Linux using sas program</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Restricting-sending-emails-to-external-email-ids-from-Linux/m-p/288451#M5594</link>
      <description>SASKiwi Thanks for your reply

So you are saying there is now way to encrypt the E-Mails that will be sent from SAS Codem, but I have seen from below SAS Note,There is  away.but when I used its not working may be 
am not using in the right way.

From the below SAS link it says

we can use the EMAIL access method with secure SMTP servers by specifying the Transport Layer Security (TLS) protocol in the EMAILHOST= system option. TLS encrypts data between the client and the outgoing SMTP Server. This action does not guarantee an encrypted connection between the client  and the recipient of the message. Message-level encryption and digital signing are currently not supported. For more information, see EMAILHOST= System Option in SAS System Options: Reference.


(&lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/68024/HTML/default/viewer.htm#n0ig2krarrz6vtn1aw9zzvtez4qo.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lestmtsref/68024/HTML/default/viewer.htm#n0ig2krarrz6vtn1aw9zzvtez4qo.htm&lt;/A&gt;):


so am not sure as per the above Note from SAS does this blocking the external Email id works or not,please advice me.

below is the code I tried with,but looks like its not working for me.


options emailsys = smtp
emailid = 'testemail@abc.com'
emailpw = 'test123'
emailhost = 'smtp.abc.com'
emailport = 25 ;

options emailhost=
(
"smtp.abc.com"
STARTTLS auth=LOGIN
/* your Outlook address */
id='testemail@abc.com'
/* optional: encode PW with PROC PWENCODE */
pw="test123" port=587
)
;
filename f_email email to = 'testemail@abc.com'
from = 'testemail123@abc.com'
subject = 'Automatic Email Sending Test';

data _null_;
file f_email;
put 'This is a test email with an RTF attachment via SAS programming.';
run;</description>
      <pubDate>Mon, 01 Aug 2016 06:21:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Restricting-sending-emails-to-external-email-ids-from-Linux/m-p/288451#M5594</guid>
      <dc:creator>sasprofile</dc:creator>
      <dc:date>2016-08-01T06:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting sending emails to external email ids from Linux using sas program</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Restricting-sending-emails-to-external-email-ids-from-Linux/m-p/288465#M5596</link>
      <description>&lt;P&gt;I think there might be a confusion here between session encryption (such as TLS/STARTTLS) and message encryption (such as S/MIME).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code you posted uses SAS to send an email by connecting to an SMTP server, initially unencrypted on port 587, and then upgrading the connection to encrypted using STARTTLS. The transfer of the message between SAS (as a client) and the SMTP server is then over an encrypted connection. Someone on the same network that could capture the traffic would have a hard time decrypting it. However the email message itself is not encrypted. The server that received the message may not be the ultimate destination for the receipient. It may relay the message onto another server (or series of servers) before it gets to the recipient. Any of those intermediate servers can inspect the message contents. Additionally you cannot be sure that any of those intermediate servers will use TLS when passing the message on (after the initial exchange between SAS and the first server). Where this is an issue, email message encryption (such as S/MIME) can be considered. In that situation the message itself is encrypted for the recipient(s) such that only the receipient(s) should be able to decrypt it. The message may or may not pass over encrypted connections between the intermediate servers and the intermediate servers will not be able to decrypt the message contents.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My understanding is that SAS supports session encryption (TLS/STARTTLS) but not message encryption such as S/MIME.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You mentioned the code didn't work for you but you didn't post the error you got.&amp;nbsp; You may want to talk to your local email admin as they will be able to advise which ports the server will accept messages on and the protocols that it supports.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 08:07:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Restricting-sending-emails-to-external-email-ids-from-Linux/m-p/288465#M5596</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2016-08-01T08:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting sending emails to external email ids from Linux using sas program</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Restricting-sending-emails-to-external-email-ids-from-Linux/m-p/288470#M5597</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger﻿&lt;/a&gt; - I noted that the documentation link posted below by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/6699"&gt;@sasprofile﻿&lt;/a&gt;on the filename statement email acess method states that:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;When SAS is in a locked-down state, the FILENAME statement, EMAIL access method is not available. Your server administrator can re-enable this access method so that it is accessible in the locked-down state. For more information, see SAS Processing Restrictions for Servers in a Locked-Down State in SAS Language Reference: Concepts.&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Of course, as you suggested, there may still be other ways to email SAS output - attachments via PC email clients, photos via smartphones etc. It sounds like it would be a good idea for &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/6699"&gt;@sasprofile﻿&lt;/a&gt; to talk to their in-house security team about their support and policies for outbound email monitoring and data leakage prevention in general.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 08:20:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Restricting-sending-emails-to-external-email-ids-from-Linux/m-p/288470#M5597</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2016-08-01T08:20:53Z</dc:date>
    </item>
  </channel>
</rss>

