2016-05-19 06:51:20 -05:00
<!DOCTYPE html>
2015-07-07 08:09:17 -05:00
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" / >
< title > Enable postscreen service< / title >
2015-07-31 23:14:52 -05:00
< link rel = "stylesheet" type = "text/css" href = "./css/markdown.css" / >
2015-07-07 08:09:17 -05:00
< / head >
< body >
2019-07-13 06:21:55 -05:00
2015-07-07 08:09:17 -05:00
< div id = "navigation" >
2017-11-16 21:48:44 -06:00
< a href = "https://www.iredmail.org" target = "_blank" >
2016-04-19 12:48:51 -05:00
< img alt = "iRedMail web site"
src="./images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>
< span > iRedMail< / span >
< / a >
2016-02-29 02:15:19 -06:00
// < a href = "./index.html" > Document Index< / a > < / div > < h1 id = "enable-postscreen-service" > Enable postscreen service< / h1 >
2015-07-07 08:15:23 -05:00
< div class = "toc" >
< ul >
< li > < a href = "#enable-postscreen-service" > Enable postscreen service< / a > < ul >
< li > < a href = "#enable-postscreen-service_1" > Enable postscreen service< / a > < / li >
2018-07-04 03:20:44 -05:00
< li > < a href = "#disable-postscreen-service" > Disable postscreen service< / a > < / li >
2015-07-07 08:15:23 -05:00
< li > < a href = "#see-also" > See Also< / a > < / li >
< li > < a href = "#references" > References< / a > < / li >
< / ul >
< / li >
< / ul >
< / div >
2015-07-07 08:09:17 -05:00
< p > < strong > WARNING< / strong > : With postscreen service enabled, your users must use port 587 to
send email, port 25 will be used by postscreen service instead of normal smtp
service.< / p >
2015-07-07 08:15:23 -05:00
< h2 id = "enable-postscreen-service_1" > Enable postscreen service< / h2 >
2015-07-07 08:09:17 -05:00
< p > iRedMail ships a script to enable postscreen. You can enable it with steps below:< / p >
2015-07-07 08:15:23 -05:00
< ol >
2019-12-08 21:38:29 -06:00
< li > Download script < code > enable_postscreen.sh< / code > from < a href = "https://github.com/iredmail/iRedMail/blob/1.0/tools/enable_postscreen.sh" > iRedMail source code
repository< / a > .< / li >
2015-07-07 08:15:23 -05:00
< li > Upload this script to your iRedMail server, then execute it to enable
postscreen service:< / li >
< / ol >
2015-07-07 08:09:17 -05:00
< pre > < code > # bash enable_postscreen.sh
< / code > < / pre >
2015-07-07 08:15:23 -05:00
< p > That's all.< / p >
< p > Important notes:< / p >
< ul >
< li > It will backup < code > /etc/postfix/main.cf< / code > and < code > /etc/postfix/master.cf< / code > first,
if postscreen doesn't work, you can restore these 2 files.< / li >
< li > It uses several DNSBL servers by default, you'd better open
< code > /etc/postfix/main.cf< / code > (Linux/OpenBSD) or < code > /usr/local/etc/postfix/main.cf< / code >
(FreeBSD) to check the DNSBL servers it enabled, you're free to remove some
of them (or add new ones) if you want.< / li >
< / ul >
2018-07-04 03:20:44 -05:00
< h2 id = "disable-postscreen-service" > Disable postscreen service< / h2 >
< p > If your iRedMail already have postscreen service enabled, it's easy to disable
it by following steps below.< / p >
< ul >
< li > Open file < code > /etc/postfix/master.cf< / code > , find lines below (usually they're first
few lines in this file):< / li >
< / ul >
< pre > < code > #smtp inet n - - - - smtpd
smtp inet n - - - 1 postscreen
smtpd pass - - n - - smtpd
< / code > < / pre >
< ul >
< li > Uncomment first line, comment out the other 2 lines:< / li >
< / ul >
< pre > < code > smtp inet n - - - - smtpd
#smtp inet n - - - 1 postscreen
#smtpd pass - - n - - smtpd
< / code > < / pre >
< ul >
< li > Now restart or reload Postfix service. That's it. No need to modify any
setting in < code > /etc/postfix/main.cf< / code > .< / li >
< / ul >
2015-07-07 08:09:17 -05:00
< h2 id = "see-also" > See Also< / h2 >
< p > If you don't want to use postscreen service, you can < a href = "./enable.dnsbl.html" > enable DNSBL service< / a >
instead, it helps a lot too, but less effective than postscreen service.< / p >
< h2 id = "references" > References< / h2 >
< ul >
< li > < a href = "http://www.postfix.org/POSTSCREEN_README.html" > Postfix Postscreen Howto< / a > < / li >
< li > < a href = "http://www.postfix.org/postscreen.8.html" > Postfix manual page: postscreen(8)< / a > < / li >
2016-05-19 06:51:20 -05:00
< / ul > < div class = "footer" >
2019-12-31 00:07:48 -06:00
< p style = "text-align: center; color: grey;" > All documents are available in < a href = "https://github.com/iredmail/docs/" > GitHub repository< / a > , and published under < a href = "http://creativecommons.org/licenses/by-nd/3.0/us/" target = "_blank" > Creative Commons< / a > license. You can < a href = "https://github.com/iredmail/docs/archive/master.zip" > download the latest version< / a > for offline reading. If you found something wrong, please do < a href = "https://www.iredmail.org/contact.html" > contact us< / a > to fix it.< / p >
2016-05-19 06:51:20 -05:00
< / div >
2017-11-05 02:33:58 -06:00
<!-- Global site tag (gtag.js) - Google Analytics -->
< script async src = "https://www.googletagmanager.com/gtag/js?id=UA-3293801-21" > < / script >
< script >
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
2015-07-07 08:09:17 -05:00
2017-11-05 02:33:58 -06:00
gtag('config', 'UA-3293801-21');
2015-07-07 08:09:17 -05:00
< / script >
< / body > < / html >