Advertisement
danpacu2

Untitled

Jan 20th, 2021
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. PRoblemas com msmtp en ubunutu server 20.04
  2.  
  3. 1.
  4. ls -l /usr/bin/msmtp
  5. -rwxr-sr-x 1 root msmtp 130728 Oct 11 2019 /usr/bin/msmtp (en amarillo)
  6. 2.
  7. contenido de /etc/msmtprc
  8.  
  9. GNU nano 4.8 msmtprc
  10. # Set defaults.
  11. defaults
  12. # Enable or disable TLS/SSL encryption.
  13. tls on
  14. tls_starttls on
  15. tls_trust_file /etc/ssl/certs/ca-certificates.crt
  16. # Setup WP account's settings.
  17. account gmail
  18. host smtp.gmail.com
  19. port 587
  20. auth login
  21. user danislatabarca@gmail.com
  22. password xxxxxx
  23. from danislatabarca@gmail.com
  24. logfile /var/log/msmtp/msmtp.log
  25.  
  26. account default : gmail
  27.  
  28. 3.
  29. sudo ls -l /var/log/msmtp
  30. total 0
  31. -rw-r--r-- 1 msmtp msmtp 0 Jan 20 10:36 msmtp.log
  32. 4.
  33. Tutorial fuente para la instalación de msmtp
  34. https://codingproductivity.wordpress.com/2018/01/18/configuring-msmtp-on-ubuntu-16-04-again/
  35.  
  36. 5. #error que da al querrer mandar un correo: (con y sin sudo)
  37. echo "test" | mpack -s "test" setlocaleES.sh danpacu@gmail.com
  38. sendmail: cannot connect to smtp.gmail.com, port 587: Expiró el tiempo de conexión
  39. sendmail: could not send mail (account default from /etc/msmtprc)
  40. sendmail: cannot log to /var/log/msmtp/msmtp.log: cannot open: Permiso denegado
  41. sendmail: log info was: host=smtp.gmail.com tls=on auth=on user=danislatabarca@gmail.com from=danislatabarca@gmail.com recipients=danpacu@gmail.com errormsg='cannot connect to smtp.gmail.com, port 587: Expiró el tiempo de conexión' exitcode=EX_TEMPFAIL
  42.  
  43.  
  44.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement