https://wiki.thnic.or.th/index.php?title=Upgrade_installation_1&feed=atom&action=historyUpgrade installation 1 - ประวัติรุ่นแก้ไข2024-03-28T11:35:24Zประวัติรุ่นแก้ไขของหน้านี้ในวิกิMediaWiki 1.34.2https://wiki.thnic.or.th/index.php?title=Upgrade_installation_1&diff=117&oldid=prevTitipong: Created page with "Make sure you have a working Mail server using the base installation Install php5-cli, the script is using PHP <syntaxhighlight lang="bash"> sudo apt-get install php5-cli <..."2019-09-30T09:43:16Z<p>Created page with "Make sure you have a working Mail server using the base installation Install php5-cli, the script is using PHP <syntaxhighlight lang="bash"> sudo apt-get install php5-cli <..."</p>
<p><b>หน้าใหม่</b></p><div>Make sure you have a working Mail server using the base installation<br />
<br />
<br />
Install php5-cli, the script is using PHP<br />
<syntaxhighlight lang="bash"><br />
sudo apt-get install php5-cli<br />
</syntaxhighlight><br />
<br />
get the script and place it in /etc/postfix<br />
<syntaxhighlight lang="bash"><br />
cd /etc/postfix<br />
sudo wget https://raw.githubusercontent.com/padillareyj/eaifilter/master/eai-add-smtputf8.php<br />
</syntaxhighlight><br />
<br />
Update ownership and permission<br />
<syntaxhighlight lang="bash"><br />
cd /etc/postfix<br />
sudo chown root:root eai-add-smtputf8.php<br />
sudo chmod +x eai-add-smtputf8.php<br />
</syntaxhighlight><br />
<br />
Update your master.cf, the following will filter all incoming mail coming from port 25 and resend to port 10025(accessible locally only), It will append the SMPTUTF8 in MAIL FROM command is executed. MAIL FROM: <MAIL> SMPTUTF8 <br />
<syntaxhighlight lang="bash"><br />
smtp inet n - - - - smtpd -o content_filter=eaifilter -o receive_override_options=no_header_body_checks<br />
eaifilter unix - n n - - pipe flags=RXhu user=nobody argv=/etc/postfix/eai-add-smtputf8.php -f ${sender} -d ${recipient}<br />
127.0.0.1:10025 inet n - n - - smtpd<br />
-o content_filter=<br />
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks,no_milters<br />
-o smtpd_helo_required=no<br />
-o smtpd_helo_restrictions=<br />
-o smtpd_data_restrictions=<br />
-o smtpd_client_restrictions=<br />
-o smtpd_sender_restrictions=<br />
-o smtpd_recipient_restrictions=permit_mynetworks,reject<br />
-o mynetworks_style=host<br />
-o in_flow_delay=0<br />
</syntaxhighlight><br />
<br />
<br />
Update main.cf<br />
<syntaxhighlight lang="bash"><br />
content_filter =eaifilter:[127.0.0.1]:10025<br />
</syntaxhighlight></div>Titipong