<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Katrina Aquino</title>
    <description>The latest articles on DEV Community by Katrina Aquino (@kath).</description>
    <link>https://dev.to/kath</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1407334%2F749da8e6-c937-4354-bda6-e6593277a9c6.jpg</url>
      <title>DEV Community: Katrina Aquino</title>
      <link>https://dev.to/kath</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kath"/>
    <language>en</language>
    <item>
      <title>Mailbox unavailable. The server response was: 5.7.1 Service unavailable, Client host [IP ADDRESS] blocked using Spamhaus.</title>
      <dc:creator>Katrina Aquino</dc:creator>
      <pubDate>Fri, 12 Jul 2024 01:22:34 +0000</pubDate>
      <link>https://dev.to/kath/mailbox-unavailable-the-server-response-was-571-service-unavailable-client-host-ip-address-blocked-using-spamhaus-329j</link>
      <guid>https://dev.to/kath/mailbox-unavailable-the-server-response-was-571-service-unavailable-client-host-ip-address-blocked-using-spamhaus-329j</guid>
      <description>&lt;p&gt;Mailbox unavailable. The server response was: 5.7.1 Service unavailable, Client host [IP ADDRESS] blocked using Spamhaus. To request removal from this list see &lt;a href="https://www.spamhaus.org/query/ip/IP" rel="noopener noreferrer"&gt;https://www.spamhaus.org/query/ip/IP&lt;/a&gt; ADDRESS AS(1450) &lt;/p&gt;

</description>
    </item>
    <item>
      <title>The SMTP server requires a secure connection. The server response was: 5.7.57 Client not authenticated to send mail.</title>
      <dc:creator>Katrina Aquino</dc:creator>
      <pubDate>Thu, 04 Jul 2024 08:28:50 +0000</pubDate>
      <link>https://dev.to/kath/the-smtp-server-requires-a-secure-connection-the-server-response-was-5757-client-not-authenticated-to-send-mail-2k63</link>
      <guid>https://dev.to/kath/the-smtp-server-requires-a-secure-connection-the-server-response-was-5757-client-not-authenticated-to-send-mail-2k63</guid>
      <description>&lt;p&gt;Are you experincing this error code while trying to configure your custom application to integrate using Microsoft 365:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 Client not authenticated to send mail. Error: 535 5.7.139 Authentication unsuccessful, user is locked by your organization's security defaults policy. Contact your administrator.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This error means you used right settings but not suitable to the custom application and 365.&lt;/p&gt;

&lt;p&gt;If you are not familiar what are the smtp settings you can used for 3rd part and custom application to be able used 365 as email relay, Here's the reference:&lt;br&gt;
_&lt;br&gt;
&lt;a href="https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365_" rel="noopener noreferrer"&gt;https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365_&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Of course, As the  developer, email consultant or System admin. you gonna try and try different settings. &lt;/p&gt;

