顯示具有 MDaemon 標籤的文章。 顯示所有文章
顯示具有 MDaemon 標籤的文章。 顯示所有文章

2023年3月30日 星期四

[研究]MDaemon 22.0.3 Mail Server 30 days Trial進不去了

[研究]MDaemon 22.0.3 Mail Server 30 days Trial進不去了

2023-03-30

去年2022年12月安裝,不知是試用版過期?

還是帳號、密碼記錯、抄錯,抓個畫面留念。


(完)

2022年12月19日 星期一

[研究][ASP.NET 使用 System.Net.Mail.MailMessage 元件 + MDaemon 22.0.3 郵件伺服器寄非加簽信

[研究][ASP.NET 使用 System.Net.Mail.MailMessage 元件 + MDaemon 22.0.3 郵件伺服器寄非加簽信

2022-12-19

[研究]Alt-N MDaemon Email Server 22.0.3郵件伺服器 30 天試用版安裝 (Windows Server 2022)
http://shaurong.blogspot.com/2022/12/alt-n-mdaemon-email-server-2203-30.html
架設完成後,請允許 relay (預設不允許)

環境:Visual Studio 2022 + ASP.NET + WebForm + Web Application + C#

********************************************************************************

Default.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1.Default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:Button ID="Button_SendMail" runat="server" Text="Send" OnClick="Button_SendMail_Click" />
            <br />
            <asp:Label ID="Label_MSG1" runat="server"></asp:Label>
        </div>
    </form>
</body>
</html>



下面信件主旨、內容、寄信者、收信者、IP、寄信長號、密碼請依據實際情況修改。

Default.aspx.cs

using System;
//----------------------------------------
//1.先在專案中加入組件參考:System.Security
//2.設定 using 以下兩個命名空間 System.Security 和 System.Net.Mail.MailMessage
//using MailMessage = System.Web.Mail.MailMessage; ///過時
using MailMessage = System.Net.Mail.MailMessage;

namespace WebApplication1
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button_SendMail_Click(object sender, EventArgs e)
        {

            //https://learn.microsoft.com/zh-tw/dotnet/api/system.net.mail.mailmessage?view=netframework-4.8

            // public MailMessage (string from, string to, string subject, string body);
            MailMessage message = new MailMessage(
                "jane@contoso.com",
                "user1@contoso.com",
"Quarterly data report.", "See the attached spreadsheet.");
string smtpServer = "10.3.99.121"; int smtpPort = 25; string mailAccount = "user1"; string mailPwd = "1234"; System.Net.Mail.SmtpClient client = new System.Net.Mail.SmtpClient( smtpServer, smtpPort) { Credentials = new System.Net.NetworkCredential( mailAccount, mailPwd) }; try { // UseDefaultCredentials如果 屬性設定為 false, ,則連接到伺服器時,屬性中所 Credentials 設定的值將會用於認證。 // UseDefaultCredentials如果 屬性設定 false 為 ,而且 Credentials 屬性尚未設定,則郵件會以匿名方式傳送至伺服器。 client.UseDefaultCredentials = true; // 根據驗證程序,遠端憑證是無效的。=> 會出錯,下面這一行必須註解掉 // 原因:mail server和client使用ssl連線,但ssl憑證並沒有經過認證(ex:自簽憑證 Self Signed Certifcate) // client.EnableSsl = true; // 解決「根據驗證程序,遠端憑證是無效的。」,不管驗證結果 true 或 false,都當 true //ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true; //ServicePointManager.ServerCertificateValidationCallback += delegate { return true; }; System.Net.ServicePointManager.ServerCertificateValidationCallback += delegate { return true; }; client.EnableSsl = true; // MDaemon 22.0.3 client.Send(message); Label_MSG1.ForeColor = System.Drawing.Color.Green; Label_MSG1.Text = DateTime.Now.ToString() + " 寄信成功。"; } catch (Exception ex) { Label_MSG1.ForeColor = System.Drawing.Color.Red; Label_MSG1.Text = "不明錯誤。"; if (ex != null) Label_MSG1.Text = ex.Message.ToString(); } } } }

Relay 沒有允許 (預設)

From 的 Email 若是 MDaemon 上的,會出現錯誤。

SMTP 伺服器需要安全連接,或用戶端未經驗證。 伺服器回應為: 5.7.0 Authentication required

From 的 Email 若非 MDaemon 上的,會出現錯誤。

無法使用信箱。 伺服器回應為: 5.1.1 Recipient unknown


Relay 允許後

實際測試,client.EnableSsl = false; 也可以。

實際測試,
client.UseDefaultCredentials = false;
client.EnableSsl = true;
也可以。

實際測試,
client.UseDefaultCredentials = false;
client.EnableSsl = false;
也可以。

(完)

相關

2022年12月8日 星期四

[研究]Alt-N MDaemon Email Server 22.0.3郵件伺服器 30 天試用版安裝 (Windows Server 2022)

[研究]Alt-N MDaemon Email Server 22.0.3郵件伺服器 30 天試用版安裝 (Windows Server 2022)

2022-12-08

先說一些事,不要以為用商用付費的 EMail Server 軟體架設,就不會被圾垃郵件防護機制把信件 DROP 或退信,拋開信件主旨、內容、附件不管,Mail Server 本身最好有 Internet Public IP (真實 IP)、真實FQDN網址名稱、靜態 IP、支援DNS反查、、、等,具備愈多,寄出的信件愈不會發生  DROP 或退信或丟到垃圾郵件目錄或群組。

官方網站
https://www.altn.com/

30 Days Trial
https://www.altn.com/Downloads/MDaemon-Mail-Server-Free-Trial/

















(下圖)Domain name 建議請勿使用現在已經存在,就算你要在 MDaemon 建立的帳號是已存在 Domain name 中另一台 Mail Server 中所沒有的,狀況會很難預期

等你想刪除掉時,就算建立了其他 Domain name,會出現 The primary domain may not be deleted 訊息。想要 Edit 改名,也是不行,好想只有移除重新安裝。















(下圖)可以不填寫,只是每次登入會詢問。







(下圖)帳號管理在 Main / Account Manager

(下圖)密碼複雜度變更在 Setup / Account Settings / Passwords 畫面。


(下圖)連線安全設定在 Security / SSL & TLS / MDaemon 中


(下圖) 更多的SMTP設定



(下圖)Relay  設定在 Security / Security Settings / Relay Control 中








(完)

相關

[研究]Alt-N MDaemon Email Server 22.0.3郵件伺服器 30 天試用版安裝 (Windows Server 2022)
https://shaurong.blogspot.com/2022/12/alt-n-mdaemon-email-server-2203-30.html

[研究]Alt-N MDaemon Email Server 22.0.0郵件伺服器 30 天試用版安裝 (Windows 2019)
https://shaurong.blogspot.com/2022/05/alt-n-mdaemon-email-server-2200-30.html

[研究] Alt-N MDaemon Mail Server 18.5.1 - 30 Days Trial 安裝 (Windows 2019)
https://shaurong.blogspot.com/2018/12/alt-n-mdaemon-mail-server-1851-30-days.html

[研究] MailEnable Standard Edition 10.20 (Free) 免費郵件伺服器安裝 (Windows 2019)
https://shaurong.blogspot.com/2018/12/mailenable-standard-edition-1020-free.html

[研究] Exchange Server 2019 郵件伺服器 (Mail Server) 安裝 (Windows Server 2019)
https://shaurong.blogspot.com/2018/12/exchange-server-2019-mail-server.html

[研究] Exchange Server 2016 郵件伺服器 (Mail Server) 安裝 (Windows 2012 R2)
http://shaurong.blogspot.com/2016/05/exchange-server-2016-windows-2012-r2_13.html

[研究 Exchange Server 2013 with Service Pack 1 郵件伺服器 (Mail Server) 安裝 (Windows 2012 R2)
http://shaurong.blogspot.com/2016/05/exchange-server-2013-with-service-pack.html

[研究] IIS SMTP Server 伺服器 架設、開放 Relay 轉送 (Windows 2016)
http://shaurong.blogspot.com/2017/05/iis-smtp-server-windows-2016.html

[研究] IIS SMTP Server 伺服器 安裝 (Windows 2016)
http://shaurong.blogspot.com/2016/10/iis-smtp-server-windows-2016.html

維基百科  - 網際網路資訊服務 (Internet Information Services,簡稱IIS)
https://zh.wikipedia.org/wiki/%E7%B6%B2%E9%9A%9B%E7%B6%B2%E8%B7%AF%E8%B3%87%E8%A8%8A%E6%9C%8D%E5%8B%99

[研究] IIS SMTP Server 伺服器 安裝 (Windows 2012 R2)
http://shaurong.blogspot.com/2015/11/iis-smtp-server-windows-2012-r2.html

[研究] IIS SMTP Server 伺服器 安裝 (Windows 2008 R2)
http://shaurong.blogspot.com/2015/11/iis-smtp-server-windows-2008-r2.html

[研究] EVO郵件伺服器(EVO Mail Server)v3.0.60 免費14天試用版 試用
http://shaurong.blogspot.com/2018/04/evoevo-mail-serverv3060-14.html

[研究] Pegasus Mercury32 Mail Transport System 免費郵件伺服器 v4.80
http://shaurong.blogspot.com/2016/08/pegasus-mercury32-mail-transport-system.html

[研究] AXIGEN Mail Server 10.0.0 for Windows x64 郵件伺服器 - 30天試用版 (Windows 2012 R2)
http://shaurong.blogspot.com/2016/08/axigen-mail-server-1000-for-windows-x64.html

[研究] AXIGEN Mail Server 8.2.0 for Windows x64 郵件伺服器 - 30天試用版
http://shaurong.blogspot.com/2015/05/axigen-mail-server-820-for-windows-x64.html

[研究] CommuniGate Pro Free Mail Server 6.1.11 免費郵件伺服器
http://shaurong.blogspot.com/2016/08/hmailserver-565-windows-2012-r2.html

[研究] hMailServer 5.6.7免費郵件伺服器 ( Free Mail Server ) 架設 (Windows 2019)
http://shaurong.blogspot.com/2018/12/hmailserver-567-free-mail-server.html

[研究] hMailServer 5.6.5免費郵件伺服器 ( Free Mail Server ) 架設 (Windows 2012 R2)
http://shaurong.blogspot.com/2016/08/hmailserver-565-windows-2012-r2.html

[研究] mailEnable Standard Edition 9.16 (Free) 免費郵件伺服器試用 (Windows 2012 R2)
http://shaurong.blogspot.com/2016/08/mailenable-standard-edition-916-free_18.html

[研究] mailEnable Standard Edition 8.60 (Free) 免費郵件伺服器試用
http://shaurong.blogspot.tw/2015/05/mailenable-standard-edition-860-free.html

[研究] ArGoSoft Mail Server Freeware 1.8.8.8 免費郵件伺服器
http://shaurong.blogspot.com/2016/08/argosoft-mail-server-freeware-1888.html

2022年5月26日 星期四

[研究]Alt-N MDaemon Email Server 22.0.0郵件伺服器 30 天試用版安裝 (Windows 2019)

[研究]Alt-N MDaemon Email Server 22.0.0郵件伺服器 30 天試用版安裝 (Windows 2019)

2022-05-26

官方網站
https://www.altn.com/

30 Days Trial,MDaemon 22.0.0 - May 17, 2022
https://www.altn.com/Downloads/MDaemon-Mail-Server-Free-Trial/

畫面和操作和 18.5.1 乍看相同,不詳細抓圖

[研究] Alt-N MDaemon Mail Server 18.5.1 - 30 Days Trial 安裝 (Windows 2019)
https://shaurong.blogspot.com/2018/12/alt-n-mdaemon-mail-server-1851-30-days.html




(完)

相關

[研究]Alt-N MDaemon Email Server 22.0.0郵件伺服器 30 天試用版安裝 (Windows 2019)
https://shaurong.blogspot.com/2022/05/alt-n-mdaemon-email-server-2200-30.html

[研究] Alt-N MDaemon Mail Server 18.5.1 - 30 Days Trial 安裝 (Windows 2019)
https://shaurong.blogspot.com/2018/12/alt-n-mdaemon-mail-server-1851-30-days.html

[研究] MailEnable Standard Edition 10.20 (Free) 免費郵件伺服器安裝 (Windows 2019)
https://shaurong.blogspot.com/2018/12/mailenable-standard-edition-1020-free.html

[研究] Exchange Server 2019 郵件伺服器 (Mail Server) 安裝 (Windows Server 2019)
https://shaurong.blogspot.com/2018/12/exchange-server-2019-mail-server.html

[研究] Exchange Server 2016 郵件伺服器 (Mail Server) 安裝 (Windows 2012 R2)
http://shaurong.blogspot.com/2016/05/exchange-server-2016-windows-2012-r2_13.html

[研究 Exchange Server 2013 with Service Pack 1 郵件伺服器 (Mail Server) 安裝 (Windows 2012 R2)
http://shaurong.blogspot.com/2016/05/exchange-server-2013-with-service-pack.html

[研究] IIS SMTP Server 伺服器 架設、開放 Relay 轉送 (Windows 2016)
http://shaurong.blogspot.com/2017/05/iis-smtp-server-windows-2016.html

[研究] IIS SMTP Server 伺服器 安裝 (Windows 2016)
http://shaurong.blogspot.com/2016/10/iis-smtp-server-windows-2016.html

維基百科  - 網際網路資訊服務 (Internet Information Services,簡稱IIS)
https://zh.wikipedia.org/wiki/%E7%B6%B2%E9%9A%9B%E7%B6%B2%E8%B7%AF%E8%B3%87%E8%A8%8A%E6%9C%8D%E5%8B%99

[研究] IIS SMTP Server 伺服器 安裝 (Windows 2012 R2)
http://shaurong.blogspot.com/2015/11/iis-smtp-server-windows-2012-r2.html

[研究] IIS SMTP Server 伺服器 安裝 (Windows 2008 R2)
http://shaurong.blogspot.com/2015/11/iis-smtp-server-windows-2008-r2.html

[研究] EVO郵件伺服器(EVO Mail Server)v3.0.60 免費14天試用版 試用
http://shaurong.blogspot.com/2018/04/evoevo-mail-serverv3060-14.html

[研究] Pegasus Mercury32 Mail Transport System 免費郵件伺服器 v4.80
http://shaurong.blogspot.com/2016/08/pegasus-mercury32-mail-transport-system.html

[研究] AXIGEN Mail Server 10.0.0 for Windows x64 郵件伺服器 - 30天試用版 (Windows 2012 R2)
http://shaurong.blogspot.com/2016/08/axigen-mail-server-1000-for-windows-x64.html

[研究] AXIGEN Mail Server 8.2.0 for Windows x64 郵件伺服器 - 30天試用版
http://shaurong.blogspot.com/2015/05/axigen-mail-server-820-for-windows-x64.html

[研究] CommuniGate Pro Free Mail Server 6.1.11 免費郵件伺服器
http://shaurong.blogspot.com/2016/08/hmailserver-565-windows-2012-r2.html

[研究] hMailServer 5.6.7免費郵件伺服器 ( Free Mail Server ) 架設 (Windows 2019)
http://shaurong.blogspot.com/2018/12/hmailserver-567-free-mail-server.html

[研究] hMailServer 5.6.5免費郵件伺服器 ( Free Mail Server ) 架設 (Windows 2012 R2)
http://shaurong.blogspot.com/2016/08/hmailserver-565-windows-2012-r2.html

[研究] mailEnable Standard Edition 9.16 (Free) 免費郵件伺服器試用 (Windows 2012 R2)
http://shaurong.blogspot.com/2016/08/mailenable-standard-edition-916-free_18.html

[研究] mailEnable Standard Edition 8.60 (Free) 免費郵件伺服器試用
http://shaurong.blogspot.tw/2015/05/mailenable-standard-edition-860-free.html

[研究] ArGoSoft Mail Server Freeware 1.8.8.8 免費郵件伺服器
http://shaurong.blogspot.com/2016/08/argosoft-mail-server-freeware-1888.html