Mudanças entre as edições de "Msmtp"
De MochilaWiki
Ir para navegaçãoIr para pesquisarLinha 1: | Linha 1: | ||
+ | ln -s /usr/bin/msmtp /usr/sbin/sendmail | ||
+ | touch /var/log/msmtprc && chmod 666 /var/log/msmtprc | ||
+ | |||
+ | chmod 600 ~/.msmtprc | ||
+ | apt-get install msmtp msmtp-mta mailutils | ||
+ | |||
+ | == gmail == | ||
+ | # Set default values for all following accounts. | ||
+ | defaults | ||
+ | port 587 | ||
+ | tls on | ||
+ | tls_trust_file /etc/ssl/certs/ca-certificates.crt | ||
+ | |||
+ | # gmail account | ||
+ | account gmail | ||
+ | host smtp.gmail.com | ||
+ | auth on | ||
+ | port 587 | ||
+ | user your.account@gmail.com | ||
+ | password yourpassword | ||
+ | from your.account@gmail.com | ||
+ | #aliases /etc/aliases | ||
+ | #tls_trust_file /usr/share/ca-certificates/mozilla/Equifax_Secure_CA.crt | ||
+ | |||
+ | == PHP == | ||
sendmail_path = "/usr/bin/msmtp -C /path/to/your/config -t" | sendmail_path = "/usr/bin/msmtp -C /path/to/your/config -t" | ||
Linha 7: | Linha 32: | ||
* https://www.sylvaindurand.org/send-emails-with-msmtp/ | * https://www.sylvaindurand.org/send-emails-with-msmtp/ | ||
* https://wiki.debian.org/msmtp | * https://wiki.debian.org/msmtp | ||
+ | * https://websistent.com/how-to-use-msmtp-with-gmail-yahoo-and-php-mail/ | ||
+ | * https://decatec.de/linux/linux-einfach-e-mails-versenden-mit-msmtp/ |
Edição das 19h35min de 16 de março de 2020
ln -s /usr/bin/msmtp /usr/sbin/sendmail touch /var/log/msmtprc && chmod 666 /var/log/msmtprc
chmod 600 ~/.msmtprc apt-get install msmtp msmtp-mta mailutils
gmail
# Set default values for all following accounts. defaults port 587 tls on tls_trust_file /etc/ssl/certs/ca-certificates.crt # gmail account account gmail host smtp.gmail.com auth on port 587 user your.account@gmail.com password yourpassword from your.account@gmail.com #aliases /etc/aliases #tls_trust_file /usr/share/ca-certificates/mozilla/Equifax_Secure_CA.crt
PHP
sendmail_path = "/usr/bin/msmtp -C /path/to/your/config -t"
Referencias
- https://www.dicas-l.com.br/arquivo/enviar_email_com_msmtp.php
- https://wiki.archlinux.org/index.php/Msmtp
- https://gist.github.com/JosefJezek/6194563
- https://www.sylvaindurand.org/send-emails-with-msmtp/
- https://wiki.debian.org/msmtp
- https://websistent.com/how-to-use-msmtp-with-gmail-yahoo-and-php-mail/
- https://decatec.de/linux/linux-einfach-e-mails-versenden-mit-msmtp/