&lt;p&gt;To be able to solve these solutions, we need to use app password for the custom application to bypass MFA Authentication (If your custom application can't do MFA/2-factor authentication) &lt;/p&gt;

&lt;p&gt;*&lt;em&gt;Here's the procedure to be able produce *&lt;/em&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Enforce the MFA in admin center.&lt;/li&gt;
&lt;li&gt;Open the office of the user &amp;gt; Initial logo &amp;gt; view account &amp;gt; security Info &amp;gt; Add sign-in method &amp;gt; app password &amp;gt; follow the instruction of MS until the app password shows&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdlfze9awl2stbosdj88d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdlfze9awl2stbosdj88d.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Kindly take note you need to copy and store carefully the password. basically, this is will be your password for your custom application.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;We can now proceed for the SMTP settings in custom application:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;_&lt;br&gt;
_**&lt;br&gt;
`Host = "domain.mail.protection.outlook.com",&lt;br&gt;
                    Port = 25, //Recommended port is 587&lt;br&gt;
                    EnableSsl = true,&lt;br&gt;
                    DeliveryMethod = SmtpDeliveryMethod.Network,&lt;br&gt;
                    UseDefaultCredentials = false,&lt;br&gt;
                    TargetName = "STARTTLS/smtp.office365.com",&lt;br&gt;
                    Credentials = new NetworkCredential(fromAddress.Address, fromPassword),&lt;/p&gt;

&lt;p&gt;using (var client = new SmtpClient("Domain.mail.protection.outlook.com"))&lt;br&gt;
                {&lt;br&gt;
                    client.UseDefaultCredentials = false;&lt;br&gt;
                    client.Port = 587;&lt;br&gt;
                    client.Credentials = new NetworkCredential("&lt;a href="mailto:customapplication@domain.com"&gt;customapplication@domain.com&lt;/a&gt;", "app password we generated above");&lt;br&gt;
                    client.EnableSsl = true;&lt;br&gt;
 `**_&lt;br&gt;
_&lt;/p&gt;

&lt;p&gt;Then you can now test.&lt;/p&gt;

</description>
      <category>office36</category>
      <category>email</category>
      <category>customapplicatioemailrelay</category>
    </item>
    <item>
      <title>Allow specific data file in Office365 for external recipients (Status code: 550 5.0.350)</title>
      <dc:creator>Katrina Aquino</dc:creator>
      <pubDate>Fri, 05 Apr 2024 05:35:54 +0000</pubDate>
      <link>https://dev.to/kath/allow-specific-data-file-in-office365-for-external-recipients-status-code-550-50350-1a7j</link>
      <guid>https://dev.to/kath/allow-specific-data-file-in-office365-for-external-recipients-status-code-550-50350-1a7j</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn3ntqqnvj27mpl0n5qf6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn3ntqqnvj27mpl0n5qf6.png" alt="Image description" width="789" height="872"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Are you admin and someone of the organization need to send a specific data file the must be attached in email rathen uploading it to onedrive and keep receiving this even you deploy this command in powershell?&lt;br&gt;
&lt;strong&gt;_&lt;/strong&gt;&lt;br&gt;
$policy = Get-OwaMailboxPolicy [policy name]&lt;br&gt;
$allowedFileTypes = $policy.AllowedFileTypes&lt;br&gt;
$allowedFileTypes.Add(".foo")&lt;br&gt;
Set-OwaMailboxPolicy $policy -AllowedFileTypes $allowedFileTypes*&lt;em&gt;_&lt;/em&gt;*&lt;/p&gt;

&lt;p&gt;or this&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Set-OwaMailboxPolicy -Identity "" -AllowedFileTypes @{Add=".foo"}&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reference:&lt;/strong&gt; &lt;em&gt;&lt;a href="https://techcommunity.microsoft.com/t5/exchange-team-blog/changes-to-file-types-blocked-in-outlook-on-the-web/ba-p/874451" rel="noopener noreferrer"&gt;https://techcommunity.microsoft.com/t5/exchange-team-blog/changes-to-file-types-blocked-in-outlook-on-the-web/ba-p/874451&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Due of MS keeps blocking data file to secure the the tenants Worldwide. If your organization requires to receive and send specific file types that attached from Outlook then how we allow data files to not stop our users productivity and still keep our organization.&lt;/p&gt;

&lt;p&gt;Solution:&lt;/p&gt;

&lt;p&gt;Part 1: Change and add file type in Office365&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to security portal or &lt;a href="https://security.microsoft.com/" rel="noopener noreferrer"&gt;https://security.microsoft.com/&lt;/a&gt; to our browser.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fptip0fjb7eg9xvgrz32x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fptip0fjb7eg9xvgrz32x.png" alt="Image description" width="800" height="220"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Look to your right panel, search for Email &amp;amp; collaboration and tap the arrow down to show the underling setting.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhije7k2j6vuomifarxri.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhije7k2j6vuomifarxri.png" alt="Image description" width="505" height="908"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Under of email &amp;amp; collaboration, tap the policies and rules &amp;gt; threat policies &amp;gt; Anti-Malware &amp;gt; click the default policy&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn8gsq97ax1ov0wpjqp0r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn8gsq97ax1ov0wpjqp0r.png" alt="Image description" width="800" height="381"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Default policy UI will be prompt, scroll-down and tap the edit protection settings&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9mrp5uq5ncmbsxnv6bus.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9mrp5uq5ncmbsxnv6bus.png" alt="Image description" width="800" height="506"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Once we clicked, the edit protection settings  will be prompt. make sure the enable the common attachments filter is enable and under of this just tap the select file types.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgzegq2io0b5gp19jnbbd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgzegq2io0b5gp19jnbbd.png" alt="Image description" width="800" height="474"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Under of the select file types, Microsoft have default file types and add the specific file type such as .dat and done &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftyr63ctrjtzjpzknn1vx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftyr63ctrjtzjpzknn1vx.png" alt="Image description" width="800" height="424"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You go back to edit protection settings, look for the when these file types are found then select the Quarantine the message and save.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fglobnkpvz5fkflyzjzxp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fglobnkpvz5fkflyzjzxp.png" alt="Image description" width="800" height="508"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Part 2: try to send email with the specific file type attached in email.&lt;/p&gt;

&lt;p&gt;Take note: You must not receive any NDR in outlook.&lt;/p&gt;

&lt;p&gt;Part 3: Where's the email&lt;br&gt;
Now emails won't block, check to the Quarantine dashboard. &lt;/p&gt;

&lt;p&gt;Security admin center (&lt;a href="https://security.microsoft.com/" rel="noopener noreferrer"&gt;https://security.microsoft.com/&lt;/a&gt;) &amp;gt; Email &amp;amp; collaboration &amp;gt; Review &amp;gt; Quarantine &amp;gt; Approve the email.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdxruj75qmiadcptpxi2t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdxruj75qmiadcptpxi2t.png" alt="Image description" width="800" height="445"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>office365</category>
      <category>email</category>
      <category>security</category>
      <category>defender</category>
    </item>
  </channel>
</rss>
