<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="th">
	<id>https://wiki.thnic.or.th/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nattawut</id>
	<title>Wiki_EAI - ส่วนร่วมของผู้ใช้ [th]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.thnic.or.th/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nattawut"/>
	<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/th/%E0%B8%9E%E0%B8%B4%E0%B9%80%E0%B8%A8%E0%B8%A9:%E0%B9%80%E0%B8%A3%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%87%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B9%80%E0%B8%82%E0%B8%B5%E0%B8%A2%E0%B8%99/Nattawut"/>
	<updated>2026-10-23T05:21:30Z</updated>
	<subtitle>ส่วนร่วมของผู้ใช้</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=Main_Page&amp;diff=73</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=Main_Page&amp;diff=73"/>
		<updated>2017-09-25T03:33:43Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: /* การติดตั้งอีเมลภาษาท้องถิ่น กึ่ง */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== EAI คืออะไร ==&lt;br /&gt;
*[[คำนิยามของ RFC]]&lt;br /&gt;
*[[อนุญาตให้ใช้งาน EAI อย่างไร - วิธีการของเรา]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== การติดตั้งอีเมลภาษาท้องถิ่น ==&lt;br /&gt;
*[[การติดตั้งขั้นพื้นฐาน]] -  รองรับ SMTPUTF8, SMTP Auth (unencrypted &amp;amp; TLS), imap/pop3 (unencrypted &amp;amp;TLS)&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 1]] - ตั้งค่า Postfix ให้เพิ่ม SMTPUTF8 อัตโนมัติเมื่อทำการส่ง EAI Address โดยใช้ Pipe Filter&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 2]]- ตั้งค่า Postfix ให้แก้ไข ที่อยู่ email ของผู้ส่งเมื่อทำการส่งไปยัง mail server ที่ไม่ได้เปิดใช้งาน EAI โดยใช้ Pipe Filter &lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 3]] - รองรับ Multiple virtual domain&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! การติดตั้ง !! LOCAL EAI   !! SEND TO NON-EAI AS EAI!! RECEIVE EAI MAIL !! REPLY TO EAI WITH NON-EAI MAIL CLIENT !! REPLY TO EAI BY NON-EAI WEBMAIL || REPLY TO EAI BY MODIFIED WEBMAIL || RECEIVE/REPLY/SEND using Gmail as a Client&lt;br /&gt;
|- &lt;br /&gt;
| การติดตั้งขั้นพื้นฐาน      || NO   || NO       ||      YES  || NO    ||  NO || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 1  || NO   || NO       ||      YES || YES *  || YES*  || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 2  || YES  ||         YES||     YES||         YES* || YES*      || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 3  || -    ||         -||     -||          -||        || YES|| YES&lt;br /&gt;
|}&lt;br /&gt;
&amp;amp;nbsp;*วิธีนี้จะใช้ได้กับ Mail client ที่อนุญาตให้ใช้ตัวอักษรที่เป็น NON-ASCII หรือ ที่อยู่ email ที่เป็น NON-ASCII จะไม่กลายเป็นตัวอักษรที่อ่านไม่ออก&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Mail Client ==&lt;br /&gt;
 Outlook 2016   - (Base Installation)Send to EAI as NON EAI (address is copy pasted) - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Receive from EAI as NON EAI - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Reply From EAI as NON EAI - No (The EAI email address is garbled when received) using Coremail Server (Receiving)&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Webmail ==&lt;br /&gt;
&lt;br /&gt;
ณ เวลาที่เขียนนี้ ยังไม่มี webmail ตัวไหนที่สามารถใช้งานได้&lt;br /&gt;
&lt;br /&gt;
 NONE&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Gmail เพื่อให้ทำงานเป็น EAI Client ==&lt;br /&gt;
Gmail เป็นตัวเลือกที่ดีที่สุดที่จะใช้เป็น Client&lt;br /&gt;
  &lt;br /&gt;
 NONE&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Outlook 2016 ==&lt;br /&gt;
&lt;br /&gt;
 More Settings-&amp;gt; Outgoing Server -&amp;gt; Checked - My Outgoing server(SMTP) requires authentication&lt;br /&gt;
 More Settings-&amp;gt; Advance -&amp;gt; POP3 110, SMTP 25 , Use the following type of encrypted connection TLS&lt;br /&gt;
&lt;br /&gt;
== รายการของ Scripts  ==&lt;br /&gt;
* [http://guides.thnic.or.th/eai-setup-guidelines-th/files/squirrelmail.zip Modified Squirrelmail]&lt;br /&gt;
* [https://github.com/padillareyj/eaifilter EAI Filter Scripts]&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=Main_Page&amp;diff=72</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=Main_Page&amp;diff=72"/>
		<updated>2017-09-25T03:33:28Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: /* การติดตั้งอีเมลภาษาท้องถิ่น */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== EAI คืออะไร ==&lt;br /&gt;
*[[คำนิยามของ RFC]]&lt;br /&gt;
*[[อนุญาตให้ใช้งาน EAI อย่างไร - วิธีการของเรา]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== การติดตั้งอีเมลภาษาท้องถิ่น กึ่ง==&lt;br /&gt;
*[[การติดตั้งขั้นพื้นฐาน]] -  รองรับ SMTPUTF8, SMTP Auth (unencrypted &amp;amp; TLS), imap/pop3 (unencrypted &amp;amp;TLS)&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 1]] - ตั้งค่า Postfix ให้เพิ่ม SMTPUTF8 อัตโนมัติเมื่อทำการส่ง EAI Address โดยใช้ Pipe Filter&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 2]]- ตั้งค่า Postfix ให้แก้ไข ที่อยู่ email ของผู้ส่งเมื่อทำการส่งไปยัง mail server ที่ไม่ได้เปิดใช้งาน EAI โดยใช้ Pipe Filter &lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 3]] - รองรับ Multiple virtual domain&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! การติดตั้ง !! LOCAL EAI   !! SEND TO NON-EAI AS EAI!! RECEIVE EAI MAIL !! REPLY TO EAI WITH NON-EAI MAIL CLIENT !! REPLY TO EAI BY NON-EAI WEBMAIL || REPLY TO EAI BY MODIFIED WEBMAIL || RECEIVE/REPLY/SEND using Gmail as a Client&lt;br /&gt;
|- &lt;br /&gt;
| การติดตั้งขั้นพื้นฐาน      || NO   || NO       ||      YES  || NO    ||  NO || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 1  || NO   || NO       ||      YES || YES *  || YES*  || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 2  || YES  ||         YES||     YES||         YES* || YES*      || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 3  || -    ||         -||     -||          -||        || YES|| YES&lt;br /&gt;
|}&lt;br /&gt;
&amp;amp;nbsp;*วิธีนี้จะใช้ได้กับ Mail client ที่อนุญาตให้ใช้ตัวอักษรที่เป็น NON-ASCII หรือ ที่อยู่ email ที่เป็น NON-ASCII จะไม่กลายเป็นตัวอักษรที่อ่านไม่ออก&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Mail Client ==&lt;br /&gt;
 Outlook 2016   - (Base Installation)Send to EAI as NON EAI (address is copy pasted) - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Receive from EAI as NON EAI - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Reply From EAI as NON EAI - No (The EAI email address is garbled when received) using Coremail Server (Receiving)&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Webmail ==&lt;br /&gt;
&lt;br /&gt;
ณ เวลาที่เขียนนี้ ยังไม่มี webmail ตัวไหนที่สามารถใช้งานได้&lt;br /&gt;
&lt;br /&gt;
 NONE&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Gmail เพื่อให้ทำงานเป็น EAI Client ==&lt;br /&gt;
Gmail เป็นตัวเลือกที่ดีที่สุดที่จะใช้เป็น Client&lt;br /&gt;
  &lt;br /&gt;
 NONE&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Outlook 2016 ==&lt;br /&gt;
&lt;br /&gt;
 More Settings-&amp;gt; Outgoing Server -&amp;gt; Checked - My Outgoing server(SMTP) requires authentication&lt;br /&gt;
 More Settings-&amp;gt; Advance -&amp;gt; POP3 110, SMTP 25 , Use the following type of encrypted connection TLS&lt;br /&gt;
&lt;br /&gt;
== รายการของ Scripts  ==&lt;br /&gt;
* [http://guides.thnic.or.th/eai-setup-guidelines-th/files/squirrelmail.zip Modified Squirrelmail]&lt;br /&gt;
* [https://github.com/padillareyj/eaifilter EAI Filter Scripts]&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=Main_Page&amp;diff=71</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=Main_Page&amp;diff=71"/>
		<updated>2017-09-25T03:30:58Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: /* การติดตั้งอีเมลภาษาท้องถิ่น */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== EAI คืออะไร ==&lt;br /&gt;
*[[คำนิยามของ RFC]]&lt;br /&gt;
*[[อนุญาตให้ใช้งาน EAI อย่างไร - วิธีการของเรา]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 การติดตั้งอีเมลภาษาท้องถิ่น &lt;br /&gt;
*[[การติดตั้งขั้นพื้นฐาน]] -  รองรับ SMTPUTF8, SMTP Auth (unencrypted &amp;amp; TLS), imap/pop3 (unencrypted &amp;amp;TLS)&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 1]] - ตั้งค่า Postfix ให้เพิ่ม SMTPUTF8 อัตโนมัติเมื่อทำการส่ง EAI Address โดยใช้ Pipe Filter&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 2]]- ตั้งค่า Postfix ให้แก้ไข ที่อยู่ email ของผู้ส่งเมื่อทำการส่งไปยัง mail server ที่ไม่ได้เปิดใช้งาน EAI โดยใช้ Pipe Filter &lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 3]] - รองรับ Multiple virtual domain&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! การติดตั้ง !! LOCAL EAI   !! SEND TO NON-EAI AS EAI!! RECEIVE EAI MAIL !! REPLY TO EAI WITH NON-EAI MAIL CLIENT !! REPLY TO EAI BY NON-EAI WEBMAIL || REPLY TO EAI BY MODIFIED WEBMAIL || RECEIVE/REPLY/SEND using Gmail as a Client&lt;br /&gt;
|- &lt;br /&gt;
| การติดตั้งขั้นพื้นฐาน      || NO   || NO       ||      YES  || NO    ||  NO || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 1  || NO   || NO       ||      YES || YES *  || YES*  || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 2  || YES  ||         YES||     YES||         YES* || YES*      || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 3  || -    ||         -||     -||          -||        || YES|| YES&lt;br /&gt;
|}&lt;br /&gt;
&amp;amp;nbsp;*วิธีนี้จะใช้ได้กับ Mail client ที่อนุญาตให้ใช้ตัวอักษรที่เป็น NON-ASCII หรือ ที่อยู่ email ที่เป็น NON-ASCII จะไม่กลายเป็นตัวอักษรที่อ่านไม่ออก&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Mail Client ==&lt;br /&gt;
 Outlook 2016   - (Base Installation)Send to EAI as NON EAI (address is copy pasted) - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Receive from EAI as NON EAI - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Reply From EAI as NON EAI - No (The EAI email address is garbled when received) using Coremail Server (Receiving)&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Webmail ==&lt;br /&gt;
&lt;br /&gt;
ณ เวลาที่เขียนนี้ ยังไม่มี webmail ตัวไหนที่สามารถใช้งานได้&lt;br /&gt;
&lt;br /&gt;
 NONE&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Gmail เพื่อให้ทำงานเป็น EAI Client ==&lt;br /&gt;
Gmail เป็นตัวเลือกที่ดีที่สุดที่จะใช้เป็น Client&lt;br /&gt;
  &lt;br /&gt;
 NONE&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Outlook 2016 ==&lt;br /&gt;
&lt;br /&gt;
 More Settings-&amp;gt; Outgoing Server -&amp;gt; Checked - My Outgoing server(SMTP) requires authentication&lt;br /&gt;
 More Settings-&amp;gt; Advance -&amp;gt; POP3 110, SMTP 25 , Use the following type of encrypted connection TLS&lt;br /&gt;
&lt;br /&gt;
== รายการของ Scripts  ==&lt;br /&gt;
* [http://guides.thnic.or.th/eai-setup-guidelines-th/files/squirrelmail.zip Modified Squirrelmail]&lt;br /&gt;
* [https://github.com/padillareyj/eaifilter EAI Filter Scripts]&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=Main_Page&amp;diff=70</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=Main_Page&amp;diff=70"/>
		<updated>2017-09-25T03:29:03Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: /* การติดตั้งอีเมลภาษาท้องถิ่น */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== EAI คืออะไร ==&lt;br /&gt;
*[[คำนิยามของ RFC]]&lt;br /&gt;
*[[อนุญาตให้ใช้งาน EAI อย่างไร - วิธีการของเรา]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== การติดตั้งอีเมลภาษาท้องถิ่น ==&lt;br /&gt;
*[[การติดตั้งขั้นพื้นฐาน]] -  รองรับ SMTPUTF8, SMTP Auth (unencrypted &amp;amp; TLS), imap/pop3 (unencrypted &amp;amp;TLS)&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 1]] - ตั้งค่า Postfix ให้เพิ่ม SMTPUTF8 อัตโนมัติเมื่อทำการส่ง EAI Address โดยใช้ Pipe Filter&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 2]]- ตั้งค่า Postfix ให้แก้ไข ที่อยู่ email ของผู้ส่งเมื่อทำการส่งไปยัง mail server ที่ไม่ได้เปิดใช้งาน EAI โดยใช้ Pipe Filter &lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 3]] - รองรับ Multiple virtual domain&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! การติดตั้ง !! LOCAL EAI   !! SEND TO NON-EAI AS EAI!! RECEIVE EAI MAIL !! REPLY TO EAI WITH NON-EAI MAIL CLIENT !! REPLY TO EAI BY NON-EAI WEBMAIL || REPLY TO EAI BY MODIFIED WEBMAIL || RECEIVE/REPLY/SEND using Gmail as a Client&lt;br /&gt;
|- &lt;br /&gt;
| การติดตั้งขั้นพื้นฐาน      || NO   || NO       ||      YES  || NO    ||  NO || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 1  || NO   || NO       ||      YES || YES *  || YES*  || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 2  || YES  ||         YES||     YES||         YES* || YES*      || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 3  || -    ||         -||     -||          -||        || YES|| YES&lt;br /&gt;
|}&lt;br /&gt;
&amp;amp;nbsp;*วิธีนี้จะใช้ได้กับ Mail client ที่อนุญาตให้ใช้ตัวอักษรที่เป็น NON-ASCII หรือ ที่อยู่ email ที่เป็น NON-ASCII จะไม่กลายเป็นตัวอักษรที่อ่านไม่ออก&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Mail Client ==&lt;br /&gt;
 Outlook 2016   - (Base Installation)Send to EAI as NON EAI (address is copy pasted) - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Receive from EAI as NON EAI - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Reply From EAI as NON EAI - No (The EAI email address is garbled when received) using Coremail Server (Receiving)&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Webmail ==&lt;br /&gt;
&lt;br /&gt;
ณ เวลาที่เขียนนี้ ยังไม่มี webmail ตัวไหนที่สามารถใช้งานได้&lt;br /&gt;
&lt;br /&gt;
 NONE&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Gmail เพื่อให้ทำงานเป็น EAI Client ==&lt;br /&gt;
Gmail เป็นตัวเลือกที่ดีที่สุดที่จะใช้เป็น Client&lt;br /&gt;
  &lt;br /&gt;
 NONE&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Outlook 2016 ==&lt;br /&gt;
&lt;br /&gt;
 More Settings-&amp;gt; Outgoing Server -&amp;gt; Checked - My Outgoing server(SMTP) requires authentication&lt;br /&gt;
 More Settings-&amp;gt; Advance -&amp;gt; POP3 110, SMTP 25 , Use the following type of encrypted connection TLS&lt;br /&gt;
&lt;br /&gt;
== รายการของ Scripts  ==&lt;br /&gt;
* [http://guides.thnic.or.th/eai-setup-guidelines-th/files/squirrelmail.zip Modified Squirrelmail]&lt;br /&gt;
* [https://github.com/padillareyj/eaifilter EAI Filter Scripts]&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=Main_Page&amp;diff=69</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=Main_Page&amp;diff=69"/>
		<updated>2017-09-25T03:27:44Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: /* การติดตั้ง Email สากล */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== EAI คืออะไร ==&lt;br /&gt;
*[[คำนิยามของ RFC]]&lt;br /&gt;
*[[อนุญาตให้ใช้งาน EAI อย่างไร - วิธีการของเรา]]&lt;br /&gt;
&lt;br /&gt;
== การติดตั้งอีเมลภาษาท้องถิ่น ==&lt;br /&gt;
*[[การติดตั้งขั้นพื้นฐาน]] -  รองรับ SMTPUTF8, SMTP Auth (unencrypted &amp;amp; TLS), imap/pop3 (unencrypted &amp;amp;TLS)&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 1]] - ตั้งค่า Postfix ให้เพิ่ม SMTPUTF8 อัตโนมัติเมื่อทำการส่ง EAI Address โดยใช้ Pipe Filter&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 2]]- ตั้งค่า Postfix ให้แก้ไข ที่อยู่ email ของผู้ส่งเมื่อทำการส่งไปยัง mail server ที่ไม่ได้เปิดใช้งาน EAI โดยใช้ Pipe Filter &lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 3]] - รองรับ Multiple virtual domain&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! การติดตั้ง !! LOCAL EAI   !! SEND TO NON-EAI AS EAI!! RECEIVE EAI MAIL !! REPLY TO EAI WITH NON-EAI MAIL CLIENT !! REPLY TO EAI BY NON-EAI WEBMAIL || REPLY TO EAI BY MODIFIED WEBMAIL || RECEIVE/REPLY/SEND using Gmail as a Client&lt;br /&gt;
|- &lt;br /&gt;
| การติดตั้งขั้นพื้นฐาน      || NO   || NO       ||      YES  || NO    ||  NO || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 1  || NO   || NO       ||      YES || YES *  || YES*  || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 2  || YES  ||         YES||     YES||         YES* || YES*      || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 3  || -    ||         -||     -||          -||        || YES|| YES&lt;br /&gt;
|}&lt;br /&gt;
&amp;amp;nbsp;*วิธีนี้จะใช้ได้กับ Mail client ที่อนุญาตให้ใช้ตัวอักษรที่เป็น NON-ASCII หรือ ที่อยู่ email ที่เป็น NON-ASCII จะไม่กลายเป็นตัวอักษรที่อ่านไม่ออก&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Mail Client ==&lt;br /&gt;
 Outlook 2016   - (Base Installation)Send to EAI as NON EAI (address is copy pasted) - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Receive from EAI as NON EAI - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Reply From EAI as NON EAI - No (The EAI email address is garbled when received) using Coremail Server (Receiving)&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Webmail ==&lt;br /&gt;
&lt;br /&gt;
ณ เวลาที่เขียนนี้ ยังไม่มี webmail ตัวไหนที่สามารถใช้งานได้&lt;br /&gt;
&lt;br /&gt;
 NONE&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Gmail เพื่อให้ทำงานเป็น EAI Client ==&lt;br /&gt;
Gmail เป็นตัวเลือกที่ดีที่สุดที่จะใช้เป็น Client&lt;br /&gt;
  &lt;br /&gt;
 NONE&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Outlook 2016 ==&lt;br /&gt;
&lt;br /&gt;
 More Settings-&amp;gt; Outgoing Server -&amp;gt; Checked - My Outgoing server(SMTP) requires authentication&lt;br /&gt;
 More Settings-&amp;gt; Advance -&amp;gt; POP3 110, SMTP 25 , Use the following type of encrypted connection TLS&lt;br /&gt;
&lt;br /&gt;
== รายการของ Scripts  ==&lt;br /&gt;
* [http://guides.thnic.or.th/eai-setup-guidelines-th/files/squirrelmail.zip Modified Squirrelmail]&lt;br /&gt;
* [https://github.com/padillareyj/eaifilter EAI Filter Scripts]&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=Main_Page&amp;diff=68</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=Main_Page&amp;diff=68"/>
		<updated>2017-07-27T05:27:45Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== EAI คืออะไร ==&lt;br /&gt;
*[[คำนิยามของ RFC]]&lt;br /&gt;
*[[อนุญาตให้ใช้งาน EAI อย่างไร - วิธีการของเรา]]&lt;br /&gt;
&lt;br /&gt;
== การติดตั้ง Email สากล ==&lt;br /&gt;
*[[การติดตั้งขั้นพื้นฐาน]] -  รองรับ SMTPUTF8, SMTP Auth (unencrypted &amp;amp; TLS), imap/pop3 (unencrypted &amp;amp;TLS)&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 1]] - ตั้งค่า Postfix ให้เพิ่ม SMTPUTF8 อัตโนมัติเมื่อทำการส่ง EAI Address โดยใช้ Pipe Filter&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 2]]- ตั้งค่า Postfix ให้แก้ไข ที่อยู่ email ของผู้ส่งเมื่อทำการส่งไปยัง mail server ที่ไม่ได้เปิดใช้งาน EAI โดยใช้ Pipe Filter &lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 3]] - รองรับ Multiple virtual domain&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! การติดตั้ง !! LOCAL EAI   !! SEND TO NON-EAI AS EAI!! RECEIVE EAI MAIL !! REPLY TO EAI WITH NON-EAI MAIL CLIENT !! REPLY TO EAI BY NON-EAI WEBMAIL || REPLY TO EAI BY MODIFIED WEBMAIL || RECEIVE/REPLY/SEND using Gmail as a Client&lt;br /&gt;
|- &lt;br /&gt;
| การติดตั้งขั้นพื้นฐาน      || NO   || NO       ||      YES  || NO    ||  NO || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 1  || NO   || NO       ||      YES || YES *  || YES*  || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 2  || YES  ||         YES||     YES||         YES* || YES*      || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 3  || -    ||         -||     -||          -||        || YES|| YES&lt;br /&gt;
|}&lt;br /&gt;
&amp;amp;nbsp;*วิธีนี้จะใช้ได้กับ Mail client ที่อนุญาตให้ใช้ตัวอักษรที่เป็น NON-ASCII หรือ ที่อยู่ email ที่เป็น NON-ASCII จะไม่กลายเป็นตัวอักษรที่อ่านไม่ออก&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Mail Client ==&lt;br /&gt;
 Outlook 2016   - (Base Installation)Send to EAI as NON EAI (address is copy pasted) - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Receive from EAI as NON EAI - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Reply From EAI as NON EAI - No (The EAI email address is garbled when received) using Coremail Server (Receiving)&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Webmail ==&lt;br /&gt;
&lt;br /&gt;
ณ เวลาที่เขียนนี้ ยังไม่มี webmail ตัวไหนที่สามารถใช้งานได้&lt;br /&gt;
&lt;br /&gt;
 NONE&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Gmail เพื่อให้ทำงานเป็น EAI Client ==&lt;br /&gt;
Gmail เป็นตัวเลือกที่ดีที่สุดที่จะใช้เป็น Client&lt;br /&gt;
  &lt;br /&gt;
 NONE&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Outlook 2016 ==&lt;br /&gt;
&lt;br /&gt;
 More Settings-&amp;gt; Outgoing Server -&amp;gt; Checked - My Outgoing server(SMTP) requires authentication&lt;br /&gt;
 More Settings-&amp;gt; Advance -&amp;gt; POP3 110, SMTP 25 , Use the following type of encrypted connection TLS&lt;br /&gt;
