Проверить, есть ли логи, которые можно удалить/сжать с помощьюfind / -type f -name *.log
Кроме того, если это возможно, попробуйте добавить больше памяти, чтобы дать системе передышку.
Со следующими настройками Google:
IMAP enabled
Allow less secure apps is ON
Решение состоит в том, чтобы установить пароль приложения -:
Примечание.:Для настройки паролей приложений в Google требуется, чтобы сначала была включена двухфакторная аутентификация -для учетной записи, для которой вы пытаетесь настроить ssmtp.
/var/ssmtp/ssmtp.conf:
#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=postmaster
# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
# Modified 06/27/2020:
# mailhub=mail
root=mysusername@gmail.com
AuthUser=mysusername@gmail.com
#AuthPass=[usual gmail pwd] # aint' gonna work
AuthPass=[pwd generated by https://myaccount.google.com/apppasswords]
#UseTLS=YES
#mailhub=smtp.gmail.com:465
UseSTARTTLS=Yes
mailhub=smtp.gmail.com:587
# Where will the mail seem to come from?
#rewriteDomain=
# The full hostname
hostname=laptop
# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES
На клемме:
$echo "Testing...1...2...3" | ssmtp recipient@gmail.com
Получено на мой почтовый ящик gmail :
ПС:
mutt
работают как талисман .