Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Baixe o certificado
- wget https://www.geotrust.com/resources/root_certificates/certificates/Equifax_Secure_Global_eBusiness_CA-1.cer -O /root/gmailcert.cer
- # Crie o arquivo de configuração do msmtp
- cat <<EOF > /root/.msmtprc
- account default
- host smtp.gmail.com
- port 587
- from [email protected]
- tls on
- tls_trust_file /root/gmailcert.cer
- auth on
- user [email protected]
- password XXXXXXXX
- logfile ~/.msmtp.log
- EOF
- # Permissaozinha
- chmod 600 /root/.msmtprc
- # Arquivo mutt
- cat <<EOF > /root/.muttrc
- send2-hook '~f [email protected]' 'set sendmail="/usr/bin/msmtp"'
- EOF
- # MUDA A USUARIO/SENHA NO /root/.msmtprc e /root/.muttrc
- # Test
- echo "Teste mutt" | mutt -s "Teste mutt subject" [email protected]
Advertisement
Add Comment
Please, Sign In to add comment