&lt;br /&gt;
== รายการของ Scripts  ==&lt;br /&gt;
* [http://guides.thnic.or.th/eai-setup-guidelines-th/files/squirrelmail.zip Modified Squirrelmail]&lt;br /&gt;
* [https://github.com/padillareyj/eaifilter EAI Filter Scripts]&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=Main_Page&amp;diff=67</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=Main_Page&amp;diff=67"/>
		<updated>2017-07-27T05:25:09Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== EAI คืออะไร ==&lt;br /&gt;
*[[คำนิยามของ RFC]]&lt;br /&gt;
*[[อนุญาตให้ใช้งาน EAI อย่างไร - วิธีการของเรา]]&lt;br /&gt;
&lt;br /&gt;
== การติดตั้ง Email สากล ==&lt;br /&gt;
*[[การติดตั้งขั้นพื้นฐาน]] -  รองรับ SMTPUTF8, SMTP Auth (unencrypted &amp;amp; TLS), imap/pop3 (unencrypted &amp;amp;TLS)&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 1]] - ตั้งค่า Postfix ให้เพิ่ม SMTPUTF8 อัตโนมัติเมื่อทำการส่ง EAI Address โดยใช้ Pipe Filter&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 2]]- ตั้งค่า Postfix ให้แก้ไข ที่อยู่ email ของผู้ส่งเมื่อทำการส่งไปยัง mail server ที่ไม่ได้เปิดใช้งาน EAI โดยใช้ Pipe Filter &lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 3]] - รองรับ Multiple virtual domain&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! การติดตั้ง !! LOCAL EAI   !! SEND TO NON-EAI AS EAI!! RECEIVE EAI MAIL !! REPLY TO EAI WITH NON-EAI MAIL CLIENT !! REPLY TO EAI BY NON-EAI WEBMAIL || REPLY TO EAI BY MODIFIED WEBMAIL || RECEIVE/REPLY/SEND using Gmail as a Client&lt;br /&gt;
|- &lt;br /&gt;
| การติดตั้งขั้นพื้นฐาน      || NO   || NO       ||      YES  || NO    ||  NO || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 1  || NO   || NO       ||      YES || YES *  || YES*  || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 2  || YES  ||         YES||     YES||         YES* || YES*      || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 3  || -    ||         -||     -||          -||        || YES|| YES&lt;br /&gt;
|}&lt;br /&gt;
&amp;amp;nbsp;*วิธีนี้จะใช้ได้กับ Mail client ที่อนุญาตให้ใช้ตัวอักษรที่เป็น NON-ASCII หรือ ที่อยู่ email ที่เป็น NON-ASCII จะไม่กลายเป็นตัวอักษรที่อ่านไม่ออก&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Mail Client ==&lt;br /&gt;
 Outlook 2016   - (Base Installation)Send to EAI as NON EAI (address is copy pasted) - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Receive from EAI as NON EAI - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Reply From EAI as NON EAI - No (The EAI email address is garbled when received) using Coremail Server (Receiving)&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Webmail ==&lt;br /&gt;
&lt;br /&gt;
ณ เวลาที่เขียนนี้ ยังไม่มี webmail ตัวไหนที่สามารถใช้งานได้&lt;br /&gt;
&lt;br /&gt;
 NONE&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Gmail เพื่อให้ทำงานเป็น EAI Client ==&lt;br /&gt;
Gmail เป็นตัวเลือกที่ดีที่สุดที่จะใช้เป็น Client&lt;br /&gt;
  &lt;br /&gt;
 NONE&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Outlook 2016 ==&lt;br /&gt;
&lt;br /&gt;
 More Settings-&amp;gt; Outgoing Server -&amp;gt; Checked - My Outgoing server(SMTP) requires authentication&lt;br /&gt;
 More Settings-&amp;gt; Advance -&amp;gt; POP3 110, SMTP 25 , Use the following type of encrypted connection TLS&lt;br /&gt;
&lt;br /&gt;
== รายการของ Scripts  ==&lt;br /&gt;
* [http://guides.thnic.or.th/eai-setup-guidelines-th/files/squirrelmail.zip Modified Squirrelmail]&lt;br /&gt;
* [https://github.com/padillareyj/eaifilter EAI Filter Scripts]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[พฤติกรรมของ browser  (ที่เกี่ยวข้องกับ IDN หรือ เฉพาะ .ไทย) ในเนื้อหาของเว็บเพจ]]&#039;&#039;&#039;&lt;br /&gt;
*[[Facebook]]&lt;br /&gt;
*[[Twitter]]&lt;br /&gt;
*[[Weibo]]&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%A1%E0%B8%B5%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7%E0%B8%B4%E0%B8%81%E0%B8%B4:Common.css&amp;diff=66</id>
		<title>มีเดียวิกิ:Common.css</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%A1%E0%B8%B5%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7%E0%B8%B4%E0%B8%81%E0%B8%B4:Common.css&amp;diff=66"/>
		<updated>2017-07-27T05:23:21Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;/* CSS placed here will be applied to all skins */&lt;br /&gt;
#ca-history { display:none!important; }&lt;br /&gt;
#ca-talk { display:none!important; }&lt;br /&gt;
#ca-view { display:none!important; }&lt;br /&gt;
#ca-viewsource { display:none!important; }&lt;br /&gt;
#p-tb { display:none !important; }&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%A1%E0%B8%B5%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7%E0%B8%B4%E0%B8%81%E0%B8%B4:Common.css&amp;diff=65</id>
		<title>มีเดียวิกิ:Common.css</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%A1%E0%B8%B5%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7%E0%B8%B4%E0%B8%81%E0%B8%B4:Common.css&amp;diff=65"/>
		<updated>2017-07-27T05:16:49Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;/* CSS placed here will be applied to all skins */&lt;br /&gt;
#p-tb { display:none !important; }&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%A1%E0%B8%B5%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7%E0%B8%B4%E0%B8%81%E0%B8%B4:Common.css&amp;diff=64</id>
		<title>มีเดียวิกิ:Common.css</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%A1%E0%B8%B5%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7%E0%B8%B4%E0%B8%81%E0%B8%B4:Common.css&amp;diff=64"/>
		<updated>2017-07-27T05:15:25Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;/* CSS placed here will be applied to all skins */&lt;br /&gt;
#ca-history { display:none!important; }&lt;br /&gt;
#ca-talk { display:none!important; }&lt;br /&gt;
#ca-view { display:none!important; }&lt;br /&gt;
#ca-viewsource { display:none!important; }&lt;br /&gt;
#p-tb { display:none !important; }&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%A1%E0%B8%B5%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7%E0%B8%B4%E0%B8%81%E0%B8%B4:Sidebar&amp;diff=63</id>
		<title>มีเดียวิกิ:Sidebar</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%A1%E0%B8%B5%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7%E0%B8%B4%E0%B8%81%E0%B8%B4:Sidebar&amp;diff=63"/>
		<updated>2017-07-27T05:14:30Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
* navigation&lt;br /&gt;
** mainpage|mainpage-description&lt;br /&gt;
--** recentchanges-url|recentchanges** randompage-url|randompage** helppage|help* SEARCH* TOOLBOX* LANGUAGES&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%A1%E0%B8%B5%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7%E0%B8%B4%E0%B8%81%E0%B8%B4:Sidebar&amp;diff=62</id>
		<title>มีเดียวิกิ:Sidebar</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%A1%E0%B8%B5%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7%E0%B8%B4%E0%B8%81%E0%B8%B4:Sidebar&amp;diff=62"/>
		<updated>2017-07-27T05:14:19Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: Created page with &amp;quot; * navigation ** mainpage|mainpage-description ** recentchanges-url|recentchanges** randompage-url|randompage** helppage|help* SEARCH* TOOLBOX* LANGUAGES&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
* navigation&lt;br /&gt;
** mainpage|mainpage-description&lt;br /&gt;
** recentchanges-url|recentchanges** randompage-url|randompage** helppage|help* SEARCH* TOOLBOX* LANGUAGES&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=Main_Page&amp;diff=61</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=Main_Page&amp;diff=61"/>
		<updated>2017-07-27T05:13:22Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== EAI คืออะไร ==&lt;br /&gt;
*[[คำนิยามของ RFC]]&lt;br /&gt;
*[[อนุญาตให้ใช้งาน EAI อย่างไร - วิธีการของเรา]]&lt;br /&gt;
&lt;br /&gt;
== การติดตั้ง Email สากล ==&lt;br /&gt;
*[[การติดตั้งขั้นพื้นฐาน]] -  รองรับ SMTPUTF8, SMTP Auth (unencrypted &amp;amp; TLS), imap/pop3 (unencrypted &amp;amp;TLS)&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 1]] - ตั้งค่า Postfix ให้เพิ่ม SMTPUTF8 อัตโนมัติเมื่อทำการส่ง EAI Address โดยใช้ Pipe Filter&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 2]]- ตั้งค่า Postfix ให้แก้ไข ที่อยู่ email ของผู้ส่งเมื่อทำการส่งไปยัง mail server ที่ไม่ได้เปิดใช้งาน EAI โดยใช้ Pipe Filter &lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 3]] - รองรับ Multiple virtual domain&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! การติดตั้ง !! LOCAL EAI   !! SEND TO NON-EAI AS EAI!! RECEIVE EAI MAIL !! REPLY TO EAI WITH NON-EAI MAIL CLIENT !! REPLY TO EAI BY NON-EAI WEBMAIL || REPLY TO EAI BY MODIFIED WEBMAIL || RECEIVE/REPLY/SEND using Gmail as a Client&lt;br /&gt;
|- &lt;br /&gt;
| การติดตั้งขั้นพื้นฐาน      || NO   || NO       ||      YES  || NO    ||  NO || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 1  || NO   || NO       ||      YES || YES *  || YES*  || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 2  || YES  ||         YES||     YES||         YES* || YES*      || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 3  || -    ||         -||     -||          -||        || YES|| YES&lt;br /&gt;
|}&lt;br /&gt;
&amp;amp;nbsp;*วิธีนี้จะใช้ได้กับ Mail client ที่อนุญาตให้ใช้ตัวอักษรที่เป็น NON-ASCII หรือ ที่อยู่ email ที่เป็น NON-ASCII จะไม่กลายเป็นตัวอักษรที่อ่านไม่ออก&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Mail Client ==&lt;br /&gt;
 Outlook 2016   - (Base Installation)Send to EAI as NON EAI (address is copy pasted) - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Receive from EAI as NON EAI - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Reply From EAI as NON EAI - No (The EAI email address is garbled when received) using Coremail Server (Receiving)&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Webmail ==&lt;br /&gt;
&lt;br /&gt;
ณ เวลาที่เขียนนี้ ยังไม่มี webmail ตัวไหนที่สามารถใช้งานได้&lt;br /&gt;
&lt;br /&gt;
 NONE&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Gmail เพื่อให้ทำงานเป็น EAI Client ==&lt;br /&gt;
Gmail เป็นตัวเลือกที่ดีที่สุดที่จะใช้เป็น Client&lt;br /&gt;
  &lt;br /&gt;
 NONE&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Outlook 2016 ==&lt;br /&gt;
&lt;br /&gt;
 More Settings-&amp;gt; Outgoing Server -&amp;gt; Checked - My Outgoing server(SMTP) requires authentication&lt;br /&gt;
 More Settings-&amp;gt; Advance -&amp;gt; POP3 110, SMTP 25 , Use the following type of encrypted connection TLS&lt;br /&gt;
&lt;br /&gt;
== รายการของ Scripts  ==&lt;br /&gt;
* [http://tool.ts8.se.in.th/wikieai_th/files/squirrelmail.zip Modified Squirrelmail]&lt;br /&gt;
* [https://github.com/padillareyj/eaifilter EAI Filter Scripts]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[พฤติกรรมของ browser  (ที่เกี่ยวข้องกับ IDN หรือ เฉพาะ .ไทย) ในเนื้อหาของเว็บเพจ]]&#039;&#039;&#039;&lt;br /&gt;
*[[Facebook]]&lt;br /&gt;
*[[Twitter]]&lt;br /&gt;
*[[Weibo]]&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%A1%E0%B8%B5%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7%E0%B8%B4%E0%B8%81%E0%B8%B4:Common.css&amp;diff=60</id>
		<title>มีเดียวิกิ:Common.css</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%A1%E0%B8%B5%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7%E0%B8%B4%E0%B8%81%E0%B8%B4:Common.css&amp;diff=60"/>
		<updated>2017-03-17T04:14:00Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;/* CSS placed here will be applied to all skins */&lt;br /&gt;
#ca-history { display:none!important; }&lt;br /&gt;
#ca-talk { display:none!important; }&lt;br /&gt;
#ca-view { display:none!important; }&lt;br /&gt;
#ca-viewsource { display:none!important; }&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%A1%E0%B8%B5%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7%E0%B8%B4%E0%B8%81%E0%B8%B4:Common.css&amp;diff=59</id>
		<title>มีเดียวิกิ:Common.css</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%A1%E0%B8%B5%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7%E0%B8%B4%E0%B8%81%E0%B8%B4:Common.css&amp;diff=59"/>
		<updated>2017-03-17T04:13:03Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: Created page with &amp;quot;/* CSS placed here will be applied to all skins */ #ca-history { display:none!important; } #ca-talk { display:none!important; } #ca-view { display:none!important; }&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;/* CSS placed here will be applied to all skins */&lt;br /&gt;
#ca-history { display:none!important; }&lt;br /&gt;
#ca-talk { display:none!important; }&lt;br /&gt;
#ca-view { display:none!important; }&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=Main_Page&amp;diff=56</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=Main_Page&amp;diff=56"/>
		<updated>2017-02-24T03:51:04Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== EAI คืออะไร ==&lt;br /&gt;
*[[คำนิยามของ RFC]]&lt;br /&gt;
*[[อนุญาตให้ใช้งาน EAI อย่างไร - วิธีการของเรา]]&lt;br /&gt;
&lt;br /&gt;
== การติดตั้ง Email สากล ==&lt;br /&gt;
*[[การติดตั้งขั้นพื้นฐาน]] -  รองรับ SMTPUTF8, SMTP Auth (unencrypted &amp;amp; TLS), imap/pop3 (unencrypted &amp;amp;TLS)&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 1]] - ตั้งค่า Postfix ให้เพิ่ม SMTPUTF8 อัตโนมัติเมื่อทำการส่ง EAI Address โดยใช้ Pipe Filter&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 2]]- ตั้งค่า Postfix ให้แก้ไข ที่อยู่ email ของผู้ส่งเมื่อทำการส่งไปยัง mail server ที่ไม่ได้เปิดใช้งาน EAI โดยใช้ Pipe Filter &lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 3]] - รองรับ Multiple virtual domain&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! การติดตั้ง !! LOCAL EAI   !! SEND TO NON-EAI AS EAI!! RECEIVE EAI MAIL !! REPLY TO EAI WITH NON-EAI MAIL CLIENT !! REPLY TO EAI BY NON-EAI WEBMAIL || REPLY TO EAI BY MODIFIED WEBMAIL || RECEIVE/REPLY/SEND using Gmail as a Client&lt;br /&gt;
|- &lt;br /&gt;
| การติดตั้งขั้นพื้นฐาน      || NO   || NO       ||      YES  || NO    ||  NO || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 1  || NO   || NO       ||      YES || YES *  || YES*  || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 2  || YES  ||         YES||     YES||         YES* || YES*      || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 3  || -    ||         -||     -||          -||        || YES|| YES&lt;br /&gt;
|}&lt;br /&gt;
&amp;amp;nbsp;*วิธีนี้จะใช้ได้กับ Mail client ที่อนุญาตให้ใช้ตัวอักษรที่เป็น NON-ASCII หรือ ที่อยู่ email ที่เป็น NON-ASCII จะไม่กลายเป็นตัวอักษรที่อ่านไม่ออก&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Mail Client ==&lt;br /&gt;
 Outlook 2016   - (Base Installation)Send to EAI as NON EAI (address is copy pasted) - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Receive from EAI as NON EAI - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Reply From EAI as NON EAI - No (The EAI email address is garbled when received) using Coremail Server (Receiving)&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Webmail ==&lt;br /&gt;
&lt;br /&gt;
ณ เวลาที่เขียนนี้ ยังไม่มี webmail ตัวไหนที่สามารถใช้งานได้&lt;br /&gt;
&lt;br /&gt;
 NONE&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Gmail เพื่อให้ทำงานเป็น EAI Client ==&lt;br /&gt;
Gmail เป็นตัวเลือกที่ดีที่สุดที่จะใช้เป็น Client&lt;br /&gt;
&lt;br /&gt;
*[[การตั้งค่า Gmail เพื่อให้ทำงานเป็น EAI Client]]&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Outlook 2016 ==&lt;br /&gt;
&lt;br /&gt;
 More Settings-&amp;gt; Outgoing Server -&amp;gt; Checked - My Outgoing server(SMTP) requires authentication&lt;br /&gt;
 More Settings-&amp;gt; Advance -&amp;gt; POP3 110, SMTP 25 , Use the following type of encrypted connection TLS&lt;br /&gt;
