<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>F. A. Q. - Recent questions and answers in Linux</title>
<link>https://clearpointhosting.com/q2a/index.php/qa/servers/linux</link>
<description>Powered by Question2Answer</description>
<item>
<title>Answered: How to Hide Zimbra/Disallow Index from Search Engines?</title>
<link>https://clearpointhosting.com/q2a/index.php/51/how-to-hide-zimbra-disallow-index-from-search-engines?show=52#a52</link>
<description>&lt;header class=&quot;entry-header&quot;&gt;&lt;div class=&quot;posted-by&quot;&gt;Posted by &lt;span class=&quot;meta-author&quot;&gt; &lt;span class=&quot;author vcard&quot;&gt;&lt;a class=&quot;url fn n&quot; href=&quot;https://imanudin.net/author/iman/&quot; title=&quot;View all posts by Imanudin Ahmad&quot; rel=&quot;author nofollow&quot;&gt;Imanudin Ahmad&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/header&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;entry-content clearfix&quot;&gt;&lt;div class=&quot;code-block code-block-7&quot; style=&quot;margin: 8px 0 8px 8px; float: right;&quot;&gt;&lt;/div&gt;&lt;p&gt;I found this useful information from Zimbra forum and Zeta alliance milist. These script will prevent search engine like Google to hide or disallow index Zimbra webmail.&lt;/p&gt;&lt;p&gt;If you type &lt;em&gt;“Zimbra webmail”&lt;/em&gt; on Google, you will find a lot of Zimbra webmail from some organizations that indexed by Google.&lt;/p&gt;&lt;div class=&quot;code-block code-block-8&quot; style=&quot;margin: 8px 8px 8px 0; float: left;&quot;&gt;&lt;/div&gt;&lt;pre&gt;zmprov mcf +zimbraResponseHeader &quot;Strict-Transport-Security: max-age=31536000; includeSubDomains&quot;
zmprov mcf +zimbraResponseHeader &quot;X-XSS-Protection: 1; mode=block&quot;
zmprov mcf +zimbraResponseHeader &quot;X-Content-Type-Options: nosniff&quot;
zmprov mcf +zimbraResponseHeader &quot;X-Robots-Tag: noindex&quot;
zmprov mcf zimbraMailKeepOutWebCrawlers TRUE
zmmailboxdctl restart
&lt;/pre&gt;&lt;p&gt;If you run above script, it will be one method to prevent your Zimbra server from a target .&lt;/p&gt;&lt;/div&gt;</description>
<category>Linux</category>
<guid isPermaLink="true">https://clearpointhosting.com/q2a/index.php/51/how-to-hide-zimbra-disallow-index-from-search-engines?show=52#a52</guid>
<pubDate>Sat, 02 Dec 2023 04:54:52 +0000</pubDate>
</item>
<item>
<title>Answered: How to Use Proxmox Mail Gateway with an Authenticated Smarthost</title>
<link>https://clearpointhosting.com/q2a/index.php/33/how-use-proxmox-mail-gateway-with-authenticated-smarthost?show=34#a34</link>
<description>&lt;p class=&quot;post-byline&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; by &lt;span class=&quot;author vcard&quot;&gt; &lt;span class=&quot;fn&quot;&gt;&lt;a href=&quot;https://www.caretech.io/author/joel/&quot; title=&quot;Posts by joel&quot; rel=&quot;author nofollow&quot;&gt;joel&lt;/a&gt;&lt;/span&gt; &lt;/span&gt; · &lt;span class=&quot;published&quot;&gt;October 6, 2018&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;entry themeform&quot;&gt;&lt;div class=&quot;entry-inner&quot;&gt;&lt;div id=&quot;attachment_1648&quot; style=&quot;width: 1198px&quot; class=&quot;wp-caption alignnone&quot;&gt;&lt;img aria-describedby=&quot;caption-attachment-1648&quot; src=&quot;https://www.caretech.io/wp-content/uploads/2018/09/Proxmox-Smarthost-GUI.png&quot; alt=&quot;&quot; srcset=&quot;https://www.caretech.io/wp-content/uploads/2018/09/Proxmox-Smarthost-GUI.png 1188w, https://www.caretech.io/wp-content/uploads/2018/09/Proxmox-Smarthost-GUI-300x84.png 300w, https://www.caretech.io/wp-content/uploads/2018/09/Proxmox-Smarthost-GUI-768x214.png 768w, https://www.caretech.io/wp-content/uploads/2018/09/Proxmox-Smarthost-GUI-1024x285.png 1024w&quot; style=&quot;height:331px; width:1188px&quot; class=&quot;size-full wp-image-1648&quot;&gt;&lt;p id=&quot;caption-attachment-1648&quot; class=&quot;wp-caption-text&quot;&gt;The Proxmox email gateway GUI allows you to set a non-authenticated smarthost.&lt;/p&gt;&lt;/div&gt;&lt;p&gt;I’ve been using the excellent &lt;a rel=&quot;nofollow&quot; href=&quot;https://www.proxmox.com/en/proxmox-mail-gateway&quot;&gt;Proxmox mail gateway&lt;/a&gt; to filter spam for our CareTech email server. Since I haven’t decided, yet, to pay our ISP their monthly charge for a static IP address, I can not send mail directly and have to relay through a smarthost. The Proxmox Mail Gateway interface allows you to set a smarthost but offers no provision for relaying with SMTP authentication. If you need to authenticate with your smart host, you’ll need to spend some time with the command line. Let’s get started.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;1. Let’s take care of software dependencies first. You need to install a SASL library that’s not included by default; if you skip this step, you’ll see errors in your Postfix log and authentication will fail. Update software package information, and then install “libsasl2-modules.”&lt;/p&gt;&lt;div class=&quot;enlighter-default enlighter-v-standard enlighter-t-enlighter enlighter-l-shell enlighter-hover&quot;&gt;&lt;div class=&quot;enlighter-code&quot;&gt;&lt;div class=&quot;enlighter&quot;&gt;&lt;div&gt;&lt;span class=&quot;enlighter-text&quot;&gt;apt-get update&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;enlighter-text&quot;&gt;apt-get install libsasl2-modules&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;2. Change to the /etc/postfix/ directory and create a file to store the hostname, username, and password of your relay host; and set secure permissions on the file. It doesn’t matter what you name the file; just use a name that makes sense to you. I’ve chosen to call it “relay_passwd.”&lt;/p&gt;&lt;div class=&quot;enlighter-default enlighter-v-standard enlighter-t-enlighter enlighter-l-shell enlighter-hover&quot;&gt;&lt;div class=&quot;enlighter-code&quot;&gt;&lt;div class=&quot;enlighter&quot;&gt;&lt;div&gt;&lt;span class=&quot;enlighter-text&quot;&gt;cd /etc/postfix&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;enlighter-text&quot;&gt;touch relay_passwd&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;enlighter-text&quot;&gt;chmod &lt;/span&gt;&lt;span class=&quot;enlighter-n1&quot;&gt;0600&lt;/span&gt;&lt;span class=&quot;enlighter-text&quot;&gt; relay_passwd&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;3. Edit the file using your favourite command-line editor, and enter just one line in precisely this format (replacing your relay server, port number, username, and password with your own information):&lt;/p&gt;&lt;div class=&quot;enlighter-default enlighter-v-standard enlighter-t-enlighter enlighter-l-shell enlighter-hover&quot;&gt;&lt;div class=&quot;enlighter-code&quot;&gt;&lt;div class=&quot;enlighter&quot;&gt;&lt;div&gt;&lt;span class=&quot;enlighter-text&quot;&gt;[smtp.example.com]:&lt;/span&gt;&lt;span class=&quot;enlighter-n1&quot;&gt;587&lt;/span&gt;&lt;span class=&quot;enlighter-text&quot;&gt; username:password&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;4. Save and close the file. Then, hash the newly created password file to make a db file Postfix can use:&lt;/p&gt;&lt;div class=&quot;enlighter-default enlighter-v-standard enlighter-t-enlighter enlighter-l-shell enlighter-hover&quot;&gt;&lt;div class=&quot;enlighter-code&quot;&gt;&lt;div class=&quot;enlighter&quot;&gt;&lt;div&gt;&lt;span class=&quot;enlighter-text&quot;&gt;postmap relay_passwd&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;5. Make a backup copy of your main.cf file in case you mess things up and need to restore known-good configuration. I like to date-stamp my configuration file backups, like so. Replace with today’s date.&lt;/p&gt;&lt;div class=&quot;enlighter-default enlighter-v-standard enlighter-t-enlighter enlighter-l-shell enlighter-hover&quot;&gt;&lt;div class=&quot;enlighter-code&quot;&gt;&lt;div class=&quot;enlighter&quot;&gt;&lt;div&gt;&lt;span class=&quot;enlighter-text&quot;&gt;cp main.cf main.cf.&lt;/span&gt;&lt;span class=&quot;enlighter-n1&quot;&gt;2018&lt;/span&gt;&lt;span class=&quot;enlighter-text&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;enlighter-n1&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;enlighter-text&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;enlighter-n1&quot;&gt;06&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;6. Edit main.cf and add the following lines. Again, replace the “smtp.example.com” host name with the actual host name of your smart host; use the correct port number; and pay attention to the file name.&lt;/p&gt;&lt;div class=&quot;enlighter-default enlighter-v-standard enlighter-t-enlighter enlighter-l-shell enlighter-hover&quot;&gt;&lt;div class=&quot;enlighter-code&quot;&gt;&lt;div class=&quot;enlighter&quot;&gt;&lt;div&gt;&lt;span class=&quot;enlighter-k7&quot;&gt;relayhost&lt;/span&gt;&lt;span class=&quot;enlighter-text&quot;&gt;=[smtp.example.com]:&lt;/span&gt;&lt;span class=&quot;enlighter-n1&quot;&gt;587&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;enlighter-text&quot;&gt;smtp_use_tls = yes&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;enlighter-text&quot;&gt;smtp_sasl_auth_enable = yes&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;enlighter-text&quot;&gt;smtp_sasl_password_maps = hash:/etc/postfix/relay_passwd&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;enlighter-text&quot;&gt;smtp_sasl_security_options =&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;7. Restart Postfix, and test your new configuration.&lt;/p&gt;&lt;div class=&quot;enlighter-default enlighter-v-standard enlighter-t-enlighter enlighter-l-shell enlighter-hover&quot;&gt;&lt;div class=&quot;enlighter-code&quot;&gt;&lt;div class=&quot;enlighter&quot;&gt;&lt;div&gt;&lt;span class=&quot;enlighter-text&quot;&gt;systemctl restart postfix&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;8. Does it work? Great! Now, note that the main.cf file is written by the Proxmox web interface and the next time you make settings changes in the web interface affecting Postfix config, the lines you just added will be over-written and lost. To make this change permanent, you’ll need to edit the main.cf template file. Change to the /var/lib/pmg/templates directory and edit the main.cf file there, making exactly the same edits you made to the /etc/postfix/main/cf file. This will ensure that next time Proxmox writes out config file changes, it will include your custom lines and your authenticated smarthost relay will keep on working.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;</description>
<category>Linux</category>
<guid isPermaLink="true">https://clearpointhosting.com/q2a/index.php/33/how-use-proxmox-mail-gateway-with-authenticated-smarthost?show=34#a34</guid>
<pubDate>Tue, 22 Aug 2023 01:55:00 +0000</pubDate>
</item>
<item>
<title>Answered: How to use Amazon SES to send mails to specific domains in Zimbra</title>
<link>https://clearpointhosting.com/q2a/index.php/31/how-to-use-amazon-ses-to-send-mails-to-specific-domains-zimbra?show=32#a32</link>
<description>&lt;div class=&quot;flex--item fl1&quot;&gt;&lt;h2 class=&quot;mb0&quot; data-answercount=&quot;1&quot;&gt;Quite a good one, it requires fiddling with zimbra and postfix and unfortunately requires some manual configuration. I suppose you can handle the amazon stuff for getting an account.&lt;/h2&gt;&lt;/div&gt;&lt;div class=&quot;flex--item&quot;&gt;&lt;div class=&quot;d-flex g4 gsx ai-center sm:fd-column sm:ai-start&quot;&gt;&lt;div class=&quot;flex--item s-select&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id=&quot;answers-header&quot;&gt;&lt;div class=&quot;answers-subheader d-flex ai-center mb8&quot;&gt;&lt;div class=&quot;flex--item&quot;&gt;&lt;div class=&quot;d-flex g4 gsx ai-center sm:fd-column sm:ai-start&quot;&gt;&lt;div class=&quot;flex--item s-select&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id=&quot;answer-779445&quot; class=&quot;answer js-answer accepted-answer js-accepted-answer&quot; data-answerid=&quot;779445&quot; data-parentid=&quot;779234&quot; data-score=&quot;2&quot; data-position-on-page=&quot;1&quot; data-highest-scored=&quot;1&quot; data-question-has-accepted-highest-score=&quot;1&quot;&gt;&lt;div class=&quot;post-layout&quot;&gt;&lt;div class=&quot;votecell post-layout--left&quot;&gt;&lt;div class=&quot;js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200&quot; data-post-id=&quot;779445&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;votecell post-layout--left&quot;&gt;&lt;div class=&quot;js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200&quot; data-post-id=&quot;779445&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;answercell post-layout--right&quot;&gt;&lt;div class=&quot;s-prose js-post-body&quot;&gt;&lt;p&gt;all commands are done on the cli as the zimbra user. So login with ssh and become zimbra user by&lt;/p&gt;&lt;pre&gt;&lt;code&gt;su - zimbra
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;create an file for authentication to amazon:&lt;/p&gt;&lt;pre&gt;&lt;code&gt;echo email-smtp.eu-west-1.amazonaws.com awsauthuser:awsauthpass &amp;gt; /opt/zimbra/conf/relay_password
postmap lmdb:/opt/zimbra/conf/relay_password
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Configure zimbra to use this username and password:&lt;/p&gt;&lt;pre&gt;&lt;code&gt;zmprov mcf zimbraMtaSmtpSaslPasswordMaps lmdb:/opt/zimbra/conf/relay_password
zmprov mcf zimbraMtaSmtpSaslAuthEnable yes
zmprov mcf zimbraMtaSmtpCnameOverridesServername no
zmprov mcf zimbraMtaSmtpTlsSecurityLevel may
zmprov mcf zimbraMtaSmtpSaslSecurityOptions noanonymous
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Create a lookup file where you put the domains you want to send via amazon:&lt;/p&gt;&lt;pre&gt;&lt;code&gt;echo outlook.com smtp:email-smtp.eu-west-1.amazonaws.com &amp;gt; /opt/zimbra/conf/relay_amazon
postmap lmdb:/opt/zimbra/conf/relay_amazon
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Of Course, you can add extra domains to the list above in an editor of your liking. Remember to run the postmap command after every change.&lt;/p&gt;&lt;p&gt;Tell zimbra to use the above mapping:&lt;/p&gt;&lt;pre&gt;&lt;code&gt;zmprov mcf zimbraMtaTransportMaps lmdb:/opt/zimbra/conf/relay_amazon,proxy:ldap:/opt/zimbra/conf/ldap-transport.cf
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Activate the configuration&lt;/p&gt;&lt;pre&gt;&lt;code&gt;zmmtactl reload
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</description>
<category>Linux</category>
<guid isPermaLink="true">https://clearpointhosting.com/q2a/index.php/31/how-to-use-amazon-ses-to-send-mails-to-specific-domains-zimbra?show=32#a32</guid>
<pubDate>Wed, 26 Jul 2023 10:30:26 +0000</pubDate>
</item>
</channel>
</rss>