danpacu2

Untitled

Jan 20th, 2021
339
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. password xxxxxx
  22. logfile /var/log/msmtp/msmtp.log
  23.  
  24. account default : gmail
  25.  
  26. 3.
  27. sudo ls -l /var/log/msmtp
  28. total 0
  29. -rw-r--r-- 1 msmtp msmtp 0 Jan 20 10:36 msmtp.log
  30. 4.
  31. Tutorial fuente para la instalación de msmtp
  32. https://codingproductivity.wordpress.com/2018/01/18/configuring-msmtp-on-ubuntu-16-04-again/
  33.  
  34. 5. #error que da al querrer mandar un correo: (con y sin sudo)
  35. echo "test" | mpack -s "test" setlocaleES.sh [email protected]
  36. sendmail: cannot connect to smtp.gmail.com, port 587: Expiró el tiempo de conexión
  37. sendmail: could not send mail (account default from /etc/msmtprc)
  38. sendmail: cannot log to /var/log/msmtp/msmtp.log: cannot open: Permiso denegado
  39. sendmail: log info was: host=smtp.gmail.com tls=on auth=on [email protected] [email protected] [email protected] errormsg='cannot connect to smtp.gmail.com, port 587: Expiró el tiempo de conexión' exitcode=EX_TEMPFAIL
  40.  
  41.  
  42.  
Advertisement
Add Comment
Please, Sign In to add comment