&lt;br /&gt;
== รายการของ Scripts  ==&lt;br /&gt;
* [http://tool.ts8.se.in.th/wikieai_th/files/squirrelmail.zip Modified Squirrelmail]&lt;br /&gt;
* [https://github.com/padillareyj/eaifilter EAI Filter Scripts]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[พฤติกรรมของ browser  (ที่เกี่ยวข้องกับ IDN หรือ เฉพาะ .ไทย) ในเนื้อหาของเว็บเพจ]]&#039;&#039;&#039;&lt;br /&gt;
*[[Facebook]]&lt;br /&gt;
*[[Twitter]]&lt;br /&gt;
*[[Weibo]]&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=Freesbsd_-_%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B9%80%E0%B8%95%E0%B9%87%E0%B8%A1_-_%E0%B8%AD%E0%B8%98%E0%B8%B4%E0%B8%9A%E0%B8%B2%E0%B8%A2%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B8%A5%E0%B8%B0%E0%B9%80%E0%B8%AD%E0%B8%B5%E0%B8%A2%E0%B8%94%E0%B8%97%E0%B8%B5%E0%B8%A5%E0%B8%B0%E0%B8%82%E0%B8%B1%E0%B9%89%E0%B8%99%E0%B8%95%E0%B8%AD%E0%B8%99&amp;diff=51</id>
		<title>Freesbsd - ฉบับเต็ม - อธิบายอย่างละเอียดทีละขั้นตอน</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=Freesbsd_-_%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B9%80%E0%B8%95%E0%B9%87%E0%B8%A1_-_%E0%B8%AD%E0%B8%98%E0%B8%B4%E0%B8%9A%E0%B8%B2%E0%B8%A2%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B8%A5%E0%B8%B0%E0%B9%80%E0%B8%AD%E0%B8%B5%E0%B8%A2%E0%B8%94%E0%B8%97%E0%B8%B5%E0%B8%A5%E0%B8%B0%E0%B8%82%E0%B8%B1%E0%B9%89%E0%B8%99%E0%B8%95%E0%B8%AD%E0%B8%99&amp;diff=51"/>
		<updated>2017-02-14T07:14:40Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: Created page with &amp;quot;   &amp;#039;&amp;#039;&amp;#039;การติดตั้ง Postfix สำหรับการเปิดใช้งาน SMTPUTF8, Cyrus SASL และ OpenSSL&amp;#039;&amp;#039;&amp;#039;  == สรุปสาระ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;การติดตั้ง Postfix สำหรับการเปิดใช้งาน SMTPUTF8, Cyrus SASL และ OpenSSL&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== สรุปสาระสำคัญของ mail server  ==&lt;br /&gt;
คู่มือนี้ใช้สำหรับการติดตั้ง mail server ที่สามารถรับ mail ที่เป็น SMTPUTF8 ได้ นอกจากนี้ยังป้องการการตีกลับของอีเมลหากผู้ส่งส่งไปยัง mail server&lt;br /&gt;
&lt;br /&gt;
ที่ไม่รองรับ SMTPUTF8 รวมถึง IMAP และ POP3 ที่ใช้ Courier ด้วย ผู้ใช้จะถูกเพิ่มเป็น local user ถึงแม้ว่าจะ login ผ่าน SSH หรือไม่ก็ตาม mail ทั้งหมดจะถูกเก็บไว้ที่ /home/user&lt;br /&gt;
&lt;br /&gt;
Squirrel-mail ที่ถูกแก้ไขนี้จะถูกติดตั้งในการส่งและรับ email (จะต้องมีการทดสอบ)&lt;br /&gt;
&lt;br /&gt;
email client สามารถนำมาใช้ได้ โดยใช้ username ที่ไม่ได้เป็น EAI address&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ใช้ Freebsd 10.2&lt;br /&gt;
&lt;br /&gt;
== ข้อสังเกต ความต้องการและการตั้งค่าเริ่มต้น ==&lt;br /&gt;
&lt;br /&gt;
* คุณจะต้องไม่มีการติดตั้ง Postfix ซึ่งต้องไม่ต่ำกว่าเวอรชั่น 3.0&lt;br /&gt;
* ถ้าคุณได้ติดตั้งส่วนเสริมของ mail software หลังจากการติดตั้ง คุณต้องทดสอบให้แน่ใจว่า server ของคุณสามารถส่งกลับมาเป็น SMTPUTF8&lt;br /&gt;
* DNS ของคุณควรต้องติดตั้งให้พร้อมก่อนการตั้งค่า&lt;br /&gt;
* hostname คือ ชื่อโดเมนของคุณ เช่น domain.com &lt;br /&gt;
* mail.hostname คือ ชื่อ Mail server ของคุณ เช่น mail.domain.com&lt;br /&gt;
* ใช้ user root (sudo privileges) ทำงานกับ Server FreeBSD&lt;br /&gt;
* การติดตั้งนี้เป็นการติดตั้งผ่าน user root เว้นแต่จะระบุไว้เป็นอย่างอื่น&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;แก้ไข hostname &#039;&#039;&#039;&lt;br /&gt;
&#039;&#039;ถ้าคุณใช้ international domain ให้คุณใช้ในรูปแบบ punycode&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
ตัวอย่าง: mail.วีคลาส.ไทย punycode equivalent ควรจะเป็น mail.xn--42c0eeo3bp.xn--o3cw4h&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
vi /etc/hostname&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไขเป็นชื่อ hostname ที่คุณต้องการ&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mail.domain.com&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ปิดและเปิด server ใหม่ เพื่อปรับปรุง hostname&lt;br /&gt;
&lt;br /&gt;
หลังจากปิดและเปิด server ใหม่แล้ว ให้ใช้คำสั่งต่อไปนี้จะแสดง hostname เพื่อดูว่า hostname เปลี่ยนแล้ว&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
hostname&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ติดตั้ง Postfix จาก source และ libraries ที่จำเป็น (Cyrus  SASL, OPENSSL)  ==&lt;br /&gt;
&lt;br /&gt;
ใช้คำสั่ง get เพื่อดาวน์โหลด Postfix เวอร์ชั่น 3.0.1 หรือเวอร์ชั่นที่ใหม่กว่าเพื่อเปิดใช้งาน SMTPUTF8 คุณสามารถโหลดได้จาก http://www.postfix.org/download.html ในตัวอย่างด้านล่าง เราดาวน์โหลด postfix-3.0.1.tar.gz เวอร์ชั่นของคุณอาจจะแตกต่างออกไป ขณะนี้การติดตั้ง Postfix ด้วย apt-get นั้นจะทำการติดตั้ง Postfix เวอร์ชั่นเก่าที่ยังไม่รองรับ SMTPUTF8  ซึ่งอาจจะมีการเปลี่ยนแปลงในภายหลัง&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ติดตั้ง libraries ที่จำเป็นด้วยตัวเลือกพอร์ตอัตโนมัติ&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd /usr/ports/security/openssl &lt;br /&gt;
make &amp;amp;&amp;amp; make install&lt;br /&gt;
&lt;br /&gt;
cd /usr/ports/security/cyrus-sasl2&lt;br /&gt;
make &amp;amp;&amp;amp; make install&lt;br /&gt;
&lt;br /&gt;
cd /usr/ports/devel/icu&lt;br /&gt;
make &amp;amp;&amp;amp; make install&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
Refresh your environment &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
สร้าง user และ directory ownership ที่จำเป็น&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
pw groupadd postfix -g 32 &lt;br /&gt;
pw groupmod mail -m postfix&lt;br /&gt;
pw groupadd postdrop &lt;br /&gt;
pw useradd postfix -c &amp;quot;Postfix Daemon User&amp;quot; -d /var/spool/postfix -g postfix  -s /bin/false -u 32  &lt;br /&gt;
chown -v postfix:postfix /var/mail&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ดาวน์โหลด Postfix 3.0.1 หรือเวอร์ชั่นที่ใหม่กว่า และ Compile ด้วย openssl และ sasl auth  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
tar -xzvf postfix-3.0.1.tar.gz&lt;br /&gt;
cd postfix-3.0.1&lt;br /&gt;
make CCARGS=&amp;quot;-DUSE_TLS -I/usr/include/openssl/   -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/local/include/sasl&amp;quot; AUXLIBS=&amp;quot;-lssl -lcrypto -lsasl2&amp;quot; makefiles &lt;br /&gt;
make&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ติดตั้ง Postfix&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sh postfix-install -non-interactive   daemon_directory=/usr/lib/postfix  \&lt;br /&gt;
                    manpage_directory=/usr/share/man  \&lt;br /&gt;
                    html_directory=/usr/share/doc/postfix-3.0.1/html  \&lt;br /&gt;
                    readme_directory=/usr/share/doc/postfix-3.0.1/readme&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ /etc/rc.conf&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
postfix_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
sendmail_enable=&amp;quot;NO&amp;quot;&lt;br /&gt;
sendmail_submit_enable=&amp;quot;NO&amp;quot;&lt;br /&gt;
sendmail_outbound_enable=&amp;quot;NO&amp;quot;&lt;br /&gt;
sendmail_msp_queue_enable=&amp;quot;NO&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ /etc/periodic.conf &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
daily_clean_hoststat_enable=&amp;quot;NO&amp;quot;&lt;br /&gt;
daily_status_mail_rejects_enable=&amp;quot;NO&amp;quot;&lt;br /&gt;
daily_status_include_submit_mailq=&amp;quot;NO&amp;quot;&lt;br /&gt;
daily_submit_queuerun=&amp;quot;NO&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
หยุดการทำงาน sendmail และเปิดการใช้งาน postfix&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
service sendmail stop&lt;br /&gt;
postfix start&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Postfix ==&lt;br /&gt;
&lt;br /&gt;
แก้ไข mail.domain.tld, domain.tld, yourotherdomain.tld (yourotherdomain.tld ไม่จำเป็นต้องใส่ก็ได้)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;vim&amp;quot;&amp;gt;&lt;br /&gt;
postconf -e &#039;myhostname  = mail.domain.tld&#039;&lt;br /&gt;
postconf -e &#039;mydomain    = domain.tld&#039;&lt;br /&gt;
postconf -e &#039;myorigin    = $mydomain&#039;&lt;br /&gt;
postconf -e &#039;inet_interfaces = all&#039;&lt;br /&gt;
postconf -e &#039;mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/24&#039;&lt;br /&gt;
postconf -e &#039;alias_database = hash:/etc/aliases&#039;&lt;br /&gt;
postconf -e &#039;alias_maps = hash:/etc/aliases&#039;&lt;br /&gt;
postconf -e &#039;mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, yourotherdomain.tld&#039;&lt;br /&gt;
postconf -e &#039;smtputf8_enable = yes&#039;&lt;br /&gt;
postfix reload&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
@TODO &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
Enable Postfix as service and run at startup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ลองใช้งานและส่ง mail โดยใช้ Telnet ส่ง mail ไปยัง server อื่นๆ เช่น gmail&lt;br /&gt;
&lt;br /&gt;
== ทดสอบว่าคุณมีการเปิดการใช้งาน SMTPUTF8 หรือไม่ ==&lt;br /&gt;
&lt;br /&gt;
ป้อนคำสั่งในหน้า console ซึ่งคำสั่งจะทำการเชื่อมต่อไปยัง SMTP&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 telnet localhost 25&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ควรจะแสดงผลลัพธ์ดังนี้&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is &#039;^]&#039;.&lt;br /&gt;
220 YourHostName ESMTP Postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
พิมพ์คำสั่งด้านล่างแล้วกด enter&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
EHLO localhost&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
เมื่อพบว่ามี &#039;&#039;&#039;250 SMTPUTF8&#039;&#039;&#039; อยู่ แสดงว่า server ของคุณ สามารถรับและส่ง mail จากที่อยู่ email สากลได้&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
250-YourHostName&lt;br /&gt;
250-PIPELINING&lt;br /&gt;
250-SIZE 10240000&lt;br /&gt;
250-VRFY&lt;br /&gt;
250-ETRN&lt;br /&gt;
250-ENHANCEDSTATUSCODES&lt;br /&gt;
250-8BITMIME&lt;br /&gt;
250-DSN&lt;br /&gt;
250 SMTPUTF8&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
หากไม่พบ 250 SMTPUTF8 ให้ลองเอา Postfix ออกและลองใหม่อีกครั้ง เพราะอาจจะมีการติดตั้งส่วนเสริม software ของ Postfix ที่เป็นตัวเก่าเหลืออยู่&lt;br /&gt;
&lt;br /&gt;
==เปิดใช้งาน SMTP Auth  ==&lt;br /&gt;
&lt;br /&gt;
ติดตั้ง saslauthd ด้วยตัวเลือกอัตโนมัติ&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd /usr/ports/security/cyrus-sasl2-saslauthd&lt;br /&gt;
make &amp;amp;&amp;amp; make install&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ /etc/rc.conf&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
saslauthd_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
สร้าง หรือ แก้ไขไฟล์ /usr/local/lib/sasl2/smtpd.conf ใช้เฉพาะวิธีการแบบ PLAIN เท่านั้น&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
pwcheck_method: saslauthd&lt;br /&gt;
mech_list: PLAIN LOGIN&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ปรับปรุงการตั้งค่า Postfix&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_path = smtpd&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_auth_enable = yes&#039;&lt;br /&gt;
service saslauthd start&lt;br /&gt;
sudo postfix reload&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
สร้าง user ที่เราสามารถทดสอบการ authentication ได้ แทนที่ AnyUserName ด้วย user ของคุณ&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo useradd -m AnyUserName  -s /usr/sbin/nologin&lt;br /&gt;
sudo passwd AnyUserName &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
สร้าง Auth key ของคุณ แทนที่ username ด้วย username  ของคุณ และแทนที่ password ด้วย password ของคุณ&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
perl -MMIME::Base64 -e &#039;print encode_base64(&amp;quot;\000username\000yourpassword&amp;quot;)&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
แทนที่ dGVzdAB0ZXN0AHRlc3Q=  ด้วย key ที่คุณสร้างขึ้น&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
telnet 	localhost 25&lt;br /&gt;
EHLO localhost&lt;br /&gt;
AUTH PLAIN dGVzdAB0ZXN0AHRlc3Q=	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
คุณควรจะได้รับข้อความว่า  Authentication successful&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Known Error:&#039;&#039;&#039; ถ้า base64 encode ของคุณมี == ด้านท้ายสองอัน  มันอาจจะไม่ได้รับการยอมรับจาก terminal  ดังนั้นคุณควรใช้ password ที่จะไม่ให้ผลลัพธ์ออกมาเป็น == สองอันด้านท้าย&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
จบการตั้งค่า Postfix ด้วยการอนุญาติให้เฉพาะผู้ใช้ที่ทำการ authenticate ทำการส่งไปยัง SMTP ได้&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
postconf -e &#039;broken_sasl_auth_clients = yes&#039;&lt;br /&gt;
postconf -e &#039;smtpd_sasl_security_options = noanonymous&#039;&lt;br /&gt;
postconf -e &#039;smtpd_sasl_local_domain = $mydomain&#039;&lt;br /&gt;
postconf -e &#039;smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination&#039;&lt;br /&gt;
postconf -e &#039;smtpd_relay_restrictions =  permit_mynetworks permit_sasl_authenticated reject_unauth_destination reject_sender_login_mismatch &#039;&lt;br /&gt;
postfix reload&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== เปิดใช้งาน TLS ==&lt;br /&gt;
&lt;br /&gt;
สร้าง certificates&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd /etc/postfix&lt;br /&gt;
&lt;br /&gt;
openssl req -new -outform PEM -out smtpd.cert \&lt;br /&gt;
   -newkey rsa:2048 -nodes -keyout smtpd.key -keyform PEM \&lt;br /&gt;
   -days 365 -x509&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ตอบคำถามต่อไปนี้เมื่อได้รับแจ้ง&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ปรับปรุงการตั้งค่า Postfix&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
postconf -e &#039;smtpd_enforce_tls = no&#039;&lt;br /&gt;
postconf -e &#039;smtpd_tls_security_level = may&#039;&lt;br /&gt;
postconf -e &#039;smtpd_tls_loglevel = 1&#039;&lt;br /&gt;
postconf -e &#039;smtpd_use_tls = yes&#039;&lt;br /&gt;
postconf -e &#039;smtpd_tls_key_file  = /etc/postfix/smtpd.key&#039;&lt;br /&gt;
postconf -e &#039;smtpd_tls_cert_file  = /etc/postfix/smtpd.cert&#039;&lt;br /&gt;
postfix reload&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
สามารถทดสอบโดยการ telnet ไปยัง 25 และใช้คำสั่ง EHLO จะพบคำว่า STARTTLS&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
250-PIPELINING&lt;br /&gt;
250-SIZE 10240000&lt;br /&gt;
250-VRFY&lt;br /&gt;
250-ETRN&lt;br /&gt;
250-STARTTLS&lt;br /&gt;
250-AUTH PLAIN LOGIN&lt;br /&gt;
250-AUTH=PLAIN LOGIN&lt;br /&gt;
250-ENHANCEDSTATUSCODES&lt;br /&gt;
250-8BITMIME&lt;br /&gt;
250-DSN&lt;br /&gt;
250 SMTPUTF8&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
พิมพ์คำสั่งด้านล่าง&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
STARTTLS&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ปรากฎผลลัพธ์ดังนี้&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
220 2.0.0 Ready to start TLS&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== การส่งและรับ email จากอินเทอร์เน็ต ==&lt;br /&gt;
&lt;br /&gt;
การส่ง email ด้วย telnet&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
telnet localhost 25&lt;br /&gt;
EHLO localhost&lt;br /&gt;
&lt;br /&gt;
MAIL FROM: &amp;lt;youruser@domain.tld&amp;gt; SMTPUTF8&lt;br /&gt;
RCPT FROM: &amp;lt;EAI@IDN.idn&amp;gt;&lt;br /&gt;
data&lt;br /&gt;
Subject: A Test&lt;br /&gt;
&lt;br /&gt;
This is the body&lt;br /&gt;
&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ใช้เครื่องหมาย &amp;quot;.&amp;quot; เพื่อจบข้อความและทำการส่งข้อความ&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ในส่วนนี้โปรดตรวจสอบให้แน่ใจว่าสามารถรับและส่ง mail ได้&lt;br /&gt;
&lt;br /&gt;
สามารถส่งข้อความด้วย EAI address และตรวจสอบได้ที่ /var/mail/mail.log ใน log ด้านล่าง &lt;br /&gt;
&amp;lt;br/&amp;gt; หมายเหตุ test@domain.tld คือ ผู้รับ local&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
Aug  3 02:48:49 ip-172-31-21-209 postfix/local[21614]: 7EAD343550: to=&amp;lt;test@domain.tld&amp;gt;, relay=local, delay=0.62, delays=0.62/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)&lt;br /&gt;
Aug  3 02:48:49 ip-172-31-21-209 postfix/qmgr[21586]: 7EAD343550: removed&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
email จะถูกจัดเก็บไว้ที่ /var/mail/&lt;br /&gt;
&lt;br /&gt;
หากไม่ได้รับ email ให้ลองใช้เครื่องมือ online อื่น เช่น mxtoolbox.com เพื่อตรวจสอบปัญหาที่เกิดขึ้น&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Courier authlib, Courier IMAP ==&lt;br /&gt;
ขั้นตอนนี้จะทำการเปิดใช้งาน IMAP และ POP3 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd /usr/ports/security/courier-authlib&lt;br /&gt;
make &amp;amp;&amp;amp; make install&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd  /usr/ports/mail/courier-imap&lt;br /&gt;
make &amp;amp;&amp;amp; make install&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ /usr/local/etc/authlib/authdaemonrc และเปลี่ยนค่า authentication method&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
authmodulelist=&amp;quot;authpam&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ /etc/rc.conf&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
courier_authdaemond_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
courier_imap_imapd_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
courier_imap_imapd_ssl_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
courier_imap_pop3d_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
courier_imap_pop3d_ssl_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
ตั้งค่า Postfix ให้ใช้ Maildir เป็นที่เก็บ Mail&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
postconf -e &#039;home_mailbox = Maildir/&#039;&lt;br /&gt;
service courier-authdaemond start&lt;br /&gt;
service courier-imap-imapd&lt;br /&gt;
service courier-imap-imapd-ssl&lt;br /&gt;
service courier-imap-pop3d&lt;br /&gt;
service courier-imap-pop3d-ssl&lt;br /&gt;
&lt;br /&gt;
service courier-imap-imapd start&lt;br /&gt;
service courier-imap-imapd-ssl start&lt;br /&gt;
service courier-imap-pop3d start&lt;br /&gt;
service courier-imap-pop3d-ssl start&lt;br /&gt;
postfix reload&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ปรับเปลี่ยน Skeleton และสร้างโฟลเดอร์สำหรับผู้ใช้งานที่เราสร้างขึ้นก่อนหน้านี้ จากในตัวอย่างเราใช้ชื่อผู้ใช้งาน test&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir -p /usr/share/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
&lt;br /&gt;
mkdir -p /home/test/Maildir/{cur,new,tmp}&lt;br /&gt;
chown test:test /home/test/Maildir/{,cur,new,tmp}&lt;br /&gt;
chmod 0700 /home/test/Maildir/{,cur,new,tmp}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ทดสอบ IMAP และ POP3 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
telnet localhost imap&lt;br /&gt;
ok login username password&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
telnet localhost pop3&lt;br /&gt;
User username&lt;br /&gt;
Pass password&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ติดตั้ง Squirrel-mail ==&lt;br /&gt;
&lt;br /&gt;
ติดตั้งและแก้ไข Squirrel mail&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd to-your-public-html-filder&lt;br /&gt;
wget http://interlab.ait.ac.th/eai-wiki/files/squirrelmail.zip&lt;br /&gt;
unzip squirrelmail.zip&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ config และเปลี่ยนค่า &#039;&#039;&#039;attachchment_dir&#039;&#039;&#039; และ &#039;&#039;&#039;data_dir&#039;&#039;&#039; โดยอย่าลืมสร้างโฟลเดอร์&lt;br /&gt;
เปลี่ยน ownership เป็น &#039;&#039;&#039;apache user&#039;&#039;&#039; ของคุณและอนุญาติให้สามารถทำการเขียนได้&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
vi squirrelmail/config/config.php &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
การเข้าถึง squirrelmail&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
http://your-domain/squirrelmail/&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ลิงค์ที่เกี่ยวข้อง ==&lt;br /&gt;
Mail server จะไม่รับและส่ง email จากภายนอก&lt;br /&gt;
&lt;br /&gt;
== แหล่งที่มา ==&lt;br /&gt;
&lt;br /&gt;
http://postfix.org/&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=Centos_-_%E0%B8%84%E0%B8%B3%E0%B8%96%E0%B8%B2%E0%B8%A1%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%9E%E0%B8%9A%E0%B8%9A%E0%B9%88%E0%B8%AD%E0%B8%A2&amp;diff=50</id>
		<title>Centos - คำถามที่พบบ่อย</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=Centos_-_%E0%B8%84%E0%B8%B3%E0%B8%96%E0%B8%B2%E0%B8%A1%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%9E%E0%B8%9A%E0%B8%9A%E0%B9%88%E0%B8%AD%E0%B8%A2&amp;diff=50"/>
		<updated>2017-02-14T07:14:00Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: Created page with &amp;quot;1. ไม่สามารถเชื่อมต่อกับ Imap โดยใช้ web based email application ( ตัวอย่างเช่น Squirrelmail, Hor...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;1. ไม่สามารถเชื่อมต่อกับ Imap โดยใช้ web based email application ( ตัวอย่างเช่น Squirrelmail, Horde)&lt;br /&gt;
&lt;br /&gt;
 setsebool -P httpd_can_network_connect on&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=Centos_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B8%82%E0%B8%B1%E0%B9%89%E0%B8%99%E0%B8%9E%E0%B8%B7%E0%B9%89%E0%B8%99%E0%B8%90%E0%B8%B2%E0%B8%99&amp;diff=49</id>
		<title>Centos - การติดตั้งขั้นพื้นฐาน</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=Centos_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B8%82%E0%B8%B1%E0%B9%89%E0%B8%99%E0%B8%9E%E0%B8%B7%E0%B9%89%E0%B8%99%E0%B8%90%E0%B8%B2%E0%B8%99&amp;diff=49"/>
		<updated>2017-02-14T07:13:07Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;การติดตั้ง Postfix สำหรับการเปิดใช้งาน SMTPUTF8, Cyrus SASL และ OpenSSL&amp;#039;&amp;#039;&amp;#039;  == สรุปสาระส...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;การติดตั้ง Postfix สำหรับการเปิดใช้งาน SMTPUTF8, Cyrus SASL และ OpenSSL&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== สรุปสาระสำคัญของ mail server==&lt;br /&gt;
คู่มือนี้ใช้สำหรับการติดตั้ง mail server ที่สามารถรับ mail ที่เป็น SMTPUTF8 ได้ นอกจากนี้ยังป้องการการตีกลับของอีเมลหากผู้ส่งส่งไปยัง mail server&lt;br /&gt;
&lt;br /&gt;
ที่ไม่รองรับ SMTPUTF8 รวมถึง IMAP และ POP3 ที่ใช้ Courier ด้วย ผู้ใช้จะถูกเพิ่มเป็น local user ถึงแม้ว่าจะ login ผ่าน SSH หรือไม่ก็ตาม mail ทั้งหมดจะถูกเก็บไว้ที่ /home/user&lt;br /&gt;
&lt;br /&gt;
Squirrel-mail ที่ถูกแก้ไขนี้จะถูกติดตั้งในการส่งและรับ email (จะต้องมีการทดสอบ)&lt;br /&gt;
&lt;br /&gt;
email client สามารถนำมาใช้ได้ โดยใช้ username ที่ไม่ได้เป็น EAI address&lt;br /&gt;
&lt;br /&gt;
ใช้ Centos 7, 64 Bit&lt;br /&gt;
&lt;br /&gt;
* ไม่ได้ทดสอบบน Centos 5 กับ Centos 6 ซึ่งอาจจะใช้งานไม่ได้&lt;br /&gt;
&lt;br /&gt;
คุณสามารถติดตั้งด้วย root ไม่เช่นนั้นให้ระบุเป็น non privileged user&lt;br /&gt;
&lt;br /&gt;
== ข้อสังเกต ความต้องการและการตั้งค่าเริ่มต้น ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Centos 7 (64 bit) แบบ minimal installation  &lt;br /&gt;
* Centos 7 มาพร้อมกับการติดตั้ง postfix 2.x &lt;br /&gt;
* คู่มือนี้สมมติว่าคุณติดตั้งด้วย root เว้นแต่จะระบุไว้เป็นอย่างอื่น&lt;br /&gt;
* DNS ของคุณต้องติดตั้งให้พร้อมก่อนการตั้งค่า&lt;br /&gt;
* hostname คือ ชื่อโดเมนของคุณ เช่น domain.com &lt;br /&gt;
* mail.hostname คือ ชื่อ Mail server ของคุณ เช่น mail.domain.com&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;แก้ไข hostname &#039;&#039;&#039;&lt;br /&gt;
&#039;&#039;ถ้าคุณใช้ international domain ให้คุณใช้ในรูปแบบ punycode&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
ตัวอย่าง: mail.วีคลาส.ไทย punycode equivalent ควรจะเป็น mail.xn--42c0eeo3bp.xn--o3cw4h&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
vi /etc/hostname&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไขเป็นชื่อ hostname ที่คุณต้องการ&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mail.domain.com&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ปิดและเปิด server ใหม่ เพื่อปรับปรุง hostname&lt;br /&gt;
&lt;br /&gt;
หลังจากปิดและเปิด server ใหม่แล้ว ให้ใช้คำสั่งต่อไปนี้จะแสดง hostname เพื่อดูว่า hostname เปลี่ยนแล้ว&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
hostname&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ติดตั้ง Postfix จาก source และ libraries ที่จำเป็น (Cyrus  SASL, OPENSSL)  ==&lt;br /&gt;
&lt;br /&gt;
ใช้คำสั่ง get เพื่อดาวน์โหลด Postfix เวอร์ชั่น 3.0.1 หรือเวอร์ชั่นที่ใหม่กว่าเพื่อเปิดใช้งาน SMTPUTF8 คุณสามารถโหลดได้จาก http://www.postfix.org/download.html ในตัวอย่างด้านล่าง เราดาวน์โหลด postfix-3.0.1.tar.gz เวอร์ชั่นของคุณอาจจะแตกต่างออกไป ขณะนี้การติดตั้ง Postfix ด้วย apt-get นั้นจะทำการติดตั้ง Postfix เวอร์ชั่นเก่าที่ยังไม่รองรับ SMTPUTF8  ซึ่งอาจจะมีการเปลี่ยนแปลงในภายหลัง&lt;br /&gt;
&lt;br /&gt;
ติดตั้ง libraries และ tools ที่จำเป็น &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
yum groupinstall development tools&lt;br /&gt;
yum install cyrus-sasl cyrus-sasl-devel openssl openssl-devel libdb-devel.x86_64 libicu-devel telnet net-tools&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ดาวน์โหลด Postfix 3.0.1 หรือเวอร์ชั่นที่ใหม่กว่า&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
tar -xzvf postfix-3.0.1.tar.gz&lt;br /&gt;
cd postfix-3.0.1&lt;br /&gt;
sed -i &#039;s/.\x08//g&#039; README_FILES/*&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Compile ด้วย openssl และ sasl auth &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
make makefiles CCARGS=&#039;-DUSE_TLS -I/usr/include/openssl  -DUSE_SASL_AUTH -DUSE_CYRUS_SASL  -I/usr/include/sasl &#039;   AUXLIBS=&#039;-L/usr/lib64  -L/usr/lib64/openssl -L/usr/lib64/sasl2 -lssl -lcrypto -lsasl2&#039;&lt;br /&gt;
make&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
หมายเหตุ: ถ้าคุณใช้ OS ที่เป็น 32Bit OS ให้แทนที่  /lib64 ด้วย /lib&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
ติดตั้ง Postfix &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
make upgrade&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
คุณสามารถนำไฟล์การตั้งค่าที่ไม่ได้ใช้ออกไป ซึ่งจะแสดงในส่วนสุดท้ายของการติดตั้ง&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Postfix ==&lt;br /&gt;
&lt;br /&gt;
สร้าง Mails Alias สำหรับ root หรือ  postmaster เพื่อส่งไปยังผู้ใช้งานจริง (YourLogin)  &lt;br /&gt;
&amp;lt;br/&amp;gt;หมายเหตุ: ขั้นตอนนี้เป็นทางเลือกเนื่องจาก Centos 7 ได้เติมไว้ให้แล้ว&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
vi /etc/aliases&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
copy และ paste ตัว code ด้านล่าง โดยเปลี่ยน YourLogin เป็น user ของคุณเองแล้วทำการ save และ quit&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
MAILER-DAEMON:    postmaster&lt;br /&gt;
postmaster:       root&lt;br /&gt;
root:             YourLogin&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ต่อจากนั้น&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
newaliases&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
แก้ไข mail.domain.tld, domain.tld,  yourotherdomain.tld (yourotherdomain.tld ไม่จำเป็นต้องใส่ก็ได้)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;vim&amp;quot;&amp;gt;&lt;br /&gt;
postconf compatibility_level=2&lt;br /&gt;
postconf -e &#039;myhostname  = mail.domain.tld&#039;&lt;br /&gt;
postconf -e &#039;mydomain    = domain.tld&#039;&lt;br /&gt;
postconf -e &#039;myorigin    = $mydomain&#039;&lt;br /&gt;
postconf -e &#039;inet_interfaces = all&#039;&lt;br /&gt;
postconf -e &#039;mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/24&#039;&lt;br /&gt;
postconf -e &#039;alias_database = hash:/etc/aliases&#039;&lt;br /&gt;
postconf -e &#039;alias_maps = hash:/etc/aliases&#039;&lt;br /&gt;
postconf -e &#039;mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, yourotherdomain.tld&#039;&lt;br /&gt;
postconf -e &#039;smtputf8_enable = yes&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
ขั้นตอนสุดท้าย start Postfix ในครั้งแรก&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
service postfix restart&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ลองใช้งานและส่ง mail โดยใช้ Telnet ส่ง mail ไปยัง server อื่นๆ เช่น gmail&lt;br /&gt;
&lt;br /&gt;
== ทดสอบว่าคุณมีการเปิดการใช้งาน SMTPUTF8 หรือไม่ ==&lt;br /&gt;
&lt;br /&gt;
ป้อนคำสั่งในหน้า console ซึ่งคำสั่งจะทำการเชื่อมต่อไปยัง SMTP&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 telnet localhost 25&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ควรจะแสดงผลลัพธ์ดังนี้&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is &#039;^]&#039;.&lt;br /&gt;
220 YourHostName ESMTP Postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
พิมพ์คำสั่งด้านล่างแล้วกด enter&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
EHLO localhost&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
เมื่อพบว่ามี &#039;&#039;&#039;250 SMTPUTF8&#039;&#039;&#039; อยู่ แสดงว่า server ของคุณ สามารถรับและส่ง mail จากที่อยู่ email สากลได้&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
250-YourHostName&lt;br /&gt;
250-PIPELINING&lt;br /&gt;
250-SIZE 10240000&lt;br /&gt;
250-VRFY&lt;br /&gt;
250-ETRN&lt;br /&gt;
250-ENHANCEDSTATUSCODES&lt;br /&gt;
250-8BITMIME&lt;br /&gt;
250-DSN&lt;br /&gt;
250 SMTPUTF8&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
หากไม่พบ 250 SMTPUTF8 ให้ลองเอา Postfix ออกและลองใหม่อีกครั้ง เพราะอาจจะมีการติดตั้งส่วนเสริม software ของ Postfix ที่เป็นตัวเก่าเหลืออยู่&lt;br /&gt;
&lt;br /&gt;
== เปิดใช้งาน SMTP Auth ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
yum install  cyrus-sasl-plain&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;แก้ไขไฟล์ /etc/sasl2/smtpd.conf&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
pwcheck_method: saslauthd&lt;br /&gt;
mech_list: PLAIN LOGIN&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ปรับปรุงการตั้งค่า Postfix&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
postconf -e &#039;smtpd_sasl_path = smtpd&#039;&lt;br /&gt;
postconf -e &#039;smtpd_sasl_auth_enable = yes&#039;&lt;br /&gt;
service saslauthd start&lt;br /&gt;
postfix reload&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
สร้าง user ที่เราสามารถทดสอบการ authentication ได้ แทนที่ AnyUserName ด้วย user ของคุณ&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
useradd -m AnyUserName  -s /usr/sbin/nologin&lt;br /&gt;
passwd AnyUserName &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
สร้าง Auth key ของคุณ แทนที่ username ด้วย username  ของคุณ และแทนที่ password ด้วย password ของคุณ&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
perl -MMIME::Base64 -e &#039;print encode_base64(&amp;quot;username\0username\0password&amp;quot;);&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
แทนที่ dGVzdAB0ZXN0AHRlc3Q=  ด้วย key ที่คุณสร้างขึ้น&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
telnet 	localhost 25&lt;br /&gt;
EHLO localhost&lt;br /&gt;
AUTH PLAIN dGVzdAB0ZXN0AHRlc3Q=	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
คุณควรจะได้รับข้อความว่า  Authentication successful&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
จบการตั้งค่า Postfix ด้วยการอนุญาติให้เฉพาะผู้ใช้ที่ทำการ authenticate ทำการส่งไปยัง SMTP ได้&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
postconf -e &#039;broken_sasl_auth_clients = yes&#039;&lt;br /&gt;
postconf -e &#039;smtpd_sasl_security_options = noanonymous&#039;&lt;br /&gt;
postconf -e &#039;smtpd_sasl_local_domain = $mydomain&#039;&lt;br /&gt;
postconf -e &#039;smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination&#039;&lt;br /&gt;
postconf -e &#039;smtpd_relay_restrictions =  permit_mynetworks permit_sasl_authenticated reject_unauth_destination reject_sender_login_mismatch&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== เปิดใช้งาน TLS ==&lt;br /&gt;
&lt;br /&gt;
สร้าง certificates&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd /etc/postfix&lt;br /&gt;
&lt;br /&gt;
openssl req -new -outform PEM -out smtpd.cert \&lt;br /&gt;
   -newkey rsa:2048 -nodes -keyout smtpd.key -keyform PEM \&lt;br /&gt;
   -days 365 -x509&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ตอบคำถามต่อไปนี้เมื่อได้รับแจ้ง&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ปรับปรุงการตั้งค่า Postfix&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
postconf -e &#039;smtpd_enforce_tls = no&#039;&lt;br /&gt;
postconf -e &#039;smtpd_tls_security_level = may&#039;&lt;br /&gt;
postconf -e &#039;smtpd_tls_loglevel = 1&#039;&lt;br /&gt;
postconf -e &#039;smtpd_use_tls = yes&#039;&lt;br /&gt;
postconf -e &#039;smtpd_tls_key_file  = /etc/postfix/smtpd.key&#039;&lt;br /&gt;
postconf -e &#039;smtpd_tls_cert_file  = /etc/postfix/smtpd.cert&#039;&lt;br /&gt;
service postfix restart&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
สามารถทดสอบโดยการ telnet ไปยัง 25 และใช้คำสั่ง EHLO จะพบคำว่า STARTTLS&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
250-PIPELINING&lt;br /&gt;
250-SIZE 10240000&lt;br /&gt;
250-VRFY&lt;br /&gt;
250-ETRN&lt;br /&gt;
250-STARTTLS&lt;br /&gt;
250-AUTH PLAIN LOGIN&lt;br /&gt;
250-AUTH=PLAIN LOGIN&lt;br /&gt;
250-ENHANCEDSTATUSCODES&lt;br /&gt;
250-8BITMIME&lt;br /&gt;
250-DSN&lt;br /&gt;
250 SMTPUTF8&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
พิมพ์คำสั่งด้านล่าง&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
STARTTLS&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ปรากฎผลลัพธ์ดังนี้&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
220 2.0.0 Ready to start TLS&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== การส่งและรับ email จากอินเทอร์เน็ต  ==&lt;br /&gt;
&lt;br /&gt;
*หมายเหตุ การติดตั้ง mail ผ่าน command line อาจจะไปติดตั้งทับ Postfix ของคุณด้วย Postfix ตัวเก่ากว่า&lt;br /&gt;
&lt;br /&gt;
การส่ง email ด้วย telnet&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
telnet localhost 25&lt;br /&gt;
EHLO localhost&lt;br /&gt;
&lt;br /&gt;
MAIL FROM: &amp;lt;youruser@domain.tld&amp;gt; SMTPUTF8&lt;br /&gt;
RCPT TO: &amp;lt;EAI@IDN.idn&amp;gt;&lt;br /&gt;
data&lt;br /&gt;
Subject: A Test&lt;br /&gt;
&lt;br /&gt;
This is the body&lt;br /&gt;
&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ใช้เครื่องหมาย &amp;quot;.&amp;quot; เพื่อจบข้อความและทำการส่งข้อความ&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
ในส่วนนี้โปรดตรวจสอบให้แน่ใจว่าสามารถรับและส่ง mail ได้&lt;br /&gt;
&lt;br /&gt;
สามารถส่งข้อความด้วย EAI address และตรวจสอบได้ที่ /var/mail/mail.log ใน log ด้านล่าง  &lt;br /&gt;
&amp;lt;br/&amp;gt; หมายเหตุ: test@domain.tld คือ ผู้รับ local&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
Aug  3 02:48:49 ip-172-31-21-209 postfix/local[21614]: 7EAD343550: to=&amp;lt;test@domain.tld&amp;gt;, relay=local, delay=0.62, delays=0.62/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)&lt;br /&gt;
Aug  3 02:48:49 ip-172-31-21-209 postfix/qmgr[21586]: 7EAD343550: removed&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
email จะถูกจัดเก็บไว้ที่ /var/mail/&lt;br /&gt;
&lt;br /&gt;
หากไม่ได้รับ email ให้ลองใช้เครื่องมือ online อื่น เช่น mxtoolbox.com เพื่อตรวจสอบปัญหาที่เกิดขึ้น&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Courier authlib, Courier IMAP==&lt;br /&gt;
ขั้นตอนนี้จะทำการเปิดใช้งาน IMAP และ POP3 &lt;br /&gt;
&lt;br /&gt;
ติดตั้ง libtool ซึ่งจำเป็นสำหรับ authlib&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
yum install libtool-ltdl-devel.x86_64&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ติดตั้ง Courier Unicode Library 1.2 ซึ่งสามารถดาวน์โหลดได้จาก http://sourceforge.net/projects/courier/files/courier-unicode  &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
tar -jxvf courier-unicode-1.2.tar.bz2&lt;br /&gt;
cd courier-unicode-1.2&lt;br /&gt;
./configure&lt;br /&gt;
make &lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ดาวน์โหลด authlib ได้จาก http://sourceforge.net/projects/courier/files/authlib/ เวอร์ชั่นล่าสุดคือ 0.66.3 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
tar -jxvf courier-authlib-0.66.3.tar.bz2&lt;br /&gt;
cd courier-authlib-0.66.3&lt;br /&gt;
./configure --with-authshadow --with-mailuser=postfix --with-mailgroup=postfix&lt;br /&gt;
make &lt;br /&gt;
make install&lt;br /&gt;
make install-configure&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ &#039;&#039;/usr/local/etc/authlib/authdaemonrc&#039;&#039; และเปลี่ยนค่า authentication method&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
authmodulelist=&amp;quot;authshadow&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ &#039;&#039;/etc/ld.so.conf.d/locallibs.conf&#039;&#039; และเพิ่ม&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
/usr/local/lib&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
นำค่าที่ปรับเปลี่ยนไปใช้งาน&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
ldconfig&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ต่อจากนั้นให้ Start&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
/usr/local/sbin/authdaemond  start&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ตรวจสอบว่าโปรแกรมทำงานอยู่หรือไม่&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
ps -ef |grep authdaemond&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ควรจะแสดงค่าดังต่อไปนี้&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 26393 26392  0 10:26 ?        00:00:00 /usr/local/libexec/courier-authlib/authdaemond&lt;br /&gt;
 26394 26393  0 10:26 ?        00:00:00 /usr/local/libexec/courier-authlib/authdaemond&lt;br /&gt;
 26395 26393  0 10:26 ?        00:00:00 /usr/local/libexec/courier-authlib/authdaemond&lt;br /&gt;
 26396 26393  0 10:26 ?        00:00:00 /usr/local/libexec/courier-authlib/authdaemond&lt;br /&gt;
 26397 26393  0 10:26 ?        00:00:00 /usr/local/libexec/courier-authlib/authdaemond&lt;br /&gt;
 26398 26393  0 10:26 ?        00:00:00 /usr/local/libexec/courier-authlib/authdaemond&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
หมายเหตุ: &#039;&#039;&#039;คุณจะต้องเปลี่ยนเป็น user ปกติที่ไม่ใช่ root&#039;&#039;&#039; (สร้าง user ใหม่ถ้าคุณยังไม่เคยสร้าง user ไว้)&lt;br /&gt;
&lt;br /&gt;
ติดตั้ง courier imap ซึ่งจะรองรับทั้ง IMAP และ POP3&lt;br /&gt;
&lt;br /&gt;
ดาวน์โหลดได้จาก http://sourceforge.net/projects/courier/files/imap&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
tar -jxvf courier-imap-4.16.2.tar.bz2&lt;br /&gt;
cd courier-imap-4.16.2&lt;br /&gt;
./configure&lt;br /&gt;
make&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
จากตรงนี้ คุณสามารถกลับไปใช้ root ถ้าคุณไม่ต้องการใช้คำสั่ง sudo &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo make install&lt;br /&gt;
sudo make install-configure&lt;br /&gt;
cd /usr/lib/courier-imap/libexec&lt;br /&gt;
./pop3d.rc start&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ตรวจสอบว่า imap ทำงานอยู่หรือไม่&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
netstat -ntlp | grep 110&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;การเปิดใช้งาน SSL ด้วย self signed certificate&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd /usr/lib/courier-imap/etc&lt;br /&gt;
vi pop3d.cnf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ปรับเปลี่ยนได้ตามต้องการจากนั้นให้ save และ quit&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;vim&amp;quot;&amp;gt;&lt;br /&gt;
[ req_dn ]&lt;br /&gt;
C=US&lt;br /&gt;
ST=NY&lt;br /&gt;
L=New York&lt;br /&gt;
O=Courier Mail Server&lt;br /&gt;
OU=Automatically-generated POP3 SSL key&lt;br /&gt;
CN=localhost&lt;br /&gt;
emailAddress=postmaster@example.com&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ต่อไปให้สร้าง certificates&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 cd ../share&lt;br /&gt;
 ./mkpop3dcert&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ตอนนี้คุณสามารถ run pop ด้วย ssl และ listen ที่พอร์ต 995&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd /usr/lib/courier-imap/libexec&lt;br /&gt;
./pop3d-ssl.rc start&lt;br /&gt;
netstat -tulpn |grep 995&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ขั้นตอนสุดท้ายเปิดการใช้งาน  pop3 และ pop3s ที่ init&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
@TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ต่อด้วย Imap&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
/usr/lib/courier-imap/libexec/imapd.rc start&lt;br /&gt;
netstat -ntlp | grep 143&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ &#039;&#039;/usr/lib/courier-imap/etc/imapd&#039;&#039; เปลี่ยน &#039;&#039;&#039;IMAPDSTART=NO&#039;&#039;&#039;   เป็น&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;vim&amp;quot;&amp;gt;&lt;br /&gt;
IMAPDSTART=yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
เปิดการใช้งาน imap SSL โดยใช้ self generated certificates&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ &#039;&#039;/usr/lib/courier-imap/etc/imapd.cnf&#039;&#039;  และแก้ไขค่าให้สอดคล้องกันจากนั้นให้สร้าง certs&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;vim&amp;quot;&amp;gt;&lt;br /&gt;
 /usr/lib/courier-imap/share/mkimapdcert&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ต่อไป start และ ตรวจสอบ imap-ssl&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
/usr/lib/courier-imap/libexec/imapd-ssl.rc start&lt;br /&gt;
netstat -ntlp |grep 993&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ขั้นตอนสุดท้ายเปิดใช้งานที่ startup&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
@TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ตั้งค่า Postfix ให้ใช้ Maildir เป็นที่เก็บ Mail&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
postconf -e &#039;home_mailbox = Maildir/&#039;&lt;br /&gt;
postfix reload&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ปรับเปลี่ยน Skeleton และสร้างโฟลเดอร์สำหรับผู้ใช้งานที่เราสร้างขึ้นก่อนหน้านี้ จากในตัวอย่างเราใช้ชื่อผู้ใช้งาน test&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
&lt;br /&gt;
mkdir -p /home/test/Maildir/{cur,new,tmp}&lt;br /&gt;
chown test.test /home/test/Maildir/{,cur,new,tmp}&lt;br /&gt;
chmod 0700 /home/test/Maildir/{,cur,new,tmp}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ทดสอบ IMAP และ POP3 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
telnet localhost imap&lt;br /&gt;
ok login username password&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
telnet localhost pop3&lt;br /&gt;
User username&lt;br /&gt;
Pass password&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== เปิด Firewall ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
firewall-cmd --zone=public --add-port=995/tcp --permanent&lt;br /&gt;
firewall-cmd --zone=public --add-port=110/tcp --permanent&lt;br /&gt;
firewall-cmd --zone=public --add-port=143/tcp --permanent&lt;br /&gt;
firewall-cmd --zone=public --add-port=25/tcp --permanent&lt;br /&gt;
firewall-cmd --reload&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ติดตั้ง Squirrel-mail ==&lt;br /&gt;
&lt;br /&gt;
 Make sure you have apache and php installed.&lt;br /&gt;
&lt;br /&gt;
ติดตั้งและแก้ไข Squirrel mail&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd to-your-public-html-folder&lt;br /&gt;
wget http://interlab.ait.ac.th/eai-wiki/files/squirrelmail.zip&lt;br /&gt;
unzip squirrelmail.zip&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ config และเปลี่ยนค่า &#039;&#039;&#039;attachchment_dir&#039;&#039;&#039; และ &#039;&#039;&#039;data_dir&#039;&#039;&#039; โดยอย่าลืมสร้างโฟลเดอร์&lt;br /&gt;
เปลี่ยน ownership เป็น &#039;&#039;&#039;apache user&#039;&#039;&#039; ของคุณและอนุญาติให้สามารถทำการเขียนได้&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
vi squirrelmail/config/config.php &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
การเข้าถึง squirrelmail&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
http://your-domain/squirrelmail/&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ลิงค์ที่เกี่ยวข้อง ==&lt;br /&gt;
Mail server จะไม่รับและส่ง email จากภายนอก&lt;br /&gt;
&lt;br /&gt;
== แหล่งที่มา ==&lt;br /&gt;
&lt;br /&gt;
http://postfix.org/&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B9%80%E0%B8%95%E0%B9%87%E0%B8%A1_-_%E0%B8%AD%E0%B8%98%E0%B8%B4%E0%B8%9A%E0%B8%B2%E0%B8%A2%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B8%A5%E0%B8%B0%E0%B9%80%E0%B8%AD%E0%B8%B5%E0%B8%A2%E0%B8%94%E0%B8%97%E0%B8%B5%E0%B8%A5%E0%B8%B0%E0%B8%82%E0%B8%B1%E0%B9%89%E0%B8%99%E0%B8%95%E0%B8%AD%E0%B8%99&amp;diff=48</id>
		<title>ฉบับเต็ม - อธิบายอย่างละเอียดทีละขั้นตอน</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B9%80%E0%B8%95%E0%B9%87%E0%B8%A1_-_%E0%B8%AD%E0%B8%98%E0%B8%B4%E0%B8%9A%E0%B8%B2%E0%B8%A2%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B8%A5%E0%B8%B0%E0%B9%80%E0%B8%AD%E0%B8%B5%E0%B8%A2%E0%B8%94%E0%B8%97%E0%B8%B5%E0%B8%A5%E0%B8%B0%E0%B8%82%E0%B8%B1%E0%B9%89%E0%B8%99%E0%B8%95%E0%B8%AD%E0%B8%99&amp;diff=48"/>
		<updated>2017-02-14T07:11:54Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;การติดตั้ง Postfix กับ SMTPUTF8 ที่เปิดใช้งาน, Cyrus SASL และ OpenSSL&amp;#039;&amp;#039;&amp;#039;  == สรุปสาระสำคั...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;การติดตั้ง Postfix กับ SMTPUTF8 ที่เปิดใช้งาน, Cyrus SASL และ OpenSSL&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== สรุปสาระสำคัญของ mail server ==&lt;br /&gt;
คู่มือนี้ใช้สำหรับการติดตั้ง mail server ที่สามารถรับ mail ที่เป็น SMTPUTF8 ได้ นอกจากนี้ยังป้องการการตีกลับของอีเมลหากผู้ส่งส่งไปยัง mail server&lt;br /&gt;
&lt;br /&gt;
ที่ไม่รองรับ SMTPUTF8 รวมถึง IMAP และ POP3 ที่ใช้ Courier ด้วย ผู้ใช้จะถูกเพิ่มเป็น local user ถึงแม้ว่าจะ login ผ่าน SSH หรือไม่ก็ตาม mail ทั้งหมดจะถูกเก็บไว้ที่ /home/user&lt;br /&gt;
&lt;br /&gt;
Squirrel-mail ที่ถูกแก้ไขนี้จะถูกติดตั้งในการส่งและรับ email (จะต้องมีการทดสอบ)&lt;br /&gt;
&lt;br /&gt;
email client สามารถนำมาใช้ได้ โดยใช้ username ที่ไม่ได้เป็น EAI address&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ใช้ Ubuntu 14.04 (Trusty)&lt;br /&gt;
&lt;br /&gt;
== ข้อสังเกต ความต้องการและการตั้งค่าเริ่มต้น ==&lt;br /&gt;
&lt;br /&gt;
* คุณต้องแน่ใจว่าไม่มีการติดตั้ง Postfix หรือใช้ apt-get ติดตั้งส่วนเสริมของ mail software เพราะว่ามันจะทำการติดตั้ง Postfix ตัวเก่าที่ไม่รองรับ SMTPUTF8&lt;br /&gt;
* ถ้าคุณได้ติดตั้งส่วนเสริมของ mail software หลังจากการติดตั้ง คุณต้องทดสอบให้แน่ใจว่า server ของคุณสามารถส่งกลับมาเป็น SMTPUTF8&lt;br /&gt;
* DNS ของคุณควรต้องติดตั้งให้พร้อมก่อนการตั้งค่า&lt;br /&gt;
* hostname คือ ชื่อโดเมนของคุณ เช่น domain.com &lt;br /&gt;
* mail.hostname คือ ชื่อ Mail server ของคุณ เช่น mail.domain.com&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;แก้ไข hostname &#039;&#039;&#039;&lt;br /&gt;
&#039;&#039;ถ้าคุณใช้ international domain ให้คุณใช้ในรูปแบบ punycode&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
ตัวอย่าง: mail.วีคลาส.ไทย punycode equivalent ควรจะเป็น mail.xn--42c0eeo3bp.xn--o3cw4h&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo hostname mail.domain.com&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
ปิดและเปิด server ใหม่ เพื่อปรับปรุง hostname&lt;br /&gt;
&lt;br /&gt;
หลังจากปิดและเปิด server ใหม่แล้ว ให้ใช้คำสั่งต่อไปนี้จะแสดง hostname เพื่อดูว่า hostname เปลี่ยนแล้ว&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
hostname&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ติดตั้ง Postfix จาก source และ libraries ที่จำเป็น (Cyrus  SASL, OPENSSL)  ==&lt;br /&gt;
&lt;br /&gt;
ใช้คำสั่ง get เพื่อดาวน์โหลด Postfix เวอร์ชั่น 3.0.1 หรือเวอร์ชั่นที่ใหม่กว่าเพื่อเปิดใช้งาน SMTPUTF8 คุณสามารถโหลดได้จาก http://www.postfix.org/download.html ในตัวอย่างด้านล่าง เราดาวน์โหลด postfix-3.0.1.tar.gz เวอร์ชั่นของคุณอาจจะแตกต่างออกไป ขณะนี้การติดตั้ง Postfix ด้วย apt-get นั้นจะทำการติดตั้ง Postfix เวอร์ชั่นเก่าที่ยังไม่รองรับ SMTPUTF8  ซึ่งอาจจะมีการเปลี่ยนแปลงในภายหลัง คุณสามารถดูคู่มือต้นฉบับได้จาก http://www.linuxfromscratch.org/blfs/view/cvs/server/postfix.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ติดตั้ง libraries ที่จำเป็นสำหรับ users และ directory&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install icu-devtools libicu-dev libsasl2-dev libssl-dev  &lt;br /&gt;
sudo apt-get build-dep postfix&lt;br /&gt;
sudo groupadd -g 32 postfix &lt;br /&gt;
sudo groupadd postdrop &lt;br /&gt;
sudo useradd -c &amp;quot;Postfix Daemon User&amp;quot; -d /var/spool/postfix -g postfix  -s /bin/false -u 32 postfix &lt;br /&gt;
sudo chown -v postfix:postfix /var/mail&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ดาวน์โหลด Postfix 3.0.1 หรือเวอร์ชั่นที่ใหม่กว่า&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
tar -xzvf postfix-3.0.1.tar.gz&lt;br /&gt;
cd postfix-3.0.1&lt;br /&gt;
sed -i &#039;s/.\x08//g&#039; README_FILES/*&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Compile ด้วย openssl และ sasl auth &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
make CCARGS=&amp;quot;-DUSE_TLS -I/usr/include/openssl/  \&lt;br /&gt;
             -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl&amp;quot; \			&lt;br /&gt;
             AUXLIBS=&amp;quot;-lssl -lcrypto -lsasl2&amp;quot; makefiles &amp;amp;&amp;amp; make&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ติดตั้ง Postfix&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh postfix-install -non-interactive   daemon_directory=/usr/lib/postfix  \&lt;br /&gt;
                    manpage_directory=/usr/share/man  \&lt;br /&gt;
                    html_directory=/usr/share/doc/postfix-3.0.1/html  \&lt;br /&gt;
                    readme_directory=/usr/share/doc/postfix-3.0.1/readme&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Postfix ==&lt;br /&gt;
&lt;br /&gt;
สร้าง Mails Alias สำหรับ root หรือ  postmaster เพื่อส่งไปยังผู้ใช้งานจริง (YourLogin)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo vi /etc/aliases&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
copy และ paste ตัว code ด้านล่าง โดยเปลี่ยน YourLogin เป็น user ของคุณเองแล้วทำการ save และ quit&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
MAILER-DAEMON:    postmaster&lt;br /&gt;
postmaster:       root&lt;br /&gt;
root:             YourLogin&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ต่อจากนั้น&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo newaliases&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
แก้ไข mail.domain.tld, domain.tld,  yourotherdomain.tld (yourotherdomain.tld ไม่จำเป็นต้องใส่ก็ได้)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;vim&amp;quot;&amp;gt;&lt;br /&gt;
sudo postconf -e &#039;myhostname  = mail.domain.tld&#039;&lt;br /&gt;
sudo postconf -e &#039;mydomain    = domain.tld&#039;&lt;br /&gt;
sudo postconf -e &#039;myorigin    = $mydomain&#039;&lt;br /&gt;
sudo postconf -e &#039;inet_interfaces = all&#039;&lt;br /&gt;
sudo postconf -e &#039;mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/24&#039;&lt;br /&gt;
sudo postconf -e &#039;alias_database = hash:/etc/aliases&#039;&lt;br /&gt;
sudo postconf -e &#039;alias_maps = hash:/etc/aliases&#039;&lt;br /&gt;
sudo postconf -e &#039;mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, yourotherdomain.tld&#039;&lt;br /&gt;
sudo postconf -e &#039;smtputf8_enable = yes&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
ขั้นตอนสุดท้าย start Postfix ในครั้งแรก&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo /usr/sbin/postfix start&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
@TODO &lt;br /&gt;
Enable Postfix service to run at startup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ลองใช้งานและส่ง mail โดยใช้ Telnet ส่ง mail ไปยัง server อื่นๆ เช่น gmail&lt;br /&gt;
&lt;br /&gt;
== ทดสอบว่าคุณมีการเปิดการใช้งาน SMTPUTF8 หรือไม่ ==&lt;br /&gt;
&lt;br /&gt;
ป้อนคำสั่งในหน้า console ซึ่งคำสั่งจะทำการเชื่อมต่อไปยัง SMTP &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 telnet localhost 25&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ควรจะแสดงผลลัพธ์ดังนี้&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is &#039;^]&#039;.&lt;br /&gt;
220 YourHostName ESMTP Postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
พิมพ์คำสั่งด้านล่างแล้วกด enter&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
EHLO localhost&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
เมื่อพบว่ามี &#039;&#039;&#039;250 SMTPUTF8&#039;&#039;&#039; อยู่ แสดงว่า server ของคุณ สามารถรับและส่ง mail จากที่อยู่ email สากลได้&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
250-YourHostName&lt;br /&gt;
250-PIPELINING&lt;br /&gt;
250-SIZE 10240000&lt;br /&gt;
250-VRFY&lt;br /&gt;
250-ETRN&lt;br /&gt;
250-ENHANCEDSTATUSCODES&lt;br /&gt;
250-8BITMIME&lt;br /&gt;
250-DSN&lt;br /&gt;
250 SMTPUTF8&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
หากไม่พบ 250 SMTPUTF8 ให้ลองเอา Postfix ออกและลองใหม่อีกครั้ง เพราะอาจจะมีการติดตั้งส่วนเสริม software ของ Postfix ที่เป็นตัวเก่าเหลืออยู่&lt;br /&gt;
&lt;br /&gt;
== เปิดใช้งาน SMTP Auth ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get install libsasl2-modules sasl2-bin&lt;br /&gt;
sudo cp /etc/default/saslauthd /etc/default/saslauthd-postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์  /etc/default/saslauthd-postfix โดยกำหนดตัวแปลต่อไปนี้ START, NAME และ OPTIONS&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
START=yes&lt;br /&gt;
DESC=&amp;quot;SASL Auth. Daemon for Postfix&amp;quot;&lt;br /&gt;
NAME=&amp;quot;saslauthd-postf&amp;quot;      # max. 15 char.&lt;br /&gt;
# Option -m sets working dir for saslauthd (contains socket)&lt;br /&gt;
OPTIONS=&amp;quot;-c -m /var/spool/postfix/var/run/saslauthd&amp;quot;        # postfix/smtp in chroot()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo rm -rf /run/saslauthd&lt;br /&gt;
sudo ln -s /var/spool/postfix/var/run/saslauthd   /run/saslauthd&lt;br /&gt;
sudo dpkg-statoverride --add root sasl 710 /var/spool/postfix/var/run/saslauthd&lt;br /&gt;
sudo adduser postfix sasl&lt;br /&gt;
cd /etc/pam.d&lt;br /&gt;
sudo cp other smtp&lt;br /&gt;
sudo service saslauthd  restart&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo mkdir /etc/sasl2 &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
สร้าง หรือ แก้ไขไฟล์ /etc/sasl2/smtpd.conf ใช้เฉพาะวิธีการแบบ PLAIN เท่านั้น&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
pwcheck_method: saslauthd&lt;br /&gt;
mech_list: PLAIN LOGIN&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ปรับปรุงการตั้งค่า Postfix&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_path = smtpd&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_auth_enable = yes&#039;&lt;br /&gt;
sudo postfix reload&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
สร้าง user ที่เราสามารถทดสอบการ authentication ได้ แทนที่ AnyUserName ด้วย user ของคุณ&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo useradd -m AnyUserName  -s /usr/sbin/nologin&lt;br /&gt;
sudo passwd AnyUserName &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
สร้าง Auth key ของคุณ แทนที่ username ด้วย username  ของคุณ และแทนที่ password ด้วย password ของคุณ&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
perl -MMIME::Base64 -e &#039;print encode_base64(&amp;quot;username\0username\0password&amp;quot;);&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
แทนที่ dGVzdAB0ZXN0AHRlc3Q=  ด้วย key ที่คุณสร้างขึ้น&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
telnet 	localhost 25&lt;br /&gt;
EHLO localhost&lt;br /&gt;
AUTH PLAIN dGVzdAB0ZXN0AHRlc3Q=	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
คุณควรจะได้รับข้อความว่า  Authentication successful&lt;br /&gt;
&lt;br /&gt;
จบการตั้งค่า Postfix ด้วยการอนุญาติให้เฉพาะผู้ใช้ที่ทำการ authenticate ทำการส่งไปยัง SMTP ได้&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo postconf -e &#039;broken_sasl_auth_clients = yes&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_security_options = noanonymous&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_local_domain = $mydomain&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_relay_restrictions =  permit_mynetworks permit_sasl_authenticated reject_unauth_destination reject_sender_login_mismatch&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== เปิดใช้งาน TLS ==&lt;br /&gt;
&lt;br /&gt;
สร้าง certificates&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd /etc/postfix&lt;br /&gt;
&lt;br /&gt;
sudo openssl req -new -outform PEM -out smtpd.cert \&lt;br /&gt;
   -newkey rsa:2048 -nodes -keyout smtpd.key -keyform PEM \&lt;br /&gt;
   -days 365 -x509&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ตอบคำถามต่อไปนี้เมื่อได้รับแจ้ง&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ปรับปรุงการตั้งค่า Postfix&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo postconf -e &#039;smtpd_enforce_tls = no&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_tls_security_level = may&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_tls_loglevel = 1&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_use_tls = yes&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_tls_key_file  = /etc/postfix/smtpd.key&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_tls_cert_file  = /etc/postfix/smtpd.cert&#039;&lt;br /&gt;
sudo postfix reload&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
สามารถทดสอบโดยการ telnet ไปยัง 25 และใช้คำสั่ง EHLO จะพบคำว่า STARTTLS&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
250-PIPELINING&lt;br /&gt;
250-SIZE 10240000&lt;br /&gt;
250-VRFY&lt;br /&gt;
250-ETRN&lt;br /&gt;
250-STARTTLS&lt;br /&gt;
250-AUTH PLAIN LOGIN&lt;br /&gt;
250-AUTH=PLAIN LOGIN&lt;br /&gt;
250-ENHANCEDSTATUSCODES&lt;br /&gt;
250-8BITMIME&lt;br /&gt;
250-DSN&lt;br /&gt;
250 SMTPUTF8&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
พิมพ์คำสั่งด้านล่าง&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
STARTTLS&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ปรากฎผลลัพธ์ดังนี้&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
220 2.0.0 Ready to start TLS&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== การรับและส่ง email จากอินเทอร์เน็ต ==&lt;br /&gt;
&lt;br /&gt;
*หมายเหตุ การติดตั้ง mail ผ่าน command line อาจจะไปติดตั้งทับ Postfix ของคุณด้วย Postfix ตัวเก่ากว่า&lt;br /&gt;
&lt;br /&gt;
การส่ง email ด้วย telnet&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
telnet localhost 25&lt;br /&gt;
EHLO localhost&lt;br /&gt;
&lt;br /&gt;
MAIL FROM: &amp;lt;youruser@domain.tld&amp;gt; SMTPUTF8&lt;br /&gt;
RCPT TO: &amp;lt;EAI@IDN.idn&amp;gt;&lt;br /&gt;
data&lt;br /&gt;
Subject: A Test&lt;br /&gt;
&lt;br /&gt;
This is the body&lt;br /&gt;
&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ใช้เครื่องหมาย &amp;quot;.&amp;quot; เพื่อจบข้อความและทำการส่งข้อความ&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ในส่วนนี้โปรดตรวจสอบให้แน่ใจว่าสามารถรับและส่ง mail ได้&lt;br /&gt;
&lt;br /&gt;
สามารถส่งข้อความด้วย EAI address และตรวจสอบได้ที่ /var/mail/mail.log ใน log ด้านล่าง &lt;br /&gt;
&amp;lt;br/&amp;gt; หมายเหตุ test@domain.tld คือ ผู้รับ local&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
Aug  3 02:48:49 ip-172-31-21-209 postfix/local[21614]: 7EAD343550: to=&amp;lt;test@domain.tld&amp;gt;, relay=local, delay=0.62, delays=0.62/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)&lt;br /&gt;
Aug  3 02:48:49 ip-172-31-21-209 postfix/qmgr[21586]: 7EAD343550: removed&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
email จะถูกจัดเก็บไว้ที่ /var/mail/&lt;br /&gt;
&lt;br /&gt;
หากไม่ได้รับ email ให้ลองใช้เครื่องมือ online อื่น เช่น mxtoolbox.com เพื่อตรวจสอบปัญหาที่เกิดขึ้น&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Courier authlib, Courier IMAP==&lt;br /&gt;
ขั้นตอนนี้จะทำการเปิดใช้งาน IMAP และ POP3 &lt;br /&gt;
&lt;br /&gt;
ติดตั้ง libtool ซึ่งจำเป็นสำหรับ authlib&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get install libtool&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ติดตั้ง Courier Unicode Library 1.2 ซึ่งสามารถดาวน์โหลดได้จาก http://sourceforge.net/projects/courier/files/courier-unicode &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
tar -jxvf courier-unicode-1.2.tar.bz2&lt;br /&gt;
cd courier-unicode-1.2&lt;br /&gt;
./configure&lt;br /&gt;
make &lt;br /&gt;
sudo make install&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ดาวน์โหลด authlib ได้จาก http://sourceforge.net/projects/courier/files/authlib/ เวอร์ชั่นล่าสุดคือ 0.66.3 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
tar -jxvf courier-authlib-0.66.3.tar.bz2&lt;br /&gt;
cd courier-authlib-0.66.3&lt;br /&gt;
./configure --with-authshadow --with-mailuser=postfix --with-mailgroup=postfix&lt;br /&gt;
make &lt;br /&gt;
sudo make install&lt;br /&gt;
sudo make install-configure&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ /usr/local/etc/authlib/authdaemonrc และเปลี่ยนค่า authentication method&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
authmodulelist=&amp;quot;authshadow&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
เฉพาะ authshadow เท่านั้นที่ทำงานร่วมกับชื่อผู้ใช้ที่เป็น non-ASCII สำหรับ authentications ตัวอื่น ๆ เช่น PAM และ  MYSQL จะส่งผลลัพธ์ออกมาเป็นตัวอักษรที่อ่านไม่ออกซึ่งจะทำให้การ authenticate ล้มเหลว&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ต่อจากนั้นให้ Start&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 sudo /usr/local/sbin/authdaemond  start&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ตรวจสอบว่าโปรแกรมทำงานอยู่หรือไม่&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo ps -ef |grep authdaemond&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ควรจะแสดงค่าดังต่อไปนี้&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 26393 26392  0 10:26 ?        00:00:00 /usr/local/libexec/courier-authlib/authdaemond&lt;br /&gt;
 26394 26393  0 10:26 ?        00:00:00 /usr/local/libexec/courier-authlib/authdaemond&lt;br /&gt;
 26395 26393  0 10:26 ?        00:00:00 /usr/local/libexec/courier-authlib/authdaemond&lt;br /&gt;
 26396 26393  0 10:26 ?        00:00:00 /usr/local/libexec/courier-authlib/authdaemond&lt;br /&gt;
 26397 26393  0 10:26 ?        00:00:00 /usr/local/libexec/courier-authlib/authdaemond&lt;br /&gt;
 26398 26393  0 10:26 ?        00:00:00 /usr/local/libexec/courier-authlib/authdaemond&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ติดตั้ง courier imap ซึ่งจะรองรับทั้ง IMAP และ POP3&lt;br /&gt;
