This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configurando os IPs do Servidor | |
IFPRINCIPAL=`ifconfig |cut -f1 -d" "|grep ^[^lo]|head -n1|cut -f1 -d:` | |
echo "Configurando os IPs do Servidor..." | |
IPs=`cat /root/IPs.txt` | |
QTDIPS=`cat /root/IPs.txt|wc -l` | |
if [ QTDIPS = '1' ]; then | |
1IP=`head /root/IPs.txt` | |
echo $1IP >> /root/IPs.txt | |
echo "Ha apenas 1 IP, não é necessario configurar os IPs..." | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEVICE="eth0:0" | |
ONBOOT="yes" | |
BOOTPROTO="none" # For CentOS use "static" | |
IPADDR="IP_FAILOVER" | |
NETMASK="255.255.255.255" | |
BROADCAST="IP_FAILOVER" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update email_lists set name = concat('ZZZZ listas-sort-', listid); | |
mysql -uroot -h127.0.0.1 -e "update email_lists set name = concat('ZZZZ listas-sort-', listid);" sistema |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select distinct e.email | |
from mwz.mw_list_subscriber e | |
where exists (select 1 | |
from mwz.mw_campaign_track_open | |
where subscriber_id = e.subscriber_id); | |
#Export All Base Emails | |
select distinct email |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
STARTTLS with Let's Encrypt and PowerMTA | |
This is an update to my previous post. I tried using the same certificate to let PowerMTA secure our e-mail server using STARTTLS, but unfortunately, Let's Encrypt is still untrusted by our PHP front-end because Let's Encrypt is still a new certificate authority. The solution is to include IdentTrust's root certificate as it's already trusted by all clients. | |
This setup is specific to a server with Apache and PowerMTA. You can probably make this work without a web server. Simply adjust the paths and other things as necessary. | |
I'm pasting the previous steps in this post with some updates. | |
First, log in as root. It's supposed to be a bad practice to work directly on root, but what the heck: | |
# sudo su - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/www/PASTAIEM/admin/com/templates/header.tpl | |
Alterar SISTEMA para sua pasta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pmta delete -queue=*/* | |
pmta delete -queue=hotmail.com/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
smtp-listener 1.2.3.4:465 tls=yes | |
smtp-server-tls-certificate /etc/pmta/certificate-generated-by-openssl.pem "YourPasswordHere" smtp-server-tls-ciphers "HIGH:MEDIUM:!ADH:@STRENGTH" | |
<source 0/0> # matches all | |
allow-starttls yes | |
require-starttls-before-auth yes | |
allow-unencrypted-plain-auth no | |
</source> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lvresize --resizefs --size -40G fedora/home | |
lvresize --resizefs -l +100%FREE fedora/root |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -uroot -ppassword sistema < arquivo-bd.sql |
NewerOlder