Exim не шлет почту во вне через мэйл клиента

EXIM, sendmail, postfix, Dovecot и прочие. Решение проблем связанных с работой электронной почты

Модератор: xM

Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Andrew2009
проходил мимо

Exim не шлет почту во вне через мэйл клиента

Непрочитанное сообщение Andrew2009 » 2008-12-19 2:18:37

Доброго времени суток!
подскажите пожалуйста, делал конфиг Exim как написано http://www.lissyara.su/?id=1173&commented=1
столкнулся с проблемой - Exim не пересылает письмо, которое я отправляю со своего почтового ящика через почтовый клиент(бат, оутлук), но если отправляю допустим на мэйл ру письмо с веб почты, с этого компа - все нормально
вот что в логах:
Dec 19 01:49:07 1888 exim[18428]: Delay 20s for ppp91-77-116-128.pppoe.mtu-net.ru [91.77.116.128] with HELO=192.168.1.2. Mail from my_user@local.ru to my_user@mail.ru.
Dec 19 01:49:31 1888 exim[18428]: DNS list lookup defer (probably timeout) for 128.116.77.91.opm.blitzed.org: assumed not in list
Dec 19 01:49:52 1888 exim[18428]: DNS list lookup defer (probably timeout) for 128.116.77.91.dynablock.njabl.org: assumed not in list
Dec 19 01:49:52 1888 exim[18428]: H=ppp91-77-116-128.pppoe.mtu-net.ru (192.168.1.2) [91.77.116.128] I=[79.174.64.95]:25 F=<my_user@local.ru> rejected RCPT <my_user@mail.ru>: "Homo hominus lupus est"
Dec 19 01:49:52 1888 exim[18428]: H=ppp91-77-116-128.pppoe.mtu-net.ru (192.168.1.2) [91.77.116.128] I=[79.174.64.95]:25 F=<my_user@local.ru> rejected RCPT <apolovinkin@mail.ru>: "Homo hominus lupus est"

но при этом вот лог отправки из под squirrelmail:

Dec 19 02:06:36 1888 exim[1329]: SMTP protocol error in "AUTH PLAIN" H=(post.local.ru) [127.0.0.1] I=[127.0.0.1]:25 AUTH command used when not advertised
Dec 19 02:06:36 1888 exim[1329]: Delay 20s for localhost [127.0.0.1] with HELO=post.local.ru. Mail from my_user@local.ru to my_user@mail.ru.
Dec 19 02:07:02 1888 exim[1329]: DNS list lookup defer (probably timeout) for 1.0.0.127.opm.blitzed.org: assumed not in list
Dec 19 02:07:32 1888 exim[1329]: DNS list lookup defer (probably timeout) for 1.0.0.127.dynablock.njabl.org: assumed not in list
Dec 19 02:07:40 1888 exim[1329]: 1LDRxs-0000LR-NT <= my_user@local.ru H=localhost (post.local.ru) [127.0.0.1] I=[127.0.0.1]:25 P=esmtp S=727 id=dbe8accd14b86686d398221ddbcf3ef8.squirrel@post.local.ru from < my_user@local.ru> for my_user@mail.ru
Dec 19 02:07:40 1888 dovecot: imap-login: Login: user=< my_user@local.ru>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Dec 19 02:07:41 1888 dovecot: IMAP( my_user@local.ru): Disconnected: Logged out bytes=615/172
Dec 19 02:07:41 1888 exim[1713]: 1LDRxs-0000LR-NT => my_user@mail.ru R=dnslookup T=remote_smtp H=mxs.mail.ru [94.100.176.20] C="250 OK id=1LDRy1-0003kn-00"
Dec 19 02:07:41 1888 exim[1713]: 1LDRxs-0000LR-NT Completed
Dec 19 02:07:43 1888 dovecot: imap-login: Login: user=< my_user@local.ru>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Dec 19 02:07:43 1888 dovecot: IMAP( my_user@local.ru): Disconnected: Logged out bytes=311/5127