&lt;br /&gt;
ดาวน์โหลดได้จาก http://sourceforge.net/projects/courier/files/imap&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
tar -jxvf courier-imap-4.16.2.tar.bz2&lt;br /&gt;
cd courier-imap-4.16.2&lt;br /&gt;
./configure&lt;br /&gt;
make&lt;br /&gt;
sudo make install&lt;br /&gt;
sudo make install-configure&lt;br /&gt;
&lt;br /&gt;
cd /usr/lib/courier-imap/libexec&lt;br /&gt;
sudo  ./pop3d.rc start&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ตรวจสอบว่า imap ทำงานอยู่หรือไม่&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo  netstat -ntlp | grep 110&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;การเปิดใช้งาน SSL ด้วย self signed certificate&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd /usr/lib/courier-imap/etc&lt;br /&gt;
sudo vi pop3d.cnf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ปรับเปลี่ยนได้ตามต้องการจากนั้นให้ save และ quit&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;vim&amp;quot;&amp;gt;&lt;br /&gt;
[ req_dn ]&lt;br /&gt;
C=US&lt;br /&gt;
ST=NY&lt;br /&gt;
L=New York&lt;br /&gt;
O=Courier Mail Server&lt;br /&gt;
OU=Automatically-generated POP3 SSL key&lt;br /&gt;
CN=localhost&lt;br /&gt;
emailAddress=postmaster@example.com&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ต่อไปให้สร้าง certificates&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 cd ../share&lt;br /&gt;
 sudo ./mkpop3dcert&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ตอนนี้สามารถ run pop ด้วย ssl และ listen ที่พอร์ต 995&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd /usr/lib/courier-imap/libexec&lt;br /&gt;
