{"id":31613,"date":"2017-10-30T18:37:29","date_gmt":"2017-10-30T18:37:29","guid":{"rendered":"http:\/\/blogmed.antonini.med.br\/?p=31613"},"modified":"2021-04-02T04:56:01","modified_gmt":"2021-04-02T04:56:01","slug":"instalar-e-configurar-spamassassin-e-amavisd","status":"publish","type":"post","link":"https:\/\/antonini.ddns.net\/?p=31613","title":{"rendered":"Instalar e configurar spamassassin, amavisd e clamaV"},"content":{"rendered":"<p><b>sudo apt-get install spamassassin amavisd-new<\/b><\/p>\n<p><b>nano \/etc\/mailname<\/b><\/p>\n<p><span style=\"font-weight: 400;\">e colocar nele<\/span><\/p>\n<p><b>antonini.psc.br<\/b><\/p>\n<p><span style=\"font-weight: 400;\">editar o arquivo:<\/span><\/p>\n<p><b>nano <\/b><b>\/etc\/default\/spamassassin<\/b><\/p>\n<p><span style=\"font-weight: 400;\">mudar <\/span><b>ENABLE=0 <\/b><span style=\"font-weight: 400;\">para <\/span><b>ENABLE=1 <\/b>e<b> CRON=0&nbsp;<\/b>para&nbsp;<b>CRON=1<\/b><\/p>\n<p><b>\/<\/b><b>etc<\/b><b>\/<\/b><b>init.d<\/b><b>\/<\/b><b>spamassassin start<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Configurar SSL<\/span><\/p>\n<p><b>cd \/etc\/ssl\/citadel<\/b><b><br \/>\n<\/b><b>mkdir backup<\/b><b><br \/>\n<\/b><b>mv citadel* backup<\/b><\/p>\n<p><b>openssl req -new -nodes -newkey rsa:4096 -days 365 -keyout citadel.key -out citadel.csr<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Preencher o certificado:<\/span><\/p>\n<p><b>BR<\/b><br \/>\n<b>Parana<\/b><br \/>\n<b>Curitiba<\/b><br \/>\n<b>Antonini<\/b><br \/>\n<b>Website<\/b><br \/>\n<b>ns1.antonini.psc.br<\/b><br \/>\n<b>antonini@antonini.psc.br<\/b><br \/>\n<b><\/b><\/p>\n<p><b>chmod 600 citadel.key<\/b><\/p>\n<p><b>openssl x509 -req -days 1000 -in citadel.csr -signkey citadel.key -out citadel.cer<\/b><b><\/b><\/p>\n<p><b>cp -a citadel* \/etc\/ssl\/webcit\/<\/b><\/p>\n<p><b>\/etc\/init.d\/citadel restart<\/b><\/p>\n<p><b>\/etc\/init.d\/webcit start<\/b><\/p>\n<p><span style=\"color: #0000ff;\"><strong>Instalar ClamaV<\/strong><\/span><\/p>\n<p><b>apt-get install clamav<\/b><\/p>\n<p><b>freschclam<\/b><\/p>\n<p><b>service clamav-freshclam start<\/b><\/p>\n<p><b>systemctl enable clamav-freshclam<\/b><\/p>\n<p><span style=\"font-weight: 400;\">ou<\/span><\/p>\n<p><b>\/etc\/init.d\/clamav-freshclam start<\/b><\/p>\n<p><b>\/etc\/init.d\/clamav-freshclam enable<\/b><\/p>\n<p>Caso retorne esta mensagem de erro:&nbsp;<strong>ERROR: \/var\/log\/clamav\/freshclam.log is locked by another process<\/strong><\/p>\n<p><strong>sudo service clamav-freshclam stop<\/strong><\/p>\n<p><strong>sudo service clamav-freshclam start<\/strong><\/p>\n<p><strong><\/strong>e digite novamente&nbsp;<strong>freschclam<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\">[<a href=\"javascript:history.go(-1)\">Voltar<\/a>]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>sudo apt-get install spamassassin amavisd-new nano \/etc\/mailname e colocar nele antonini.psc.br editar o arquivo: nano \/etc\/default\/spamassassin mudar ENABLE=0 para ENABLE=1 e CRON=0&nbsp;para&nbsp;CRON=1 \/etc\/init.d\/spamassassin start Configurar SSL cd \/etc\/ssl\/citadel mkdir backup mv citadel* backup openssl req -new -nodes -newkey rsa:4096 -days 365 -keyout citadel.key -out citadel.csr Preencher o certificado: BR Parana Curitiba Antonini Website ns1.antonini.psc.br antonini@antonini.psc.br [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-31613","post","type-post","status-publish","format-standard","hentry","category-informatica"],"_links":{"self":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/31613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=31613"}],"version-history":[{"count":6,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/31613\/revisions"}],"predecessor-version":[{"id":31615,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/31613\/revisions\/31615"}],"wp:attachment":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=31613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=31613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=31613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}