уже все излазил - не могу понять почему не хочет отправляться через почтовый клиент

кроме того не могу понять что за
Dec 19 02:07:02 1888 exim[1329]: DNS list lookup defer (probably timeout) for 1.0.0.127.opm.blitzed.org: assumed not in list
Dec 19 02:07:32 1888 exim[1329]: DNS list lookup defer (probably timeout) for 1.0.0.127.dynablock.njabl.org: assumed not in list

возможно из за этого при отправке почты идет таймаут около 1-1,5 мин.

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

Аватара пользователя
Alex Keda
стреляли...
Сообщения: 35466
Зарегистрирован: 2004-10-18 14:25:19
Откуда: Made in USSR
Контактная информация:

Re: Exim не шлет почту во вне через мэйл клиента

Непрочитанное сообщение Alex Keda » 2008-12-19 9:04:50

страничку проркутите доверху, прочтите текст на красном фоне.
Убей их всех! Бог потом рассортирует...

Andrew2009
проходил мимо

Re: Exim не шлет почту во вне через мэйл клиента

Непрочитанное сообщение Andrew2009 » 2008-12-19 10:19:16

исправляю
вот что в логах:

Код: Выделить всё

Dec 19 01:49:07 1888 exim[18428]: Delay 20s for ppp91-77-116-128.pppoe.mtu-net.ru [91.77.116.128] with HELO=192.168.1.2. Mail from my_user@local.ru to my_user@mail.ru.
Dec 19 01:49:31 1888 exim[18428]: DNS list lookup defer (probably timeout) for 128.116.77.91.opm.blitzed.org: assumed not in list
Dec 19 01:49:52 1888 exim[18428]: DNS list lookup defer (probably timeout) for 128.116.77.91.dynablock.njabl.org: assumed not in list
Dec 19 01:49:52 1888 exim[18428]: H=ppp91-77-116-128.pppoe.mtu-net.ru (192.168.1.2) [91.77.116.128] I=[79.174.64.95]:25 F=<my_user@local.ru> rejected RCPT <my_user@mail.ru>: "Homo hominus lupus est"
Dec 19 01:49:52 1888 exim[18428]: H=ppp91-77-116-128.pppoe.mtu-net.ru (192.168.1.2) [91.77.116.128] I=[79.174.64.95]:25 F=<my_user@local.ru> rejected RCPT <apolovinkin@mail.ru>: "Homo hominus lupus est"
но при этом вот лог отправки из под squirrelmail:

Код: Выделить всё

Dec 19 02:06:36 1888 exim[1329]: SMTP protocol error in "AUTH PLAIN" H=(post.local.ru) [127.0.0.1] I=[127.0.0.1]:25 AUTH command used when not advertised
Dec 19 02:06:36 1888 exim[1329]: Delay 20s for localhost [127.0.0.1] with HELO=post.local.ru. Mail from my_user@local.ru to my_user@mail.ru.
Dec 19 02:07:02 1888 exim[1329]: DNS list lookup defer (probably timeout) for 1.0.0.127.opm.blitzed.org: assumed not in list
Dec 19 02:07:32 1888 exim[1329]: DNS list lookup defer (probably timeout) for 1.0.0.127.dynablock.njabl.org: assumed not in list
Dec 19 02:07:40 1888 exim[1329]: 1LDRxs-0000LR-NT <= my_user@local.ru H=localhost (post.local.ru) [127.0.0.1] I=[127.0.0.1]:25 P=esmtp S=727 id=dbe8accd14b86686d398221ddbcf3ef8.squirrel@post.local.ru from < my_user@local.ru> for my_user@mail.ru
Dec 19 02:07:40 1888 dovecot: imap-login: Login: user=< my_user@local.ru>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Dec 19 02:07:41 1888 dovecot: IMAP( my_user@local.ru): Disconnected: Logged out bytes=615/172
Dec 19 02:07:41 1888 exim[1713]: 1LDRxs-0000LR-NT => my_user@mail.ru R=dnslookup T=remote_smtp H=mxs.mail.ru [94.100.176.20] C="250 OK id=1LDRy1-0003kn-00"
Dec 19 02:07:41 1888 exim[1713]: 1LDRxs-0000LR-NT Completed
Dec 19 02:07:43 1888 dovecot: imap-login: Login: user=< my_user@local.ru>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Dec 19 02:07:43 1888 dovecot: IMAP( my_user@local.ru): Disconnected: Logged out bytes=311/5127