sudo ./pop3d-ssl.rc start&lt;br /&gt;
sudo  netstat -tulpn |grep 995&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ขั้นตอนสุดท้ายเปิดการใช้งาน  pop3 และ pop3s ที่ init&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo ln -s /usr/lib/courier-imap/libexec/pop3d    /etc/init.d/&lt;br /&gt;
sudo ln -s /usr/lib/courier-imap/libexec/pop3d-ssl    /etc/init.d/&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
update-rc.d pop3d defaults&lt;br /&gt;
update-rc.d pop3d-ssl defaults&lt;br /&gt;
&lt;br /&gt;
@TODO&lt;br /&gt;
*Run level for ubuntu*&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ต่อด้วย Imap&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo /usr/lib/courier-imap/libexec/imapd.rc start&lt;br /&gt;
sudo netstat -ntlp | grep 143&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไข imapd&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo vi /usr/lib/courier-imap/etc/imapd&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
เปลี่ยนเป็น yes&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;vim&amp;quot;&amp;gt;&lt;br /&gt;
IMAPDSTART=yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
เปิดการใช้งาน imap SSL โดยใช้ self generated certificates&lt;br /&gt;
&lt;br /&gt;
แก้ไขการตั้งค่าและปรับเปลี่ยนให้สอดคล้องกัน&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;vim&amp;quot;&amp;gt;&lt;br /&gt;
sudo vi /usr/lib/courier-imap/etc/imapd.cnf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
สร้าง certificate&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;vim&amp;quot;&amp;gt;&lt;br /&gt;
 sudo /usr/lib/courier-imap/share/mkimapdcert&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ต่อไป start และ ตรวจสอบ imap-ssl &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo /usr/lib/courier-imap/libexec/imapd-ssl.rc start&lt;br /&gt;
sudo netstat -ntlp |grep 993&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ขั้นตอนสุดท้ายเปิดใช้งานที่ startup&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
@TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ตั้งค่า Postfix ให้ใช้ Maildir เป็นที่เก็บ Mail&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo postconf -e &#039;home_mailbox = Maildir/&#039;&lt;br /&gt;
sudo postfix reload&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ปรับเปลี่ยน Skeleton และสร้างโฟลเดอร์สำหรับผู้ใช้งานที่เราสร้างขึ้นก่อนหน้านี้ จากในตัวอย่างเราใช้ชื่อผู้ใช้งาน test&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
&lt;br /&gt;
sudo mkdir -p /home/test/Maildir/{cur,new,tmp}&lt;br /&gt;
sudo chown test.test /home/test/Maildir/{,cur,new,tmp}&lt;br /&gt;
sudo chmod 0700 /home/test/Maildir/{,cur,new,tmp}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ทดสอบ IMAP และ POP3 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
telnet localhost imap&lt;br /&gt;
ok login username password&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
telnet localhost pop3&lt;br /&gt;
User username&lt;br /&gt;
Pass password&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ติดตั้ง Squirrel-mail ==&lt;br /&gt;
&lt;br /&gt;
ติดตั้งและแก้ไข Squirrel mail&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd /var/www/html&lt;br /&gt;
wget http://interlab.ait.ac.th/eai-wiki/files/squirrelmail.zip&lt;br /&gt;
unzip squirrelmail.zip&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ config และเปลี่ยนค่า &#039;&#039;&#039;attachchment_dir&#039;&#039;&#039; และ &#039;&#039;&#039;data_dir&#039;&#039;&#039; โดยอย่าลืมสร้างโฟลเดอร์&lt;br /&gt;
เปลี่ยน ownership เป็น &#039;&#039;&#039;apache user&#039;&#039;&#039; ของคุณและอนุญาติให้สามารถทำการเขียนได้&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
vi /var/www/html/squirrelmail/config/config.php &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
การเข้าถึง squirrelmail&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
http://your-domain/squirrelmail/&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ข้อผิดพลาด ==&lt;br /&gt;
&lt;br /&gt;
สิ่งนี้เกิดขึ้นเมื่อทำการ login เข้าสู่  IMAP&lt;br /&gt;
&lt;br /&gt;
  error while loading shared libraries: libcourier-unicode.so.1: cannot open shared object file: No such file or directory&lt;br /&gt;
&lt;br /&gt;
วิธีการแก้ปัญหา &#039;&#039;sudo vi /etc/ld.so.conf&#039;&#039;  แล้วเพิ่ม&lt;br /&gt;
&lt;br /&gt;
 /usr/local/lib&lt;br /&gt;
&lt;br /&gt;
จากนั้นให้ run &#039;&#039;sudo ldconfig&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== ลิงค์ที่เกี่ยวข้อง ==&lt;br /&gt;
Mail server จะไม่รับและส่ง email จากภายนอก&lt;br /&gt;
&lt;br /&gt;
== แหล่งที่มา ==&lt;br /&gt;
&lt;br /&gt;
http://postfix.org/&lt;br /&gt;
&lt;br /&gt;
https://kiranjith.wordpress.com/2010/03/15/12-postfix-installing-and-configuring-courier-auth-libs-courier-imap-and-pop3/&lt;br /&gt;
&lt;br /&gt;
http://www.linuxfromscratch.org/blfs/view/cvs/server/postfix.html&lt;br /&gt;
&lt;br /&gt;
http://www.postfix.org/SASL_README.html&lt;br /&gt;
https://wiki.debian.org/PostfixAndSASL&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=47</id>
		<title>ฉบับย่อ - การติดตั้งแบบรวดเร็ว</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=47"/>
		<updated>2017-02-14T07:00:21Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;สร้าง directories และติดตั้ง libraries ที่จำเป็น&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-ssl  icu-devtools libicu-dev libsasl2-dev libssl-dev libsasl2-modules sasl2-bin&lt;br /&gt;
sudo mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
sudo apt-get build-dep postfix&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
ตอบ: &lt;br /&gt;
 Web Admin - No&lt;br /&gt;
 Internet Site&lt;br /&gt;
&lt;br /&gt;
ดาวน์โหลดและสร้าง postfix-3.x &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
tar -xzvf postfix-3.0.2.tar.gz&lt;br /&gt;
cd postfix-3.0.2&lt;br /&gt;
sed -i &#039;s/.\x08//g&#039; README_FILES/*&lt;br /&gt;
&lt;br /&gt;
make CCARGS=&amp;quot;-DUSE_TLS -I/usr/include/openssl/  \&lt;br /&gt;
             -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl&amp;quot; \			&lt;br /&gt;
             AUXLIBS=&amp;quot;-lssl -lcrypto -lsasl2&amp;quot; makefiles &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sudo sh postfix-install -non-interactive   daemon_directory=/usr/lib/postfix  \&lt;br /&gt;
                    manpage_directory=/usr/share/man  \&lt;br /&gt;
                    html_directory=/usr/share/doc/postfix-3.0.1/html  \&lt;br /&gt;
                    readme_directory=/usr/share/doc/postfix-3.0.1/readme&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
