LINUX.ORG.RU

msmtp и gmail


0

0

мда. чего-то перестало работать:

конфиг:
account default
host smtp.gmail.com
from ilya.muromec@gmail.com
tls on
auth on
port 587
user ilya.muromec
password skip

лог:
ignoring system configuration file /etc/msmtprc: No such file or directory
loaded user configuration file /home/muromec/.msmtprc
using account default from /home/muromec/.msmtprc
host = smtp.gmail.com
port = 587
timeout = off
protocol = smtp
domain = localhost
auth = choose
user = ilya.muromec
password = *
ntlmdomain = (not set)
tls = on
tls_trust_file = (not set)
tls_key_file = (not set)
tls_cert_file = (not set)
tls_starttls = on
tls_certcheck = on
auto_from = off
maildomain = (not set)
from = ilya.muromec<сабака>gmail.com
dsn_notify = (not set)
dsn_return = (not set)
keepbcc = off
logfile = (not set)
syslog = (not set)
reading recipients from the command line
<-- 220 mx.gmail.com ESMTP a1sm4297666ugf
--> EHLO localhost
<-- 250-mx.gmail.com at your service, [217.146.245.14]
<-- 250-SIZE 20971520
<-- 250-8BITMIME
<-- 250-STARTTLS
<-- 250 ENHANCEDSTATUSCODES
--> STARTTLS
<-- 220 2.0.0 Ready to start TLS
TLS certificate information:
Owner:
Common Name: smtp.gmail.com
Organization: Google Inc
Locality: Mountain View
State or Province: California
Country: US
Issuer:
Common Name: Thawte Premium Server CA
Organization: Thawte Consulting cc
Organizational unit: Certification Services Division
Locality: Cape Town
State or Province: Western Cape
Country: ZA
Validity:
Activation time: Пнд 05 Сен 2005 11:59:02
Expiration time: Вто 05 Сен 2006 11:59:02
Fingerprints:
SHA1: 63:D3:95:11:16:07:F3:A7:F6:61:CC:C6:6C:D6:10:67:59:4E:00:F8
MD5: 83:8C:72:A8:65:DE:FC:43:06:FA:B8:51:E5:C6:91:9A
--> EHLO localhost
<-- 250-mx.gmail.com at your service, [217.146.245.14]
<-- 250-SIZE 20971520
<-- 250-8BITMIME
<-- 250-AUTH LOGIN PLAIN
<-- 250 ENHANCEDSTATUSCODES
--> AUTH PLAIN AGlseWEubXVyb21lYwBjNmYwMmNjYTU5OA==
<-- 535 5.7.1 Credentials Rejected a1sm4297666ugf
msmtp: authentication failed (method PLAIN)
msmtp: server message: 535 5.7.1 Credentials Rejected a1sm4297666ugf
msmtp: could not send mail (account default from /home/muromec/.msmtprc)

☆☆

Права на доступ должны быть такие:
-rw------- 1 _ users 837B Apr 27 21:58 .msmtprc
иначе не запустится.

сам ~/.msmtprc :

defaults
tls on
logfile ~/.msmtp.log


account логин_мой1

host smtp.gmail.com
from логин_мой1@gmail.com
protocol smtp
auth on
user логин_мой1@gmail.com
password my_password
port 587

account логин_мой2

host smtp.gmail.com
from логин_мой2@gmail.com
protocol smtp
auth on
user логин_мой2@gmail.com
password мой_пароль
port 587


# Set a default account
account default : мой_логин1

spinore
()

А порт 995 не пытался использовать? У меня через него коректит с гмэйлом.

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.