Andrew2008
проходил мимо

Re: Exim не шлет почту во вне через мэйл клиента

Непрочитанное сообщение Andrew2008 » 2008-12-19 15:15:23

Вот мой конфиг, кроме того заменил dnslists = relays.ordb.org : dul.dnsbl.sorbs.net : dul.ru : dnsbl.void.ru
теперь говорит Requested action not taken: mailbox unavailable
550 "you in blacklist - relays.ordb.org
ordb.org was shut down on December 18, 2006. Please remove from your
mailserver."
[/code]
если же убираю вообще весь список dnslists - проблема та же

Код: Выделить всё

primary_hostname = my_domain.biz

hide mysql_servers = localhost/exim/exim/111

domainlist local_domains = ${lookup mysql{SELECT `domain` FROM `domain` WHERE `d
omain`='${domain}' AND `active`='1'}}

domainlist relay_to_domains = ${lookup mysql{SELECT `domain` FROM `domain` WHERE
 `domain`='${domain}' AND `active`='1'}}
#domainlist relay_to_domains = pixelar.ru
hostlist   relay_from_hosts = localhost:127.0.0.0/8

acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data

#av_scanner = clamd:/var/run/clamav/clamd
# spamd_address = 127.0.0.1 783

qualify_domain = my_domain.biz
#qualify_recipient =
allow_domain_literals = false

exim_user = mailnull
exim_group = mail

never_users = root

#host_lookup = *

#rfc1413_hosts = *
rfc1413_query_timeout = 1s

sender_unqualified_hosts = +relay_from_hosts
recipient_unqualified_hosts = +relay_from_hosts

ignore_bounce_errors_after = 45m

timeout_frozen_after = 15d

#helo_accept_junk_hosts = 192.168.0.0/16
#auto_thaw = 1h

#
smtp_banner = "$primary_hostname, ESMTP EXIM $version_number"

smtp_accept_max = 50
smtp_accept_max_per_connection = 25
smtp_connect_backlog = 30
smtp_accept_max_per_host = 20
split_spool_directory = true

remote_max_parallel = 15

return_size_limit = 70k

message_size_limit = 32M

helo_allow_chars = _

smtp_enforce_sync = true

log_selector = \
 +all_parents \
    +connection_reject \
    +incoming_interface \
    +lost_incoming_connection \
    +received_sender \
    +received_recipients \
    +smtp_confirmation \
    +smtp_syntax_error \
    +smtp_protocol_error \
    -queue_run

        syslog_timestamp = no

begin acl

acl_check_rcpt:

  accept  hosts =:

deny    message       = "incorrect symbol in address"
 domains       = +local_domains
 local_parts   = ^[.]:^.*[@%!/|]

deny    message       = "incorrect symbol in address"
  domains       = !+local_domains
  local_parts   = ^[./|]:^.*[@%!]:^.*/\\.\\./

accept  local_parts   = postmaster
  domains       = +local_domains
require verify        = sender

  deny    message       = "HELO/EHLO require by SMTP RFC"
condition     = ${if eq{$sender_helo_name}{}{yes}{no}}

 accept  authenticated = *


deny    message       = "Your IP in HELO - access denied!"
    hosts         =  * : !+relay_from_hosts : !my_domein.biz
    condition     = ${if eq{$sender_helo_name} {$sender_host_address}{true}{false}}