การตั้งค่า SASL&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;					&lt;br /&gt;
sudo cp /etc/default/saslauthd /etc/default/saslauthd-postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ &#039;&#039;&#039;/etc/default/saslauthd-postfix&#039;&#039;&#039; โดยกำหนดตัวแปลต่อไปนี้ START, NAME และ OPTIONS&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;					&lt;br /&gt;
START=yes&lt;br /&gt;
DESC=&amp;quot;SASL Auth. Daemon for Postfix&amp;quot;&lt;br /&gt;
NAME=&amp;quot;saslauthd-postf&amp;quot;      # max. 15 char.&lt;br /&gt;
# Option -m sets working dir for saslauthd (contains socket)&lt;br /&gt;
OPTIONS=&amp;quot;-c -m /var/spool/postfix/var/run/saslauthd&amp;quot;        # postfix/smtp in chroot()&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;							 &lt;br /&gt;
sudo rm -rf /run/saslauthd&lt;br /&gt;
sudo ln -s /var/spool/postfix/var/run/saslauthd   /run/saslauthd&lt;br /&gt;
sudo dpkg-statoverride --add root sasl 710 /var/spool/postfix/var/run/saslauthd&lt;br /&gt;
sudo adduser postfix sasl&lt;br /&gt;
cd /etc/pam.d&lt;br /&gt;
sudo cp other smtp&lt;br /&gt;
sudo mkdir /etc/sasl2&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไข หรือ สร้างไฟล์ &#039;&#039;&#039;/etc/sasl2/smtpd.conf&#039;&#039;&#039; &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
pwcheck_method: saslauthd&lt;br /&gt;
mech_list: PLAIN LOGIN&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart SASLAUTHD&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo service saslauthd  restart			 &lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ปรับปรุงการตั้งค่าของคุณและทำการ reload &lt;br /&gt;
&amp;lt;br/&amp;gt; หมายเหตุ: เปลียน SUB.YOURDOMAIN, YOURDOMAIN, YOUROTHERDOMAIN เป็นโดเมนของคุณ (YOUROTHERDOMAIN ไม่จำเป็นต้องใส่ก็ได้)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo postconf compatibility_level=2&lt;br /&gt;
sudo postconf -e &#039;myhostname  = SUB.YOURDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;mydomain    = YOURDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;myorigin    = $mydomain&#039;&lt;br /&gt;
sudo postconf -e &#039;inet_interfaces = all&#039;&lt;br /&gt;
sudo postconf -e &#039;mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/24&#039;&lt;br /&gt;
sudo postconf -e &#039;alias_database = hash:/etc/aliases&#039;&lt;br /&gt;
sudo postconf -e &#039;alias_maps = hash:/etc/aliases&#039;&lt;br /&gt;
sudo postconf -e &#039;mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, YOUROTHERDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;smtputf8_enable = yes&#039;			 &lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_path = smtpd&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_auth_enable = yes&#039;&lt;br /&gt;
sudo postconf -e &#039;broken_sasl_auth_clients = yes&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_security_options = noanonymous&#039;&lt;br /&gt;
sudo postconf -e &#039;home_mailbox = Maildir/&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_relay_restrictions =  permit_mynetworks permit_sasl_authenticated reject_unauth_destination reject_sender_login_mismatch&#039;&lt;br /&gt;
sudo postfix reload&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=46</id>
		<title>ฉบับย่อ - การติดตั้งแบบรวดเร็ว</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=46"/>
		<updated>2017-02-14T06:58:52Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;สร้าง directories และติดตั้ง libraries ที่จำเป็น&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-ssl  icu-devtools libicu-dev libsasl2-dev libssl-dev libsasl2-modules sasl2-bin&lt;br /&gt;
sudo mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
sudo apt-get build-dep postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
ตอบ: &lt;br /&gt;
 Web Admin - No&lt;br /&gt;
 Internet Site&lt;br /&gt;
&lt;br /&gt;
ดาวน์โหลดและสร้าง postfix-3.x &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
tar -xzvf postfix-3.0.2.tar.gz&lt;br /&gt;
cd postfix-3.0.2&lt;br /&gt;
sed -i &#039;s/.\x08//g&#039; README_FILES/*&lt;br /&gt;
&lt;br /&gt;
make CCARGS=&amp;quot;-DUSE_TLS -I/usr/include/openssl/  \&lt;br /&gt;
             -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl&amp;quot; \			&lt;br /&gt;
             AUXLIBS=&amp;quot;-lssl -lcrypto -lsasl2&amp;quot; makefiles &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sudo sh postfix-install -non-interactive   daemon_directory=/usr/lib/postfix  \&lt;br /&gt;
                    manpage_directory=/usr/share/man  \&lt;br /&gt;
                    html_directory=/usr/share/doc/postfix-3.0.1/html  \&lt;br /&gt;
                    readme_directory=/usr/share/doc/postfix-3.0.1/readme&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
การตั้งค่า SASL&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;					&lt;br /&gt;
sudo cp /etc/default/saslauthd /etc/default/saslauthd-postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ &#039;&#039;&#039;/etc/default/saslauthd-postfix&#039;&#039;&#039; โดยกำหนดตัวแปลต่อไปนี้ START, NAME และ OPTIONS&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;					&lt;br /&gt;
START=yes&lt;br /&gt;
DESC=&amp;quot;SASL Auth. Daemon for Postfix&amp;quot;&lt;br /&gt;
NAME=&amp;quot;saslauthd-postf&amp;quot;      # max. 15 char.&lt;br /&gt;
# Option -m sets working dir for saslauthd (contains socket)&lt;br /&gt;
OPTIONS=&amp;quot;-c -m /var/spool/postfix/var/run/saslauthd&amp;quot;        # postfix/smtp in chroot()&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;							 &lt;br /&gt;
sudo rm -rf /run/saslauthd&lt;br /&gt;
sudo ln -s /var/spool/postfix/var/run/saslauthd   /run/saslauthd&lt;br /&gt;
sudo dpkg-statoverride --add root sasl 710 /var/spool/postfix/var/run/saslauthd&lt;br /&gt;
sudo adduser postfix sasl&lt;br /&gt;
cd /etc/pam.d&lt;br /&gt;
sudo cp other smtp&lt;br /&gt;
sudo mkdir /etc/sasl2&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไข หรือ สร้างไฟล์ &#039;&#039;&#039;/etc/sasl2/smtpd.conf&#039;&#039;&#039; &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
pwcheck_method: saslauthd&lt;br /&gt;
mech_list: PLAIN LOGIN&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart SASLAUTHD&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo service saslauthd  restart			 &lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ปรับปรุงการตั้งค่าของคุณและทำการ reload &lt;br /&gt;
&amp;lt;br/&amp;gt; หมายเหตุ: เปลียน SUB.YOURDOMAIN, YOURDOMAIN, YOUROTHERDOMAIN เป็นโดเมนของคุณ (YOUROTHERDOMAIN ไม่จำเป็นต้องใส่ก็ได้)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo postconf compatibility_level=2&lt;br /&gt;
sudo postconf -e &#039;myhostname  = SUB.YOURDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;mydomain    = YOURDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;myorigin    = $mydomain&#039;&lt;br /&gt;
sudo postconf -e &#039;inet_interfaces = all&#039;&lt;br /&gt;
sudo postconf -e &#039;mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/24&#039;&lt;br /&gt;
sudo postconf -e &#039;alias_database = hash:/etc/aliases&#039;&lt;br /&gt;
sudo postconf -e &#039;alias_maps = hash:/etc/aliases&#039;&lt;br /&gt;
sudo postconf -e &#039;mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, YOUROTHERDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;smtputf8_enable = yes&#039;			 &lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_path = smtpd&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_auth_enable = yes&#039;&lt;br /&gt;
sudo postconf -e &#039;broken_sasl_auth_clients = yes&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_security_options = noanonymous&#039;&lt;br /&gt;
sudo postconf -e &#039;home_mailbox = Maildir/&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_relay_restrictions =  permit_mynetworks permit_sasl_authenticated reject_unauth_destination reject_sender_login_mismatch&#039;&lt;br /&gt;
sudo postfix reload&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=45</id>
		<title>ฉบับย่อ - การติดตั้งแบบรวดเร็ว</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=45"/>
		<updated>2017-02-14T06:53:14Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;สร้าง directories และติดตั้ง libraries ที่จำเป็น&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;HTML5&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-ssl  icu-devtools libicu-dev libsasl2-dev libssl-dev libsasl2-modules sasl2-bin&lt;br /&gt;
sudo mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
sudo apt-get build-dep postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=44</id>
		<title>ฉบับย่อ - การติดตั้งแบบรวดเร็ว</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=44"/>
		<updated>2017-02-14T06:52:58Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;สร้าง directories และติดตั้ง libraries ที่จำเป็น&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-ssl  icu-devtools libicu-dev libsasl2-dev libssl-dev libsasl2-modules sasl2-bin&lt;br /&gt;
sudo mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
sudo apt-get build-dep postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=43</id>
		<title>ฉบับย่อ - การติดตั้งแบบรวดเร็ว</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=43"/>
		<updated>2017-02-14T06:51:37Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;สร้าง directories และติดตั้ง libraries ที่จำเป็น&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-ssl  icu-devtools libicu-dev libsasl2-dev libssl-dev libsasl2-modules sasl2-bin&lt;br /&gt;
sudo mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
sudo apt-get build-dep postfix&lt;br /&gt;
&amp;lt;/source &amp;gt;&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=42</id>
		<title>ฉบับย่อ - การติดตั้งแบบรวดเร็ว</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=42"/>
		<updated>2017-02-14T06:50:03Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;สร้าง directories และติดตั้ง libraries ที่จำเป็น&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-ssl  icu-devtools libicu-dev libsasl2-dev libssl-dev libsasl2-modules sasl2-bin&lt;br /&gt;
sudo mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
sudo apt-get build-dep postfix&lt;br /&gt;
&amp;lt;/source &amp;gt;&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=41</id>
		<title>ฉบับย่อ - การติดตั้งแบบรวดเร็ว</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=41"/>
		<updated>2017-02-14T06:42:31Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;สร้าง directories และติดตั้ง libraries ที่จำเป็น&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-ssl  icu-devtools libicu-dev libsasl2-dev libssl-dev libsasl2-modules sasl2-bin&lt;br /&gt;
sudo mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
sudo apt-get build-dep postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=40</id>
		<title>ฉบับย่อ - การติดตั้งแบบรวดเร็ว</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=40"/>
		<updated>2017-02-14T06:42:17Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=39</id>
		<title>ฉบับย่อ - การติดตั้งแบบรวดเร็ว</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=39"/>
		<updated>2017-02-14T06:40:25Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;สร้าง directories และติดตั้ง libraries ที่จำเป็น&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-ssl  icu-devtools libicu-dev libsasl2-dev libssl-dev libsasl2-modules sasl2-bin&lt;br /&gt;
sudo mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
sudo apt-get build-dep postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
ตอบ: &lt;br /&gt;
 Web Admin - No&lt;br /&gt;
 Internet Site&lt;br /&gt;
&lt;br /&gt;
ดาวน์โหลดและสร้าง postfix-3.x &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
tar -xzvf postfix-3.0.2.tar.gz&lt;br /&gt;
cd postfix-3.0.2&lt;br /&gt;
sed -i &#039;s/.\x08//g&#039; README_FILES/*&lt;br /&gt;
&lt;br /&gt;
make CCARGS=&amp;quot;-DUSE_TLS -I/usr/include/openssl/  \&lt;br /&gt;
             -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl&amp;quot; \			&lt;br /&gt;
             AUXLIBS=&amp;quot;-lssl -lcrypto -lsasl2&amp;quot; makefiles &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sudo sh postfix-install -non-interactive   daemon_directory=/usr/lib/postfix  \&lt;br /&gt;
                    manpage_directory=/usr/share/man  \&lt;br /&gt;
                    html_directory=/usr/share/doc/postfix-3.0.1/html  \&lt;br /&gt;
                    readme_directory=/usr/share/doc/postfix-3.0.1/readme&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
การตั้งค่า SASL&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;					&lt;br /&gt;
sudo cp /etc/default/saslauthd /etc/default/saslauthd-postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ &#039;&#039;&#039;/etc/default/saslauthd-postfix&#039;&#039;&#039; โดยกำหนดตัวแปลต่อไปนี้ START, NAME และ OPTIONS&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;					&lt;br /&gt;
START=yes&lt;br /&gt;
DESC=&amp;quot;SASL Auth. Daemon for Postfix&amp;quot;&lt;br /&gt;
NAME=&amp;quot;saslauthd-postf&amp;quot;      # max. 15 char.&lt;br /&gt;
# Option -m sets working dir for saslauthd (contains socket)&lt;br /&gt;
OPTIONS=&amp;quot;-c -m /var/spool/postfix/var/run/saslauthd&amp;quot;        # postfix/smtp in chroot()&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;							 &lt;br /&gt;
sudo rm -rf /run/saslauthd&lt;br /&gt;
sudo ln -s /var/spool/postfix/var/run/saslauthd   /run/saslauthd&lt;br /&gt;
sudo dpkg-statoverride --add root sasl 710 /var/spool/postfix/var/run/saslauthd&lt;br /&gt;
sudo adduser postfix sasl&lt;br /&gt;
cd /etc/pam.d&lt;br /&gt;
sudo cp other smtp&lt;br /&gt;
sudo mkdir /etc/sasl2&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไข หรือ สร้างไฟล์ &#039;&#039;&#039;/etc/sasl2/smtpd.conf&#039;&#039;&#039; &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
pwcheck_method: saslauthd&lt;br /&gt;
mech_list: PLAIN LOGIN&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart SASLAUTHD&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo service saslauthd  restart			 &lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ปรับปรุงการตั้งค่าของคุณและทำการ reload &lt;br /&gt;
&amp;lt;br/&amp;gt; หมายเหตุ: เปลียน SUB.YOURDOMAIN, YOURDOMAIN, YOUROTHERDOMAIN เป็นโดเมนของคุณ (YOUROTHERDOMAIN ไม่จำเป็นต้องใส่ก็ได้)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo postconf compatibility_level=2&lt;br /&gt;
sudo postconf -e &#039;myhostname  = SUB.YOURDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;mydomain    = YOURDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;myorigin    = $mydomain&#039;&lt;br /&gt;
sudo postconf -e &#039;inet_interfaces = all&#039;&lt;br /&gt;
sudo postconf -e &#039;mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/24&#039;&lt;br /&gt;
sudo postconf -e &#039;alias_database = hash:/etc/aliases&#039;&lt;br /&gt;
sudo postconf -e &#039;alias_maps = hash:/etc/aliases&#039;&lt;br /&gt;
sudo postconf -e &#039;mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, YOUROTHERDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;smtputf8_enable = yes&#039;			 &lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_path = smtpd&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_auth_enable = yes&#039;&lt;br /&gt;
sudo postconf -e &#039;broken_sasl_auth_clients = yes&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_security_options = noanonymous&#039;&lt;br /&gt;
sudo postconf -e &#039;home_mailbox = Maildir/&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_relay_restrictions =  permit_mynetworks permit_sasl_authenticated reject_unauth_destination reject_sender_login_mismatch&#039;&lt;br /&gt;
sudo postfix reload&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=38</id>
		<title>ฉบับย่อ - การติดตั้งแบบรวดเร็ว</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=38"/>
		<updated>2017-02-14T06:33:57Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;สร้าง directories และติดตั้ง libraries ที่จำเป็น&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-ssl  icu-devtools libicu-dev libsasl2-dev libssl-dev libsasl2-modules sasl2-bin&lt;br /&gt;
 sudo mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
 sudo apt-get build-dep postfix&lt;br /&gt;
&lt;br /&gt;
ตอบ: &lt;br /&gt;
 Web Admin - No&lt;br /&gt;
 Internet Site&lt;br /&gt;
&lt;br /&gt;
ดาวน์โหลดและสร้าง postfix-3.x &lt;br /&gt;
&lt;br /&gt;
 tar -xzvf postfix-3.0.2.tar.gz&lt;br /&gt;
 cd postfix-3.0.2&lt;br /&gt;
 sed -i &#039;s/.\x08//g&#039; README_FILES/*&lt;br /&gt;
&lt;br /&gt;
 make CCARGS=&amp;quot;-DUSE_TLS -I/usr/include/openssl/  \&lt;br /&gt;
             -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl&amp;quot; \			&lt;br /&gt;
             AUXLIBS=&amp;quot;-lssl -lcrypto -lsasl2&amp;quot; makefiles &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
 sudo sh postfix-install -non-interactive   daemon_directory=/usr/lib/postfix  \&lt;br /&gt;
                    manpage_directory=/usr/share/man  \&lt;br /&gt;
                    html_directory=/usr/share/doc/postfix-3.0.1/html  \&lt;br /&gt;
                    readme_directory=/usr/share/doc/postfix-3.0.1/readme&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
การตั้งค่า SASL&lt;br /&gt;
				&lt;br /&gt;
 sudo cp /etc/default/saslauthd /etc/default/saslauthd-postfix&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ &#039;&#039;&#039;/etc/default/saslauthd-postfix&#039;&#039;&#039; โดยกำหนดตัวแปลต่อไปนี้ START, NAME และ OPTIONS&lt;br /&gt;
				&lt;br /&gt;
 START=yes&lt;br /&gt;
 DESC=&amp;quot;SASL Auth. Daemon for Postfix&amp;quot;&lt;br /&gt;
 NAME=&amp;quot;saslauthd-postf&amp;quot;      # max. 15 char.&lt;br /&gt;
 # Option -m sets working dir for saslauthd (contains socket)&lt;br /&gt;
 OPTIONS=&amp;quot;-c -m /var/spool/postfix/var/run/saslauthd&amp;quot;        # postfix/smtp in chroot()&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;							 &lt;br /&gt;
sudo rm -rf /run/saslauthd&lt;br /&gt;
sudo ln -s /var/spool/postfix/var/run/saslauthd   /run/saslauthd&lt;br /&gt;
sudo dpkg-statoverride --add root sasl 710 /var/spool/postfix/var/run/saslauthd&lt;br /&gt;
sudo adduser postfix sasl&lt;br /&gt;
cd /etc/pam.d&lt;br /&gt;
sudo cp other smtp&lt;br /&gt;
sudo mkdir /etc/sasl2&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไข หรือ สร้างไฟล์ &#039;&#039;&#039;/etc/sasl2/smtpd.conf&#039;&#039;&#039; &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
pwcheck_method: saslauthd&lt;br /&gt;
mech_list: PLAIN LOGIN&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart SASLAUTHD&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo service saslauthd  restart			 &lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ปรับปรุงการตั้งค่าของคุณและทำการ reload &lt;br /&gt;
&amp;lt;br/&amp;gt; หมายเหตุ: เปลียน SUB.YOURDOMAIN, YOURDOMAIN, YOUROTHERDOMAIN เป็นโดเมนของคุณ (YOUROTHERDOMAIN ไม่จำเป็นต้องใส่ก็ได้)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;mylanguage&amp;quot; enclose=&amp;quot;none&amp;quot;&amp;gt;&lt;br /&gt;
sudo postconf compatibility_level=2&lt;br /&gt;
sudo postconf -e &#039;myhostname  = SUB.YOURDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;mydomain    = YOURDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;myorigin    = $mydomain&#039;&lt;br /&gt;
sudo postconf -e &#039;inet_interfaces = all&#039;&lt;br /&gt;
sudo postconf -e &#039;mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/24&#039;&lt;br /&gt;
sudo postconf -e &#039;alias_database = hash:/etc/aliases&#039;&lt;br /&gt;
sudo postconf -e &#039;alias_maps = hash:/etc/aliases&#039;&lt;br /&gt;
sudo postconf -e &#039;mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, YOUROTHERDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;smtputf8_enable = yes&#039;			 &lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_path = smtpd&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_auth_enable = yes&#039;&lt;br /&gt;
sudo postconf -e &#039;broken_sasl_auth_clients = yes&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_security_options = noanonymous&#039;&lt;br /&gt;
sudo postconf -e &#039;home_mailbox = Maildir/&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_relay_restrictions =  permit_mynetworks permit_sasl_authenticated reject_unauth_destination reject_sender_login_mismatch&#039;&lt;br /&gt;
sudo postfix reload&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=37</id>
		<title>ฉบับย่อ - การติดตั้งแบบรวดเร็ว</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=37"/>
		<updated>2017-02-14T06:30:16Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;สร้าง directories และติดตั้ง libraries ที่จำเป็น&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-ssl  icu-devtools libicu-dev libsasl2-dev libssl-dev libsasl2-modules sasl2-bin&lt;br /&gt;
 sudo mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
 sudo apt-get build-dep postfix&lt;br /&gt;
&lt;br /&gt;
ตอบ: &lt;br /&gt;
 Web Admin - No&lt;br /&gt;
 Internet Site&lt;br /&gt;
&lt;br /&gt;
ดาวน์โหลดและสร้าง postfix-3.x &lt;br /&gt;
&lt;br /&gt;
 tar -xzvf postfix-3.0.2.tar.gz&lt;br /&gt;
 cd postfix-3.0.2&lt;br /&gt;
 sed -i &#039;s/.\x08//g&#039; README_FILES/*&lt;br /&gt;
&lt;br /&gt;
 make CCARGS=&amp;quot;-DUSE_TLS -I/usr/include/openssl/  \&lt;br /&gt;
             -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl&amp;quot; \			&lt;br /&gt;
             AUXLIBS=&amp;quot;-lssl -lcrypto -lsasl2&amp;quot; makefiles &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
 sudo sh postfix-install -non-interactive   daemon_directory=/usr/lib/postfix  \&lt;br /&gt;
                    manpage_directory=/usr/share/man  \&lt;br /&gt;
                    html_directory=/usr/share/doc/postfix-3.0.1/html  \&lt;br /&gt;
                    readme_directory=/usr/share/doc/postfix-3.0.1/readme&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
การตั้งค่า SASL&lt;br /&gt;
				&lt;br /&gt;
 sudo cp /etc/default/saslauthd /etc/default/saslauthd-postfix&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ &#039;&#039;&#039;/etc/default/saslauthd-postfix&#039;&#039;&#039; โดยกำหนดตัวแปลต่อไปนี้ START, NAME และ OPTIONS&lt;br /&gt;
				&lt;br /&gt;
 START=yes&lt;br /&gt;
 DESC=&amp;quot;SASL Auth. Daemon for Postfix&amp;quot;&lt;br /&gt;
 NAME=&amp;quot;saslauthd-postf&amp;quot;      # max. 15 char.&lt;br /&gt;
 # Option -m sets working dir for saslauthd (contains socket)&lt;br /&gt;
 OPTIONS=&amp;quot;-c -m /var/spool/postfix/var/run/saslauthd&amp;quot;        # postfix/smtp in chroot()&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;							 &lt;br /&gt;
