LINUX.ORG.RU

exim4 + gmail в качестве smarthost


0

0

собственно: debian/Lenny, exim4.
пытаюсь настроить отправку почты через smarthost
update-exim4.conf.conf:
dc_eximconfig_configtype='smarthost'
dc_other_hostnames='мойхост.dyndns.org'
dc_local_interfaces='127.0.0.1'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='smtp.gmail.com::587'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='false'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'

passwd.client:
smtp.gmail.com:акк@gmail.com:пароль
gmail-smtp-msa.l.google.com:акк@gmail.com:пароль

отправляю mutt'ом, с любого почтового сервера приходит отбой типа:
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

кто-то@mail.ru
SMTP error from remote mail server after RCPT TO:<кто-то@mail.ru>:
host mxs.mail.ru [94.100.176.20]: 550 Access from ip address 89.218.241.204
+blocked. Visit http://win.mail.ru/cgi-bin/support_bl?ip=89.218.241.204

то есть relay через gmail не работает?
кто может, подскажите куда смотреть, проблема только в отправке, принимается почта на ура.
спасибо

★★★★

Ответ на: Re: exim4 + gmail в качестве smarthost от tux2002

Re: exim4 + gmail в качестве smarthost


primary_hostname = мойхост.dyndns.org
domainlist local_domains = @
domainlist relay_to_domains =
hostlist relay_from_hosts = 127.0.0.1
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data
never_users = root
ignore_bounce_errors_after = 2d
timeout_frozen_after = 7d
begin acl
acl_check_rcpt:
accept hosts = :
deny message = Restricted characters in address
domains = +local_domains
local_parts = ^[.] : ^.*[@%!/|]
deny message = Restricted characters in address
domains = !+local_domains
local_parts = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
accept local_parts = postmaster
domains = +local_domains
require verify = sender
accept hosts = +relay_from_hosts
control = submission
accept authenticated = *
control = submission
require message = relay not permitted
domains = +local_domains : +relay_to_domains
require verify = recipient
accept
acl_check_data:
accept
begin routers
dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more
system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/aliases}}
file_transport = address_file
pipe_transport = address_pipe
userforward:
driver = redirect
check_local_user
file = $home/.forward
no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply

localuser:
driver = accept
check_local_user
transport = local_delivery
cannot_route_message = Unknown user
begin transports
remote_smtp:
driver = smtp
local_delivery:
driver = appendfile
file = /var/mail/$local_part
delivery_date_add
envelope_to_add
return_path_add
address_pipe:
driver = pipe
return_output
address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
address_reply:
driver = autoreply
begin retry
# Address or Domain Error Retries
# ----------------- ----- -------
* * F,2h,15m; G,16h,1h,1.5; F,4d,6h
begin rewrite
begin authenticators

S_Paul ★★★★ ()
Ответ на: Re: exim4 + gmail в качестве smarthost от S_Paul

Re: exim4 + gmail в качестве smarthost

begin routers dnslookup: driver = dnslookup domains = ! +local_domains route_list = * smtp.gmail.com byname transport = remote_smtp ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 no_more

Если сервер gmail требует аутентификацию надо добавить begin authenticators

clientpass_plain: driver = plaintext public_name = PLAIN client_send = ^user^password

clientpass_login: driver = plaintext public_name = LOGIN client_send = : user : password

PS Если я правильно понял...

tux2002 ()
Ответ на: Re: exim4 + gmail в качестве smarthost от S_Paul

Re: exim4 + gmail в качестве smarthost

begin routers
dnslookup:
driver = dnslookup
domains = ! +local_domains
route_list = * smtp.gmail.com byname
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more 

Если сервер gmail требует аутентификацию
надо добавить
begin authenticators

clientpass_plain:
        driver = plaintext
        public_name = PLAIN
        client_send = ^user^password

clientpass_login:
        driver = plaintext
        public_name = LOGIN
        client_send = : user : password


PS Если я правильно понял...

Сорри

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