<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="th">
	<id>https://wiki.thnic.or.th/index.php?action=history&amp;feed=atom&amp;title=Short_Version_-_Quick_installation</id>
	<title>Short Version - Quick installation - ประวัติรุ่นแก้ไข</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.thnic.or.th/index.php?action=history&amp;feed=atom&amp;title=Short_Version_-_Quick_installation"/>
	<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=Short_Version_-_Quick_installation&amp;action=history"/>
	<updated>2026-10-23T05:22:32Z</updated>
	<subtitle>ประวัติรุ่นแก้ไขของหน้านี้ในวิกิ</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.thnic.or.th/index.php?title=Short_Version_-_Quick_installation&amp;diff=112&amp;oldid=prev</id>
		<title>Titipong: Created page with &quot;Setup directories and install required libraries &lt;syntaxhighlight lang=&quot;bash&quot;&gt; sudo apt-get update sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.thnic.or.th/index.php?title=Short_Version_-_Quick_installation&amp;diff=112&amp;oldid=prev"/>
		<updated>2019-09-30T09:08:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Setup directories and install required libraries &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; sudo apt-get update sudo apt-get install courier-imap courier-imap-ssl  courier-pop courier-pop-...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;หน้าใหม่&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Setup directories and install required 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;
Answers: &lt;br /&gt;
 Web Admin - No&lt;br /&gt;
 Internet Site&lt;br /&gt;
&lt;br /&gt;
Download and build 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 &amp;#039;s/.\x08//g&amp;#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;
Configure 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;
edit /etc/default/saslauthd-postfix , set START, NAME and OPTIONS &amp;#039;&amp;#039;&amp;#039;/etc/default/saslauthd-postfix&amp;#039;&amp;#039;&amp;#039;&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;
edit or create &amp;#039;&amp;#039;&amp;#039;/etc/sasl2/smtpd.conf&amp;#039;&amp;#039;&amp;#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;
Update your configuration and reload. Note: Change SUB.YOURDOMAIN, YOURDOMAIN, YOUROTHERDOMAIN to your own.  YOUROTHERDOMAIN is optional.&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 &amp;#039;myhostname  = SUB.YOURDOMAIN&amp;#039;&lt;br /&gt;
sudo postconf -e &amp;#039;mydomain    = YOURDOMAIN&amp;#039;&lt;br /&gt;
sudo postconf -e &amp;#039;myorigin    = $mydomain&amp;#039;&lt;br /&gt;
sudo postconf -e &amp;#039;inet_interfaces = all&amp;#039;&lt;br /&gt;
sudo postconf -e &amp;#039;mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/24&amp;#039;&lt;br /&gt;
sudo postconf -e &amp;#039;alias_database = hash:/etc/aliases&amp;#039;&lt;br /&gt;
sudo postconf -e &amp;#039;alias_maps = hash:/etc/aliases&amp;#039;&lt;br /&gt;
sudo postconf -e &amp;#039;mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, YOUROTHERDOMAIN&amp;#039;&lt;br /&gt;
sudo postconf -e &amp;#039;smtputf8_enable = yes&amp;#039;			 &lt;br /&gt;
sudo postconf -e &amp;#039;smtpd_sasl_path = smtpd&amp;#039;&lt;br /&gt;
sudo postconf -e &amp;#039;smtpd_sasl_auth_enable = yes&amp;#039;&lt;br /&gt;
sudo postconf -e &amp;#039;broken_sasl_auth_clients = yes&amp;#039;&lt;br /&gt;
sudo postconf -e &amp;#039;smtpd_sasl_security_options = noanonymous&amp;#039;&lt;br /&gt;
sudo postconf -e &amp;#039;home_mailbox = Maildir/&amp;#039;&lt;br /&gt;
sudo postconf -e &amp;#039;smtpd_relay_restrictions =  permit_mynetworks permit_sasl_authenticated reject_unauth_destination reject_sender_login_mismatch&amp;#039;&lt;br /&gt;
sudo postfix reload&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;/div&gt;</summary>
		<author><name>Titipong</name></author>
	</entry>
</feed>