sudo rm -rf /run/saslauthd&lt;br /&gt;
sudo ln -s /var/spool/postfix/var/run/saslauthd   /run/saslauthd&lt;br /&gt;
sudo dpkg-statoverride --add root sasl 710 /var/spool/postfix/var/run/saslauthd&lt;br /&gt;
sudo adduser postfix sasl&lt;br /&gt;
cd /etc/pam.d&lt;br /&gt;
sudo cp other smtp&lt;br /&gt;
sudo mkdir /etc/sasl2&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไข หรือ สร้างไฟล์ &#039;&#039;&#039;/etc/sasl2/smtpd.conf&#039;&#039;&#039; &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
pwcheck_method: saslauthd&lt;br /&gt;
mech_list: PLAIN LOGIN&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart SASLAUTHD&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo service saslauthd  restart			 &lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ปรับปรุงการตั้งค่าของคุณและทำการ reload &lt;br /&gt;
&amp;lt;br/&amp;gt; หมายเหตุ: เปลียน SUB.YOURDOMAIN, YOURDOMAIN, YOUROTHERDOMAIN เป็นโดเมนของคุณ (YOUROTHERDOMAIN ไม่จำเป็นต้องใส่ก็ได้)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo postconf compatibility_level=2&lt;br /&gt;
sudo postconf -e &#039;myhostname  = SUB.YOURDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;mydomain    = YOURDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;myorigin    = $mydomain&#039;&lt;br /&gt;
sudo postconf -e &#039;inet_interfaces = all&#039;&lt;br /&gt;
sudo postconf -e &#039;mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/24&#039;&lt;br /&gt;
sudo postconf -e &#039;alias_database = hash:/etc/aliases&#039;&lt;br /&gt;
sudo postconf -e &#039;alias_maps = hash:/etc/aliases&#039;&lt;br /&gt;
sudo postconf -e &#039;mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, YOUROTHERDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;smtputf8_enable = yes&#039;			 &lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_path = smtpd&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_auth_enable = yes&#039;&lt;br /&gt;
sudo postconf -e &#039;broken_sasl_auth_clients = yes&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_security_options = noanonymous&#039;&lt;br /&gt;
sudo postconf -e &#039;home_mailbox = Maildir/&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_relay_restrictions =  permit_mynetworks permit_sasl_authenticated reject_unauth_destination reject_sender_login_mismatch&#039;&lt;br /&gt;
sudo postfix reload&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=36</id>
		<title>ฉบับย่อ - การติดตั้งแบบรวดเร็ว</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=36"/>
		<updated>2017-02-14T06:27:29Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;สร้าง directories และติดตั้ง libraries ที่จำเป็น&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-ssl  icu-devtools libicu-dev libsasl2-dev libssl-dev libsasl2-modules sasl2-bin&lt;br /&gt;
 sudo mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
 sudo apt-get build-dep postfix&lt;br /&gt;
&lt;br /&gt;
ตอบ: &lt;br /&gt;
 Web Admin - No&lt;br /&gt;
 Internet Site&lt;br /&gt;
&lt;br /&gt;
ดาวน์โหลดและสร้าง postfix-3.x &lt;br /&gt;
&lt;br /&gt;
 tar -xzvf postfix-3.0.2.tar.gz&lt;br /&gt;
 cd postfix-3.0.2&lt;br /&gt;
 sed -i &#039;s/.\x08//g&#039; README_FILES/*&lt;br /&gt;
 make CCARGS=&amp;quot;-DUSE_TLS -I/usr/include/openssl/  \&lt;br /&gt;
             -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl&amp;quot; \			&lt;br /&gt;
             AUXLIBS=&amp;quot;-lssl -lcrypto -lsasl2&amp;quot; makefiles &amp;amp;&amp;amp; make&lt;br /&gt;
 sudo sh postfix-install -non-interactive   daemon_directory=/usr/lib/postfix  \&lt;br /&gt;
                    manpage_directory=/usr/share/man  \&lt;br /&gt;
                    html_directory=/usr/share/doc/postfix-3.0.1/html  \&lt;br /&gt;
                    readme_directory=/usr/share/doc/postfix-3.0.1/readme&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
การตั้งค่า SASL&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;					&lt;br /&gt;
sudo cp /etc/default/saslauthd /etc/default/saslauthd-postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ &#039;&#039;&#039;/etc/default/saslauthd-postfix&#039;&#039;&#039; โดยกำหนดตัวแปลต่อไปนี้ START, NAME และ OPTIONS&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;					&lt;br /&gt;
START=yes&lt;br /&gt;
DESC=&amp;quot;SASL Auth. Daemon for Postfix&amp;quot;&lt;br /&gt;
NAME=&amp;quot;saslauthd-postf&amp;quot;      # max. 15 char.&lt;br /&gt;
# Option -m sets working dir for saslauthd (contains socket)&lt;br /&gt;
OPTIONS=&amp;quot;-c -m /var/spool/postfix/var/run/saslauthd&amp;quot;        # postfix/smtp in chroot()&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;							 &lt;br /&gt;
sudo rm -rf /run/saslauthd&lt;br /&gt;
sudo ln -s /var/spool/postfix/var/run/saslauthd   /run/saslauthd&lt;br /&gt;
sudo dpkg-statoverride --add root sasl 710 /var/spool/postfix/var/run/saslauthd&lt;br /&gt;
sudo adduser postfix sasl&lt;br /&gt;
cd /etc/pam.d&lt;br /&gt;
sudo cp other smtp&lt;br /&gt;
sudo mkdir /etc/sasl2&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไข หรือ สร้างไฟล์ &#039;&#039;&#039;/etc/sasl2/smtpd.conf&#039;&#039;&#039; &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
pwcheck_method: saslauthd&lt;br /&gt;
mech_list: PLAIN LOGIN&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart SASLAUTHD&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo service saslauthd  restart			 &lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ปรับปรุงการตั้งค่าของคุณและทำการ reload &lt;br /&gt;
&amp;lt;br/&amp;gt; หมายเหตุ: เปลียน SUB.YOURDOMAIN, YOURDOMAIN, YOUROTHERDOMAIN เป็นโดเมนของคุณ (YOUROTHERDOMAIN ไม่จำเป็นต้องใส่ก็ได้)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo postconf compatibility_level=2&lt;br /&gt;
sudo postconf -e &#039;myhostname  = SUB.YOURDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;mydomain    = YOURDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;myorigin    = $mydomain&#039;&lt;br /&gt;
sudo postconf -e &#039;inet_interfaces = all&#039;&lt;br /&gt;
sudo postconf -e &#039;mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/24&#039;&lt;br /&gt;
sudo postconf -e &#039;alias_database = hash:/etc/aliases&#039;&lt;br /&gt;
sudo postconf -e &#039;alias_maps = hash:/etc/aliases&#039;&lt;br /&gt;
sudo postconf -e &#039;mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, YOUROTHERDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;smtputf8_enable = yes&#039;			 &lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_path = smtpd&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_auth_enable = yes&#039;&lt;br /&gt;
sudo postconf -e &#039;broken_sasl_auth_clients = yes&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_security_options = noanonymous&#039;&lt;br /&gt;
sudo postconf -e &#039;home_mailbox = Maildir/&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_relay_restrictions =  permit_mynetworks permit_sasl_authenticated reject_unauth_destination reject_sender_login_mismatch&#039;&lt;br /&gt;
sudo postfix reload&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=35</id>
		<title>ฉบับย่อ - การติดตั้งแบบรวดเร็ว</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=35"/>
		<updated>2017-02-14T06:26:03Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;สร้าง directories และติดตั้ง libraries ที่จำเป็น&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-ssl  icu-devtools libicu-dev libsasl2-dev libssl-dev libsasl2-modules sasl2-bin&lt;br /&gt;
 sudo mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
 sudo apt-get build-dep postfix&lt;br /&gt;
&lt;br /&gt;
ตอบ: &lt;br /&gt;
 Web Admin - No&lt;br /&gt;
 Internet Site&lt;br /&gt;
&lt;br /&gt;
ดาวน์โหลดและสร้าง postfix-3.x &lt;br /&gt;
&lt;br /&gt;
 tar -xzvf postfix-3.0.2.tar.gz&lt;br /&gt;
 cd postfix-3.0.2&lt;br /&gt;
 sed -i &#039;s/.\x08//g&#039; README_FILES/*&lt;br /&gt;
&lt;br /&gt;
 make CCARGS=&amp;quot;-DUSE_TLS -I/usr/include/openssl/  \&lt;br /&gt;
             -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl&amp;quot; \			&lt;br /&gt;
             AUXLIBS=&amp;quot;-lssl -lcrypto -lsasl2&amp;quot; makefiles &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 sudo sh postfix-install -non-interactive   daemon_directory=/usr/lib/postfix  \&lt;br /&gt;
                    manpage_directory=/usr/share/man  \&lt;br /&gt;
                    html_directory=/usr/share/doc/postfix-3.0.1/html  \&lt;br /&gt;
                    readme_directory=/usr/share/doc/postfix-3.0.1/readme&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
การตั้งค่า SASL&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;					&lt;br /&gt;
sudo cp /etc/default/saslauthd /etc/default/saslauthd-postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ &#039;&#039;&#039;/etc/default/saslauthd-postfix&#039;&#039;&#039; โดยกำหนดตัวแปลต่อไปนี้ START, NAME และ OPTIONS&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;					&lt;br /&gt;
START=yes&lt;br /&gt;
DESC=&amp;quot;SASL Auth. Daemon for Postfix&amp;quot;&lt;br /&gt;
NAME=&amp;quot;saslauthd-postf&amp;quot;      # max. 15 char.&lt;br /&gt;
# Option -m sets working dir for saslauthd (contains socket)&lt;br /&gt;
OPTIONS=&amp;quot;-c -m /var/spool/postfix/var/run/saslauthd&amp;quot;        # postfix/smtp in chroot()&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;							 &lt;br /&gt;
sudo rm -rf /run/saslauthd&lt;br /&gt;
sudo ln -s /var/spool/postfix/var/run/saslauthd   /run/saslauthd&lt;br /&gt;
sudo dpkg-statoverride --add root sasl 710 /var/spool/postfix/var/run/saslauthd&lt;br /&gt;
sudo adduser postfix sasl&lt;br /&gt;
cd /etc/pam.d&lt;br /&gt;
sudo cp other smtp&lt;br /&gt;
sudo mkdir /etc/sasl2&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไข หรือ สร้างไฟล์ &#039;&#039;&#039;/etc/sasl2/smtpd.conf&#039;&#039;&#039; &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
pwcheck_method: saslauthd&lt;br /&gt;
mech_list: PLAIN LOGIN&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart SASLAUTHD&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo service saslauthd  restart			 &lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ปรับปรุงการตั้งค่าของคุณและทำการ reload &lt;br /&gt;
&amp;lt;br/&amp;gt; หมายเหตุ: เปลียน SUB.YOURDOMAIN, YOURDOMAIN, YOUROTHERDOMAIN เป็นโดเมนของคุณ (YOUROTHERDOMAIN ไม่จำเป็นต้องใส่ก็ได้)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo postconf compatibility_level=2&lt;br /&gt;
sudo postconf -e &#039;myhostname  = SUB.YOURDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;mydomain    = YOURDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;myorigin    = $mydomain&#039;&lt;br /&gt;
sudo postconf -e &#039;inet_interfaces = all&#039;&lt;br /&gt;
sudo postconf -e &#039;mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/24&#039;&lt;br /&gt;
sudo postconf -e &#039;alias_database = hash:/etc/aliases&#039;&lt;br /&gt;
sudo postconf -e &#039;alias_maps = hash:/etc/aliases&#039;&lt;br /&gt;
sudo postconf -e &#039;mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, YOUROTHERDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;smtputf8_enable = yes&#039;			 &lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_path = smtpd&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_auth_enable = yes&#039;&lt;br /&gt;
sudo postconf -e &#039;broken_sasl_auth_clients = yes&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_security_options = noanonymous&#039;&lt;br /&gt;
sudo postconf -e &#039;home_mailbox = Maildir/&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_relay_restrictions =  permit_mynetworks permit_sasl_authenticated reject_unauth_destination reject_sender_login_mismatch&#039;&lt;br /&gt;
sudo postfix reload&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=34</id>
		<title>ฉบับย่อ - การติดตั้งแบบรวดเร็ว</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=34"/>
		<updated>2017-02-14T06:25:33Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;สร้าง directories และติดตั้ง libraries ที่จำเป็น&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-ssl  icu-devtools libicu-dev libsasl2-dev libssl-dev libsasl2-modules sasl2-bin&lt;br /&gt;
 sudo mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
 sudo apt-get build-dep postfix&lt;br /&gt;
&lt;br /&gt;
ตอบ: &lt;br /&gt;
 Web Admin - No&lt;br /&gt;
 Internet Site&lt;br /&gt;
&lt;br /&gt;
ดาวน์โหลดและสร้าง postfix-3.x &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
tar -xzvf postfix-3.0.2.tar.gz&lt;br /&gt;
cd postfix-3.0.2&lt;br /&gt;
sed -i &#039;s/.\x08//g&#039; README_FILES/*&lt;br /&gt;
&lt;br /&gt;
make CCARGS=&amp;quot;-DUSE_TLS -I/usr/include/openssl/  \&lt;br /&gt;
             -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl&amp;quot; \			&lt;br /&gt;
             AUXLIBS=&amp;quot;-lssl -lcrypto -lsasl2&amp;quot; makefiles &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sudo sh postfix-install -non-interactive   daemon_directory=/usr/lib/postfix  \&lt;br /&gt;
                    manpage_directory=/usr/share/man  \&lt;br /&gt;
                    html_directory=/usr/share/doc/postfix-3.0.1/html  \&lt;br /&gt;
                    readme_directory=/usr/share/doc/postfix-3.0.1/readme&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
การตั้งค่า SASL&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;					&lt;br /&gt;
sudo cp /etc/default/saslauthd /etc/default/saslauthd-postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ &#039;&#039;&#039;/etc/default/saslauthd-postfix&#039;&#039;&#039; โดยกำหนดตัวแปลต่อไปนี้ START, NAME และ OPTIONS&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;					&lt;br /&gt;
START=yes&lt;br /&gt;
DESC=&amp;quot;SASL Auth. Daemon for Postfix&amp;quot;&lt;br /&gt;
NAME=&amp;quot;saslauthd-postf&amp;quot;      # max. 15 char.&lt;br /&gt;
# Option -m sets working dir for saslauthd (contains socket)&lt;br /&gt;
OPTIONS=&amp;quot;-c -m /var/spool/postfix/var/run/saslauthd&amp;quot;        # postfix/smtp in chroot()&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;							 &lt;br /&gt;
sudo rm -rf /run/saslauthd&lt;br /&gt;
sudo ln -s /var/spool/postfix/var/run/saslauthd   /run/saslauthd&lt;br /&gt;
sudo dpkg-statoverride --add root sasl 710 /var/spool/postfix/var/run/saslauthd&lt;br /&gt;
sudo adduser postfix sasl&lt;br /&gt;
cd /etc/pam.d&lt;br /&gt;
sudo cp other smtp&lt;br /&gt;
sudo mkdir /etc/sasl2&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไข หรือ สร้างไฟล์ &#039;&#039;&#039;/etc/sasl2/smtpd.conf&#039;&#039;&#039; &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
pwcheck_method: saslauthd&lt;br /&gt;
mech_list: PLAIN LOGIN&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart SASLAUTHD&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo service saslauthd  restart			 &lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ปรับปรุงการตั้งค่าของคุณและทำการ reload &lt;br /&gt;
&amp;lt;br/&amp;gt; หมายเหตุ: เปลียน SUB.YOURDOMAIN, YOURDOMAIN, YOUROTHERDOMAIN เป็นโดเมนของคุณ (YOUROTHERDOMAIN ไม่จำเป็นต้องใส่ก็ได้)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo postconf compatibility_level=2&lt;br /&gt;
sudo postconf -e &#039;myhostname  = SUB.YOURDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;mydomain    = YOURDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;myorigin    = $mydomain&#039;&lt;br /&gt;
sudo postconf -e &#039;inet_interfaces = all&#039;&lt;br /&gt;
sudo postconf -e &#039;mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/24&#039;&lt;br /&gt;
sudo postconf -e &#039;alias_database = hash:/etc/aliases&#039;&lt;br /&gt;
sudo postconf -e &#039;alias_maps = hash:/etc/aliases&#039;&lt;br /&gt;
sudo postconf -e &#039;mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, YOUROTHERDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;smtputf8_enable = yes&#039;			 &lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_path = smtpd&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_auth_enable = yes&#039;&lt;br /&gt;
sudo postconf -e &#039;broken_sasl_auth_clients = yes&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_security_options = noanonymous&#039;&lt;br /&gt;
sudo postconf -e &#039;home_mailbox = Maildir/&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_relay_restrictions =  permit_mynetworks permit_sasl_authenticated reject_unauth_destination reject_sender_login_mismatch&#039;&lt;br /&gt;
sudo postfix reload&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=33</id>
		<title>ฉบับย่อ - การติดตั้งแบบรวดเร็ว</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=33"/>
		<updated>2017-02-14T06:24:37Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;สร้าง directories และติดตั้ง libraries ที่จำเป็น&lt;br /&gt;
 &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-ssl  icu-devtools libicu-dev libsasl2-dev libssl-dev libsasl2-modules  sasl2-bin&lt;br /&gt;
 sudo mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
 sudo apt-get build-dep postfix&lt;br /&gt;
 &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Web Admin&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=32</id>
		<title>ฉบับย่อ - การติดตั้งแบบรวดเร็ว</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=32"/>
		<updated>2017-02-14T06:24:09Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;สร้าง directories และติดตั้ง libraries ที่จำเป็น&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-ssl  icu-devtools libicu-dev libsasl2-dev libssl-dev libsasl2-modules sasl2-bin&lt;br /&gt;
sudo mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
sudo apt-get build-dep postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Web Admin&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=31</id>
		<title>ฉบับย่อ - การติดตั้งแบบรวดเร็ว</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=31"/>
		<updated>2017-02-14T06:23:58Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;สร้าง directories และติดตั้ง libraries ที่จำเป็น&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-ssl  icu-devtools libicu-dev libsasl2-dev libssl-dev libsasl2-modules sasl2-bin&lt;br /&gt;
sudo mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
sudo apt-get build-dep postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Web Admin&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=30</id>
		<title>ฉบับย่อ - การติดตั้งแบบรวดเร็ว</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=30"/>
		<updated>2017-02-14T06:23:43Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;สร้าง directories และติดตั้ง libraries ที่จำเป็น&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-ssl  icu-devtools libicu-dev libsasl2-dev libssl-dev libsasl2-modules sasl2-bin&lt;br /&gt;
sudo mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
sudo apt-get build-dep postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Web Admin - No&lt;br /&gt;
 Internet Site&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=29</id>
		<title>ฉบับย่อ - การติดตั้งแบบรวดเร็ว</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=29"/>
		<updated>2017-02-14T06:23:02Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;สร้าง directories และติดตั้ง libraries ที่จำเป็น&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-ssl  icu-devtools libicu-dev libsasl2-dev libssl-dev libsasl2-modules sasl2-bin&lt;br /&gt;
sudo mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
sudo apt-get build-dep postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=28</id>
		<title>ฉบับย่อ - การติดตั้งแบบรวดเร็ว</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=28"/>
		<updated>2017-02-14T06:22:44Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;สร้าง directories และติดตั้ง libraries ที่จำเป็น&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-ssl  icu-devtools libicu-dev libsasl2-dev libssl-dev libsasl2-modules sasl2-bin&lt;br /&gt;
sudo mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
sudo apt-get build-dep postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=27</id>
		<title>ฉบับย่อ - การติดตั้งแบบรวดเร็ว</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%A2%E0%B9%88%E0%B8%AD_-_%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%A7%E0%B8%94%E0%B9%80%E0%B8%A3%E0%B9%87%E0%B8%A7&amp;diff=27"/>
		<updated>2017-02-14T06:20:40Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: Created page with &amp;quot;สร้าง directories และติดตั้ง libraries ที่จำเป็น &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; sudo apt-get update sudo apt-get install courier...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;สร้าง directories และติดตั้ง libraries ที่จำเป็น&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-ssl  icu-devtools libicu-dev libsasl2-dev libssl-dev libsasl2-modules sasl2-bin&lt;br /&gt;
sudo mkdir -p /etc/skel/Maildir/{cur,new,tmp}&lt;br /&gt;
sudo apt-get build-dep postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
ตอบ: &lt;br /&gt;
 Web Admin - No&lt;br /&gt;
 Internet Site&lt;br /&gt;
&lt;br /&gt;
ดาวน์โหลดและสร้าง postfix-3.x &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
tar -xzvf postfix-3.0.2.tar.gz&lt;br /&gt;
cd postfix-3.0.2&lt;br /&gt;
sed -i &#039;s/.\x08//g&#039; README_FILES/*&lt;br /&gt;
&lt;br /&gt;
make CCARGS=&amp;quot;-DUSE_TLS -I/usr/include/openssl/  \&lt;br /&gt;
             -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl&amp;quot; \			&lt;br /&gt;
             AUXLIBS=&amp;quot;-lssl -lcrypto -lsasl2&amp;quot; makefiles &amp;amp;&amp;amp; make&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sudo sh postfix-install -non-interactive   daemon_directory=/usr/lib/postfix  \&lt;br /&gt;
                    manpage_directory=/usr/share/man  \&lt;br /&gt;
                    html_directory=/usr/share/doc/postfix-3.0.1/html  \&lt;br /&gt;
                    readme_directory=/usr/share/doc/postfix-3.0.1/readme&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
การตั้งค่า SASL&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;					&lt;br /&gt;
sudo cp /etc/default/saslauthd /etc/default/saslauthd-postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไขไฟล์ &#039;&#039;&#039;/etc/default/saslauthd-postfix&#039;&#039;&#039; โดยกำหนดตัวแปลต่อไปนี้ START, NAME และ OPTIONS&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;					&lt;br /&gt;
START=yes&lt;br /&gt;
DESC=&amp;quot;SASL Auth. Daemon for Postfix&amp;quot;&lt;br /&gt;
NAME=&amp;quot;saslauthd-postf&amp;quot;      # max. 15 char.&lt;br /&gt;
# Option -m sets working dir for saslauthd (contains socket)&lt;br /&gt;
OPTIONS=&amp;quot;-c -m /var/spool/postfix/var/run/saslauthd&amp;quot;        # postfix/smtp in chroot()&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;							 &lt;br /&gt;
sudo rm -rf /run/saslauthd&lt;br /&gt;
sudo ln -s /var/spool/postfix/var/run/saslauthd   /run/saslauthd&lt;br /&gt;
sudo dpkg-statoverride --add root sasl 710 /var/spool/postfix/var/run/saslauthd&lt;br /&gt;
sudo adduser postfix sasl&lt;br /&gt;
cd /etc/pam.d&lt;br /&gt;
sudo cp other smtp&lt;br /&gt;
sudo mkdir /etc/sasl2&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
แก้ไข หรือ สร้างไฟล์ &#039;&#039;&#039;/etc/sasl2/smtpd.conf&#039;&#039;&#039; &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
pwcheck_method: saslauthd&lt;br /&gt;
mech_list: PLAIN LOGIN&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart SASLAUTHD&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo service saslauthd  restart			 &lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ปรับปรุงการตั้งค่าของคุณและทำการ reload &lt;br /&gt;
&amp;lt;br/&amp;gt; หมายเหตุ: เปลียน SUB.YOURDOMAIN, YOURDOMAIN, YOUROTHERDOMAIN เป็นโดเมนของคุณ (YOUROTHERDOMAIN ไม่จำเป็นต้องใส่ก็ได้)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo postconf compatibility_level=2&lt;br /&gt;
sudo postconf -e &#039;myhostname  = SUB.YOURDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;mydomain    = YOURDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;myorigin    = $mydomain&#039;&lt;br /&gt;
sudo postconf -e &#039;inet_interfaces = all&#039;&lt;br /&gt;
sudo postconf -e &#039;mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/24&#039;&lt;br /&gt;
sudo postconf -e &#039;alias_database = hash:/etc/aliases&#039;&lt;br /&gt;
sudo postconf -e &#039;alias_maps = hash:/etc/aliases&#039;&lt;br /&gt;
sudo postconf -e &#039;mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, YOUROTHERDOMAIN&#039;&lt;br /&gt;
sudo postconf -e &#039;smtputf8_enable = yes&#039;			 &lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_path = smtpd&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_auth_enable = yes&#039;&lt;br /&gt;
sudo postconf -e &#039;broken_sasl_auth_clients = yes&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_sasl_security_options = noanonymous&#039;&lt;br /&gt;
sudo postconf -e &#039;home_mailbox = Maildir/&#039;&lt;br /&gt;
sudo postconf -e &#039;smtpd_relay_restrictions =  permit_mynetworks permit_sasl_authenticated reject_unauth_destination reject_sender_login_mismatch&#039;&lt;br /&gt;
sudo postfix reload&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B9%84%E0%B8%9F%E0%B8%A5%E0%B9%8C:Eai-solution-postfix.jpg&amp;diff=25</id>
		<title>ไฟล์:Eai-solution-postfix.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B9%84%E0%B8%9F%E0%B8%A5%E0%B9%8C:Eai-solution-postfix.jpg&amp;diff=25"/>
		<updated>2017-02-14T04:54:00Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=%E0%B8%AD%E0%B8%99%E0%B8%B8%E0%B8%8D%E0%B8%B2%E0%B8%95%E0%B9%83%E0%B8%AB%E0%B9%89%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%87%E0%B8%B2%E0%B8%99_EAI_%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B9%84%E0%B8%A3_-_%E0%B8%A7%E0%B8%B4%E0%B8%98%E0%B8%B5%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%82%E0%B8%AD%E0%B8%87%E0%B9%80%E0%B8%A3%E0%B8%B2&amp;diff=24</id>
		<title>อนุญาตให้ใช้งาน EAI อย่างไร - วิธีการของเรา</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=%E0%B8%AD%E0%B8%99%E0%B8%B8%E0%B8%8D%E0%B8%B2%E0%B8%95%E0%B9%83%E0%B8%AB%E0%B9%89%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%87%E0%B8%B2%E0%B8%99_EAI_%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B9%84%E0%B8%A3_-_%E0%B8%A7%E0%B8%B4%E0%B8%98%E0%B8%B5%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%82%E0%B8%AD%E0%B8%87%E0%B9%80%E0%B8%A3%E0%B8%B2&amp;diff=24"/>
		<updated>2017-02-14T04:01:33Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: Created page with &amp;quot;การขยาย SMTPUTF8 (rfc6531  3.2)  &amp;#039;&amp;#039;&amp;#039;เงื่อนไข&amp;#039;&amp;#039;&amp;#039;: ถ้า SMTP เซิร์ฟเวอร์ของผู้รับไม่รองร...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;การขยาย SMTPUTF8 (rfc6531  3.2)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;เงื่อนไข&#039;&#039;&#039;:&lt;br /&gt;