deny    condition     = ${if eq{$sender_helo_name} {$interface_address}{yes}{no}
}
   hosts         = !127.0.0.1 : !localhost : *
   message       = "main IP in your HELO! Access denied!"

deny    condition     = ${if match{$sender_helo_name}{\N^\d+$\N}{yes}{no}}
  hosts         = !127.0.0.1 : !localhost : *
  message       = "can not be only number in HELO!"

#deny    condition     = ${if eq{$sender_address}{}{yes}{no}}
#          hosts         = !127.0.0.1 : !localhost : *
#          message       = "  HELO ?!   RFC..."

#  deny    condition     = ${if match{$sender_address}{\N^\s+$\N}{yes}{no}}
#          hosts         = !127.0.0.1 : !localhost : *
#          message       = "  HELO  ( )?!   RFC..."

#  deny    condition     = ${if eq{$sender_address}{}{yes}{no}}
#          hosts         = !127.0.0.1 : !localhost : *
#          message       = "Where sender of this mail?!"
deny    message       = "your hostname is bad (adsl, poll, ppp & etc)."
         condition     = ${if match{$sender_host_name} {adsl|dialup|pool|peer|dh
cp} {yes}{no}}
warn
 set acl_m0 = 20s
#  warn
#        hosts = +relay_from_hosts:213.234.195.224/28:80.253.9.18/32
#        set acl_m0 = 0s
 warn
#     (   )
logwrite = Delay $acl_m0 for $sender_host_name [$sender_host_address] with HELO=
$sender_helo_name. Mail from $sender_address to $local_part@$domain.
   delay = $acl_m0

   accept  domains       = +local_domains
     endpass
   message       = "In my mailserver not stored this user"
     verify        = recipient

 accept  domains       = +relay_to_domains
   endpass
     message       = "main server not know how relay to this address"
   verify        = recipient

   deny    message       = "you in blacklist - $dnslist_domain \n $dnslist_text"
      dnslists      = relays.ordb.org : dul.dnsbl.sorbs.net : dul.ru : dnsbl.void.ru

  accept  hosts         = +relay_from_hosts : +local_domains
  deny    message       = "Homo hominus lupus est"

  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 mysql{SELECT `goto` FROM `alias` WHERE `address`='${quote_my
sql:$local_part@$domain}' OR `address`='${quote_mysql:@$domain}'}}
dovecot_router:
  driver = accept
  condition = ${lookup mysql{SELECT `goto` FROM  `alias` WHERE  `address`='${quo
te_mysql:$local_part@$domain}' OR  `address`='${quote_mysql:@$domain}'}{yes}{no}
}
  transport = dovecot_transport

begin transports

remote_smtp:
  driver = smtp
dovecot_transport:
  driver = appendfile
# command = /usr/libexec/dovecot/deliver -d $local_part@$domain
 user = mailnull
 group = mail
 mode = 0660
 directory=/var/mail/$domain/$local_part
 maildir_format = true
 mode_fail_narrower = false
 envelope_to_add = true
 return_path_add = true

address_pipe:
  driver = pipe
  return_output

address_reply:
  driver = autoreply

begin retry
*                      *           F,2h,15m; G,16h,1h,1.5; F,4d,6h

begin rewrite

begin authenticators

#auth_plain:
#  driver = plaintext
#  public_name = PLAIN
#  server_condition = ${lookup mysql{SELECT `username` FROM `mailbox` WHERE `use
rname` = '${quote_mysql:$auth2}' AND `password` = '${quote_mysql:$auth3}'}{yes}{
no}}
#  server_prompts = :
#  server_set_id = $auth2

#auth_login:
#  driver = plaintext
#  public_name = LOGIN
#  server_condition = ${lookup mysql{SELECT `username` FROM `mailbox` WHERE `use rname` = '${quote_mysql:$auth1}' AND `password` = #'${quote_mysql:$auth2}'}{yes}{no}}