ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Alexei V. Mezin" <alexei.mezin@gmail.com>
To: sysadmins@lists.altlinux.org
Subject: [Sysadmins] postfix gmail relay
Date: Wed, 13 Apr 2016 01:05:55 +0300
Message-ID: <nejrg3$opv$1@ger.gmane.org> (raw)

Хочу настроить postfix на пересылку почты через gmail. Делал так два 
раза на системах их p7, по инструкции типа
http://www.shellhacks.com/ru/Postfix-Reley-cherez-Gmail-Linux-Mint-Ubuntu-Debian

Все работало и работает.

Теперь пытаюсь повторить тот же фокус на системе из Сизифа. Не выходит 
каменный цветок.


Вот как выглядит лог в работающей системе:



  starting new SASL client
  name_mask: noanonymous
  smtp_sasl_authenticate: smtp.gmail.com[173.194.222.109]:587: SASL 
mechanisms LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
  > smtp.gmail.com[173.194.222.109]:587: AUTH LOGIN
  vstream_fflush_some: fd 17 flush 12
  vstream_buf_get_ready: fd 17 got 18
  < smtp.gmail.com[173.194.222.109]:587: 334 VXNlcm5hbWU6
  xsasl_cyrus_client_next: decoded challenge: Username:
  xsasl_cyrus_client_get_user: хххххххххх
  xsasl_cyrus_client_get_passwd: хххххххххх


А в Сизифе это почему-то выглядит вот так:

starting new SASL client
name_mask: noanonymous
smtp_sasl_authenticate: smtp.gmail.com[74.125.205.108]:587: SASL 
mechanisms LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
warning: SASL authentication failure: No worthy mechs found
6369D580D3E: SASL authentication failed; cannot authenticate to server 
smtp.gmail.com[74.125.205.108]: no mechanism available


То есть сервер сообщает механизмы, которые он умеет, а клиент их не 
понимает. В интернете везде пишут что-то вроде 
http://priority-zero.blogspot.ru/2013/03/postfix-with-gmail.html " 
libplain.so or liblogin.so modules are not installed in the 
/usr/lib/sasl2". Но такие файлы там есть, точнее они есть в 
/usr/lib64/sasl2-3/




             reply	other threads:[~2016-04-12 22:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-12 22:05 Alexei V. Mezin [this message]
2016-04-12 22:51 ` Alexei V. Mezin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='nejrg3$opv$1@ger.gmane.org' \
    --to=alexei.mezin@gmail.com \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git