ถ้า SMTP เซิร์ฟเวอร์ของผู้รับไม่รองรับ SMTPUTF8 - จะต้องไม่ส่งอีเมลที่เป็น SMTPUTF8 ส่งออกไป&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;คำแนะนำ&#039;&#039;&#039;:&lt;br /&gt;
*แปลงข้อความ&lt;br /&gt;
*ปฏิเสธข้อความ&lt;br /&gt;
*ส่งภายหลังหรือพยายามส่งไปที่ MX ตัวอื่น&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;แปลงข้อความ&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*การแปลงข้อความอยู่นอกเหนือขอบเขตของ RFC &lt;br /&gt;
ดังนั้นเราจะใช้ตัวกรองบน MTA (เช่นเดียวกับ SpamAssassin/ClamAv) ก่อนที่จะส่ง mail ไปยังคิวขาออก(outgoing)/คิวสุดท้าย &lt;br /&gt;
*กรองข้อความก่อนทำการส่ง&lt;br /&gt;
*ทดสอบผู้รับว่ารองรับการขยาย SMTPUTF8 หรือไม่ &lt;br /&gt;
*เขียนชื่อผู้ใช้และโดเมนใหม่ให้อยู่บนพื้นฐานของ Mapping System/Mail Alias&lt;br /&gt;
*ส่งข้อความตามปกติ&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:eai-solution-postfix.jpg]]&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=Main_Page&amp;diff=21</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=Main_Page&amp;diff=21"/>
		<updated>2017-02-10T09:13:28Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: Created page with &amp;quot;== EAI คืออะไร == *คำนิยามของ RFC *อนุญาตให้ใช้งาน EAI อย่างไร - วิธีการข...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== EAI คืออะไร ==&lt;br /&gt;
*[[คำนิยามของ RFC]]&lt;br /&gt;
*[[อนุญาตให้ใช้งาน EAI อย่างไร - วิธีการของเรา]]&lt;br /&gt;
&lt;br /&gt;
== การติดตั้ง Email สากล ==&lt;br /&gt;
*[[การติดตั้งขั้นพื้นฐาน]] -  รองรับ SMTPUTF8, SMTP Auth (unencrypted &amp;amp; TLS), imap/pop3 (unencrypted &amp;amp;TLS)&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 1]] - ตั้งค่า Postfix ให้เพิ่ม SMTPUTF8 อัตโนมัติเมื่อทำการส่ง EAI Address โดยใช้ Pipe Filter&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 2]]- ตั้งค่า Postfix ให้แก้ไข ที่อยู่ email ของผู้ส่งเมื่อทำการส่งไปยัง mail server ที่ไม่ได้เปิดใช้งาน EAI โดยใช้ Pipe Filter &lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 3]] - รองรับ Multiple virtual domain&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! การติดตั้ง !! LOCAL EAI   !! SEND TO NON-EAI AS EAI!! RECEIVE EAI MAIL !! REPLY TO EAI WITH NON-EAI MAIL CLIENT !! REPLY TO EAI BY NON-EAI WEBMAIL || REPLY TO EAI BY MODIFIED WEBMAIL || RECEIVE/REPLY/SEND using Gmail as a Client&lt;br /&gt;
|- &lt;br /&gt;
| การติดตั้งขั้นพื้นฐาน      || NO   || NO       ||      YES  || NO    ||  NO || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 1  || NO   || NO       ||      YES || YES *  || YES*  || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 2  || YES  ||         YES||     YES||         YES* || YES*      || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 3  || -    ||         -||     -||          -||        || YES|| YES&lt;br /&gt;
|}&lt;br /&gt;
&amp;amp;nbsp;*วิธีนี้จะใช้ได้กับ Mail client ที่อนุญาตให้ใช้ตัวอักษรที่เป็น NON-ASCII หรือ ที่อยู่ email ที่เป็น NON-ASCII จะไม่กลายเป็นตัวอักษรที่อ่านไม่ออก&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Mail Client ==&lt;br /&gt;
 Outlook 2016   - (Base Installation)Send to EAI as NON EAI (address is copy pasted) - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Receive from EAI as NON EAI - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Reply From EAI as NON EAI - No (The EAI email address is garbled when received) using Coremail Server (Receiving)&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Webmail ==&lt;br /&gt;
&lt;br /&gt;
ณ เวลาที่เขียนนี้ ยังไม่มี webmail ตัวไหนที่สามารถใช้งานได้&lt;br /&gt;
&lt;br /&gt;
 NONE&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Gmail เพื่อให้ทำงานเป็น EAI Client ==&lt;br /&gt;
Gmail เป็นตัวเลือกที่ดีที่สุดที่จะใช้เป็น Client&lt;br /&gt;
&lt;br /&gt;
*[[การตั้งค่า Gmail เพื่อให้ทำงานเป็น EAI Client]]&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Outlook 2016 ==&lt;br /&gt;
&lt;br /&gt;
 More Settings-&amp;gt; Outgoing Server -&amp;gt; Checked - My Outgoing server(SMTP) requires authentication&lt;br /&gt;
 More Settings-&amp;gt; Advance -&amp;gt; POP3 110, SMTP 25 , Use the following type of encrypted connection TLS&lt;br /&gt;
&lt;br /&gt;
== รายการของ Scripts  ==&lt;br /&gt;
* [http://interlab.ait.ac.th/eai-wiki/files/squirrelmail.zip Modified Squirrelmail]&lt;br /&gt;
* [https://github.com/padillareyj/eaifilter EAI Filter Scripts]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[พฤติกรรมของ browser  (ที่เกี่ยวข้องกับ IDN หรือ เฉพาะ .ไทย) ในเนื้อหาของเว็บเพจ]]&#039;&#039;&#039;&lt;br /&gt;
*[[Facebook]]&lt;br /&gt;
*[[Twitter]]&lt;br /&gt;
*[[Weibo]]&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=Test&amp;diff=20</id>
		<title>Test</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=Test&amp;diff=20"/>
		<updated>2017-02-10T04:53:03Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== EAI คืออะไร ==&lt;br /&gt;
*[[คำนิยามของ RFC]]&lt;br /&gt;
*[[อนุญาตให้ใช้งาน EAI อย่างไร - วิธีการของเรา]]&lt;br /&gt;
&lt;br /&gt;
== การติดตั้ง Email สากล ==&lt;br /&gt;
*[[การติดตั้งขั้นพื้นฐาน]] -  รองรับ SMTPUTF8, SMTP Auth (unencrypted &amp;amp; TLS), imap/pop3 (unencrypted &amp;amp;TLS)&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 1]] - ตั้งค่า Postfix ให้เพิ่ม SMTPUTF8 อัตโนมัติเมื่อทำการส่ง EAI Address โดยใช้ Pipe Filter&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 2]]- ตั้งค่า Postfix ให้แก้ไข ที่อยู่ email ของผู้ส่งเมื่อทำการส่งไปยัง mail server ที่ไม่ได้เปิดใช้งาน EAI โดยใช้ Pipe Filter &lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 3]] - รองรับ Multiple virtual domain&lt;br /&gt;
== EAI คืออะไร ==&lt;br /&gt;
*[[คำนิยามของ RFC]]&lt;br /&gt;
*[[อนุญาตให้ใช้งาน EAI อย่างไร - วิธีการของเรา]]&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=Test&amp;diff=19</id>
		<title>Test</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=Test&amp;diff=19"/>
		<updated>2017-02-10T04:52:47Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== EAI คืออะไร ==&lt;br /&gt;
*[[คำนิยามของ RFC]]&lt;br /&gt;
*[[อนุญาตให้ใช้งาน EAI อย่างไร - วิธีการของเรา]]&lt;br /&gt;
&lt;br /&gt;
== การติดตั้ง Email สากล ==&lt;br /&gt;
*[[การติดตั้งขั้นพื้นฐาน]] -  รองรับ SMTPUTF8, SMTP Auth (unencrypted &amp;amp; TLS), imap/pop3 (unencrypted &amp;amp;TLS)&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 1]] - ตั้งค่า Postfix ให้เพิ่ม SMTPUTF8 อัตโนมัติเมื่อทำการส่ง EAI Address โดยใช้ Pipe Filter&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 2]]- ตั้งค่า Postfix ให้แก้ไข ที่อยู่ email ของผู้ส่งเมื่อทำการส่งไปยัง mail server ที่ไม่ได้เปิดใช้งาน EAI โดยใช้ Pipe Filter &lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 3]] - รองรับ Multiple virtual domain&lt;br /&gt;
== EAI คืออะไร ==&lt;br /&gt;
*[[คำนิยามของ RFC]]&lt;br /&gt;
*[[อนุญาตให้ใช้งาน EAI อย่างไร - วิธีการของเรา]]&lt;br /&gt;
&lt;br /&gt;
== การติดตั้ง Email สากล ==&lt;br /&gt;
*[[การติดตั้งขั้นพื้นฐาน]] -  รองรับ SMTPUTF8, SMTP Auth (unencrypted &amp;amp; TLS), imap/pop3 (unencrypted &amp;amp;TLS)&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 1]] - ตั้งค่า Postfix ให้เพิ่ม SMTPUTF8 อัตโนมัติเมื่อทำการส่ง EAI Address โดยใช้ Pipe Filter&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 2]]- ตั้งค่า Postfix ให้แก้ไข ที่อยู่ email ของผู้ส่งเมื่อทำการส่งไปยัง mail server ที่ไม่ได้เปิดใช้งาน EAI โดยใช้ Pipe Filter &lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 3]] - รองรับ Multiple virtual domain&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! การติดตั้ง !! LOCAL EAI   !! SEND TO NON-EAI AS EAI!! RECEIVE EAI MAIL !! REPLY TO EAI WITH NON-EAI MAIL CLIENT !! REPLY TO EAI BY NON-EAI WEBMAIL || REPLY TO EAI BY MODIFIED WEBMAIL || RECEIVE/REPLY/SEND using Gmail as a Client&lt;br /&gt;
|- &lt;br /&gt;
| การติดตั้งขั้นพื้นฐาน      || NO   || NO       ||      YES  || NO    ||  NO || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 1  || NO   || NO       ||      YES || YES *  || YES*  || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 2  || YES  ||         YES||     YES||         YES* || YES*      || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 3  || -    ||         -||     -||          -||        || YES|| YES&lt;br /&gt;
|}&lt;br /&gt;
&amp;amp;nbsp;*วิธีนี้จะใช้ได้กับ Mail client ที่อนุญาตให้ใช้ตัวอักษรที่เป็น NON-ASCII หรือ ที่อยู่ email ที่เป็น NON-ASCII จะไม่กลายเป็นตัวอักษรที่อ่านไม่ออก&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Mail Client ==&lt;br /&gt;
 Outlook 2016   - (Base Installation)Send to EAI as NON EAI (address is copy pasted) - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Receive from EAI as NON EAI - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Reply From EAI as NON EAI - No (The EAI email address is garbled when received) using Coremail Server (Receiving)&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=Test&amp;diff=18</id>
		<title>Test</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=Test&amp;diff=18"/>
		<updated>2017-02-10T04:52:35Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== EAI คืออะไร ==&lt;br /&gt;
*[[คำนิยามของ RFC]]&lt;br /&gt;
*[[อนุญาตให้ใช้งาน EAI อย่างไร - วิธีการของเรา]]&lt;br /&gt;
&lt;br /&gt;
== การติดตั้ง Email สากล ==&lt;br /&gt;
*[[การติดตั้งขั้นพื้นฐาน]] -  รองรับ SMTPUTF8, SMTP Auth (unencrypted &amp;amp; TLS), imap/pop3 (unencrypted &amp;amp;TLS)&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 1]] - ตั้งค่า Postfix ให้เพิ่ม SMTPUTF8 อัตโนมัติเมื่อทำการส่ง EAI Address โดยใช้ Pipe Filter&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 2]]- ตั้งค่า Postfix ให้แก้ไข ที่อยู่ email ของผู้ส่งเมื่อทำการส่งไปยัง mail server ที่ไม่ได้เปิดใช้งาน EAI โดยใช้ Pipe Filter &lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 3]] - รองรับ Multiple virtual domain&lt;br /&gt;
== EAI คืออะไร ==&lt;br /&gt;
*[[คำนิยามของ RFC]]&lt;br /&gt;
*[[อนุญาตให้ใช้งาน EAI อย่างไร - วิธีการของเรา]]&lt;br /&gt;
&lt;br /&gt;
== การติดตั้ง Email สากล ==&lt;br /&gt;
*[[การติดตั้งขั้นพื้นฐาน]] -  รองรับ SMTPUTF8, SMTP Auth (unencrypted &amp;amp; TLS), imap/pop3 (unencrypted &amp;amp;TLS)&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 1]] - ตั้งค่า Postfix ให้เพิ่ม SMTPUTF8 อัตโนมัติเมื่อทำการส่ง EAI Address โดยใช้ Pipe Filter&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 2]]- ตั้งค่า Postfix ให้แก้ไข ที่อยู่ email ของผู้ส่งเมื่อทำการส่งไปยัง mail server ที่ไม่ได้เปิดใช้งาน EAI โดยใช้ Pipe Filter &lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 3]] - รองรับ Multiple virtual domain&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! การติดตั้ง !! LOCAL EAI   !! SEND TO NON-EAI AS EAI!! RECEIVE EAI MAIL !! REPLY TO EAI WITH NON-EAI MAIL CLIENT !! REPLY TO EAI BY NON-EAI WEBMAIL || REPLY TO EAI BY MODIFIED WEBMAIL || RECEIVE/REPLY/SEND using Gmail as a Client&lt;br /&gt;
|- &lt;br /&gt;
| การติดตั้งขั้นพื้นฐาน      || NO   || NO       ||      YES  || NO    ||  NO || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 1  || NO   || NO       ||      YES || YES *  || YES*  || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 2  || YES  ||         YES||     YES||         YES* || YES*      || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 3  || -    ||         -||     -||          -||        || YES|| YES&lt;br /&gt;
|}&lt;br /&gt;
&amp;amp;nbsp;*วิธีนี้จะใช้ได้กับ Mail client ที่อนุญาตให้ใช้ตัวอักษรที่เป็น NON-ASCII หรือ ที่อยู่ email ที่เป็น NON-ASCII จะไม่กลายเป็นตัวอักษรที่อ่านไม่ออก&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Mail Client ==&lt;br /&gt;
 Outlook 2016   - (Base Installation)Send to EAI as NON EAI (address is copy pasted) - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Receive from EAI as NON EAI - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Reply From EAI as NON EAI - No (The EAI email address is garbled when received) using Coremail Server (Receiving)&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Webmail ==&lt;br /&gt;
&lt;br /&gt;
ณ&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Gmail เพื่อให้ทำงานเป็น EAI Client ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Outlook 2016 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== รายการของ Scripts  ==&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=Test&amp;diff=17</id>
		<title>Test</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=Test&amp;diff=17"/>
		<updated>2017-02-10T04:52:10Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== EAI คืออะไร ==&lt;br /&gt;
*[[คำนิยามของ RFC]]&lt;br /&gt;
*[[อนุญาตให้ใช้งาน EAI อย่างไร - วิธีการของเรา]]&lt;br /&gt;
&lt;br /&gt;
== การติดตั้ง Email สากล ==&lt;br /&gt;
*[[การติดตั้งขั้นพื้นฐาน]] -  รองรับ SMTPUTF8, SMTP Auth (unencrypted &amp;amp; TLS), imap/pop3 (unencrypted &amp;amp;TLS)&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 1]] - ตั้งค่า Postfix ให้เพิ่ม SMTPUTF8 อัตโนมัติเมื่อทำการส่ง EAI Address โดยใช้ Pipe Filter&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 2]]- ตั้งค่า Postfix ให้แก้ไข ที่อยู่ email ของผู้ส่งเมื่อทำการส่งไปยัง mail server ที่ไม่ได้เปิดใช้งาน EAI โดยใช้ Pipe Filter &lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 3]] - รองรับ Multiple virtual domain&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=Test&amp;diff=16</id>
		<title>Test</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=Test&amp;diff=16"/>
		<updated>2017-02-10T04:51:42Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== EAI คืออะไร ==&lt;br /&gt;
*[[คำนิยามของ RFC]]&lt;br /&gt;
*[[อนุญาตให้ใช้งาน EAI อย่างไร - วิธีการของเรา]]&lt;br /&gt;
&lt;br /&gt;
== การติดตั้ง Email สากล ==&lt;br /&gt;
*[[การติดตั้งขั้นพื้นฐาน]] -  รองรับ SMTPUTF8, SMTP Auth (unencrypted &amp;amp; TLS), imap/pop3 (unencrypted &amp;amp;TLS)&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 1]] - ตั้งค่า Postfix ให้เพิ่ม SMTPUTF8 อัตโนมัติเมื่อทำการส่ง EAI Address โดยใช้ Pipe Filter&lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 2]]- ตั้งค่า Postfix ให้แก้ไข ที่อยู่ email ของผู้ส่งเมื่อทำการส่งไปยัง mail server ที่ไม่ได้เปิดใช้งาน EAI โดยใช้ Pipe Filter &lt;br /&gt;
*[[พัฒนาการติดตั้งครั้งที่ 3]] - รองรับ Multiple virtual domain&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! การติดตั้ง !! LOCAL EAI   !! SEND TO NON-EAI AS EAI!! RECEIVE EAI MAIL !! REPLY TO EAI WITH NON-EAI MAIL CLIENT !! REPLY TO EAI BY NON-EAI WEBMAIL || REPLY TO EAI BY MODIFIED WEBMAIL || RECEIVE/REPLY/SEND using Gmail as a Client&lt;br /&gt;
|- &lt;br /&gt;
| การติดตั้งขั้นพื้นฐาน      || NO   || NO       ||      YES  || NO    ||  NO || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 1  || NO   || NO       ||      YES || YES *  || YES*  || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 2  || YES  ||         YES||     YES||         YES* || YES*      || YES || YES&lt;br /&gt;
|-&lt;br /&gt;
| พัฒนาการติดตั้งครั้งที่ 3  || -    ||         -||     -||          -||        || YES|| YES&lt;br /&gt;
|}&lt;br /&gt;
&amp;amp;nbsp;*วิธีนี้จะใช้ได้กับ Mail client ที่อนุญาตให้ใช้ตัวอักษรที่เป็น NON-ASCII หรือ ที่อยู่ email ที่เป็น NON-ASCII จะไม่กลายเป็นตัวอักษรที่อ่านไม่ออก&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Mail Client ==&lt;br /&gt;
 Outlook 2016   - (Base Installation)Send to EAI as NON EAI (address is copy pasted) - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Receive from EAI as NON EAI - Yes - using Coremail Server as EAI (Receiving)&lt;br /&gt;
                  (Base Installation)Reply From EAI as NON EAI - No (The EAI email address is garbled when received) using Coremail Server (Receiving)&lt;br /&gt;
&lt;br /&gt;
== รายการของ EAI ที่เปิดใช้งาน Webmail ==&lt;br /&gt;
&lt;br /&gt;
ณ เวลาที่เขียนนี้ ยังไม่มี webmail ตัวไหนที่สามารถใช้งานได้&lt;br /&gt;
&lt;br /&gt;
 NONE&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Gmail เพื่อให้ทำงานเป็น EAI Client ==&lt;br /&gt;
Gmail เป็นตัวเลือกที่ดีที่สุดที่จะใช้เป็น Client&lt;br /&gt;
&lt;br /&gt;
*[[การตั้งค่า Gmail เพื่อให้ทำงานเป็น EAI Client]]&lt;br /&gt;
&lt;br /&gt;
== การตั้งค่า Outlook 2016 ==&lt;br /&gt;
&lt;br /&gt;
 More Settings-&amp;gt; Outgoing Server -&amp;gt; Checked - My Outgoing server(SMTP) requires authentication&lt;br /&gt;
 More Settings-&amp;gt; Advance -&amp;gt; POP3 110, SMTP 25 , Use the following type of encrypted connection TLS&lt;br /&gt;
&lt;br /&gt;
== รายการของ Scripts  ==&lt;br /&gt;
* [http://interlab.ait.ac.th/eai-wiki/files/squirrelmail.zip Modified Squirrelmail]&lt;br /&gt;
* [https://github.com/padillareyj/eaifilter EAI Filter Scripts]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[พฤติกรรมของ browser  (ที่เกี่ยวข้องกับ IDN หรือ เฉพาะ .ไทย) ในเนื้อหาของเว็บเพจ]]&#039;&#039;&#039;&lt;br /&gt;
*[[Facebook]]&lt;br /&gt;
*[[Twitter]]&lt;br /&gt;
*[[Weibo]]&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=Test&amp;diff=14</id>
		<title>Test</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=Test&amp;diff=14"/>
		<updated>2017-02-10T04:31:30Z</updated>

		<summary type="html">&lt;p&gt;Nattawut: Created page with &amp;quot;== kong == == kong == == kong ==&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== kong ==&lt;br /&gt;
== kong ==&lt;br /&gt;
== kong ==&lt;/div&gt;</summary>
		<author><name>Nattawut</name></author>
	</entry>
</feed>