The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  вход/выход  слежка  RSS
"Странности с отправкой почты через exim4"
Вариант для распечатки  
Пред. тема | След. тема 
Форумы Информационная безопасность (Public)
Изначальное сообщение [ Отслеживать ]

"Странности с отправкой почты через exim4"  
Сообщение от lytdybr email(ok) on 08-Апр-08, 15:25 
Возникает проблема с отправкой почты на mail.ru и rambler.ru. При том, что в логах мой сервер пишет, что письмо принято удаленным сервером для доставки, однако оно не доходит.
Вот лог:
2008-04-03 14:11:12 1JhMPX-0005DY-Q9 <= fedot@firma.ru H=(art) [80.250.163.1] I=[
80.250.163.5]:25 P=smtp S=880097 id=001201c89573$1cc59e70$690da8c0@art from <fed
ot@firma.ru> for polu4atel@rambler.ru
2008-04-03 14:11:19 1JhMPX-0005DY-Q9 => polu4atel@rambler.ru R=dnslookup T=remot
e_smtp H=imx1.rambler.ru [81.19.66.234] C="250 Message accepted for delivery"
Конфиг эксима:
exim_path                       = /usr/sbin/exim4
exim_user                       = Debian-exim
exim_group                      = adm
never_users                     = root

host_lookup                     = *
primary_hostname                = mail.firma.ru
domainlist local_domains        = ${lookup mysql{SELECT domain FROM domains WHERE domain = '${domain}' AND (type = 'local' OR type = 'virtual')}}
domainlist relay_to_domains     = ${lookup mysql{SELECT domain FROM domains WHERE domain = '${domain}' AND type = 'relay'}}
hostlist relay_from_hosts       = localhost : 127.0.0.1/8 : 192.168.13.0/24 : 80.250.163.0/26 : 80.250.162.0/26

spool_directory                 = /var/spool/exim4
split_spool_directory           = true

hide mysql_servers              = (/var/run/mysqld/mysqld.sock)/exim/exim/fc128c

acl_smtp_rcpt                   = acl_check_rcpt
acl_smtp_data                   = acl_check_data

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

qualify_domain                  = firma.ru
qualify_recipient               = firma.ru

allow_domain_literals           = true
rfc1413_hosts                   = :
rfc1413_query_timeout           = 0s

ignore_bounce_errors_after      = 30m
timeout_frozen_after            = 3d
auto_thaw                       = 1h
freeze_tell                     = root@firma.ru

helo_accept_junk_hosts          = 192.168.13.0/24 : 80.250.162.0/26 : 80.250.163.0/26

smtp_banner                     = "$primary_hostname ESMTP EXIM $version_number"
smtp_accept_max                 = 40
smtp_accept_max_nonmail         = 20
smtp_accept_max_per_host        = 10
smtp_accept_max_per_connection  = 20
smtp_enforce_sync               = true

remote_max_parallel             = 5
remote_sort_domains             = *.firma.ru : *.ru : *

message_size_limit              = 10M
return_size_limit               = 70k

helo_allow_chars                = _

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         = "Restricted symbols in address"
                domains         = +local_domains
                local_parts     = ^[.] : ^.*[@%!/|]

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

        deny    message         = "HELO/EHLO must be SMTP RFC-compliant"
                condition       = ${if eq{$sender_helo_name}{}{yes}{no}}

        deny    message         = "Sender IP address in HELO not allowed"
                hosts           = !127.0.0.1/8 : !localhost : !192.168.13.0/24 : !80.250.163.0/26 : *
                condition       = ${if eq{$sender_helo_name}{$sender_host_address}{true}{false}}

        deny    message         = "This server's IP address in HELO not allowed"
                hosts           = !127.0.0.1 : !localhost : !192.168.13.0/24 : !80.250.163.0/26 : *
                condition       = ${if eq{$sender_helo_name}{interface_address}{yes}{no}}

        deny    message         = "Digits only in HELO not allowed"
                hosts           = !127.0.0.1 : !localhost : !192.168.13.0/24 : !80.250.163.0/26 : *
                condition       = ${if match{$sender_helo_name}{\N^\d+$\N}{yes}{no}}

        deny    message         = "Your hostname is not allowed"
                hosts           = !127.0.0.1 : !localhost : !192.168.13.0/24 : !80.250.163.0/26 : *
                condition       = ${if match{sender_host_name}{adsl|dialup|pool|peer|dhcp}{yes}{no}}

        require verify          = sender

        accept  authenticated   = *

        deny    message         = "Your host is blacklisted: $dnslist_domain in $dnslist_text"
                dnslists        = opm.blitzed.org : \
                                  proxies.blackhole.easynet.nl : \
                                  cbl.abuseat.org : \
                                  bl.spamcop.net : \
                                  dynablock.njabl.org

        accept  local_parts     = postmaster : abuse
                domains         = *
                verify          = sender

        accept  message         = "Unknown recipient"
                domains         = +local_domains
                endpass
                verify          = recipient

        accept  message         = "Unknown route to host"
                domains         = +relay_to_domains
                endpass
                verify          = recipient

        accept  hosts           = 127.0.0.1/8 : localhost : 192.168.13.0/24 : 80.250.163.0/26 : 80.250.162.0/26

        deny    message         = "This is not open relay"

acl_check_data:
        warn    spam            = Debian-exim:true
                hosts           = !127.0.0.1 : !localhost : !192.168.13.0/24 : !80.250.163.0/26 : !80.250.162.0/26 : *
                verify          = sender

        accept

begin routers
        dnslookup:
                driver          = dnslookup
                domains         = !+local_domains
                transport       = remote_smtp
                ignore_target_hosts = 0.0.0.0 : 127.0.0.1/8
                no_more

        system_aliases:
                driver          = redirect
                allow_fail
                allow_defer
                domains         = +local_domains
                data            = ${lookup mysql{SELECT recipients FROM aliases WHERE local_part = '${local_part}' AND domain = '${domain}'}}

        userforward:
                driver          = redirect
                allow_fail
                allow_defer
                data            = ${lookup mysql{SELECT recipients FROM userforward WHERE local_part = '${local_part}' AND domain = '${domain}'}}

        mysqluser:
                driver          = accept
                domains         = ${lookup mysql{SELECT domain FROM domains WHERE domain = '${domain}'}}
                local_parts     = ${lookup mysql{SELECT login FROM accounts WHERE login = '${local_part}' AND domain = '${domain}'}}
                transport       = mysql_delivery

        spamd_router:
                driver          = accept
                condition       = ${if and {{!def:h_X-Spam-Flag:}{!eq {$received_protocol}{spam_scanned}}}{1}{0}}
                transport       = spam_delivery
                no_verify

begin transports
        remote_smtp:
                driver          = smtp

        mysql_delivery:
                driver          = appendfile
                check_string    = ""
                directory       = ${lookup mysql{SELECT home FROM accounts WHERE login = '${local_part}' AND domain = '${domain}'}}
                quota           = ${lookup mysql{SELECT quota FROM accounts WHERE login = '${local_part}' AND domain = '${domain}'}{${value}M}}
                user            = mail
                group           = mail
                maildir_tag     = ,S = $message_size
                message_prefix  = ""
                message_suffix  = ""
                mode            = 0640
                directory_mode  = 770
                quota_size_regex = S = (\d+)$
                quota_warn_threshold = 75%
                quota_warn_message =    "\
                                        To: $local_part@$domain\n\
                                        From: postmaster@$domain\n\
                                        Subject: Your maildir is going full\n\
                                        This message is automaticaly gnerated by your mail server.\n\
                                        This means, that your mailbox is 80% full. If you would \n\
                                        override this limit new mail would not be delivered to you!\n\n\
                                        Please, clean your mailbox."
                create_directory
                delivery_date_add
                return_path_add
                envelope_to_add
                maildir_format

        spam_delivery:
                driver          = pipe
                batch_max       = 100
                command         = /usr/sbin/exim4 -oMr spam-scanned -bS
                transport_filter= /usr/bin/spamc
                use_bsmtp       = true
                home_directory  = "/tmp"
                current_directory = "/tmp"
                user            = Debian-exim
                group           = adm
                log_output      = true
                return_fail_output = true
                return_path_add = false
                message_suffix  = ""

        address_file:
                driver          = appendfile
                delivery_date_add
                envelope_to_add
                return_path_add

        address_pipe:
                driver          = pipe
                return_fail_output

        address_reply:
                driver          = autoreply

begin retry
        *               quota
        *               *               F,1h,15m
        *.hinet.net     *               F,30m,10m
        yahoo.com.tw    *               F,1h,15m
        mail.ru         *               F,48h,1m
        inbox.ru        *               F,48h,1m
        bk.ru           *               F,48h,1m

begin rewrite


begin authenticators
        cram_md5_auth:
                driver          = cram_md5
                public_name     = CRAM-MD5
                server_secret   = ${lookup mysql{SELECT decrypt FROM accounts WHERE login = '${quote_mysql:${local_part:$1}}' AND domain = '${quote_mysql:${d
omain:$1}}' AND status = '1'}{$value}fail}
                server_set_id   = $1

        auth_login:
                driver          = plaintext
                public_name     = LOGIN
                server_condition= ${lookup mysql{SELECT login FROM accounts WHERE login = '${quote_mysql:${local_part:$1}}' AND domain = '${quote_mysql:${dom
ain:$1}}' AND decrypt = '${quote_mysql:$2}' AND status = '1'}{yes}{no}}
                server_prompts  = Username:: : Password::
                server_set_id   = $1

Высказать мнение | Ответить | Правка | Cообщить модератору

 Оглавление

Сообщения по теме [Сортировка по времени | RSS]


1. "Странности с отправкой почты через exim4"  
Сообщение от Golub Mikhail (ok) on 08-Апр-08, 15:55 
>Возникает проблема с отправкой почты на mail.ru и rambler.ru. При том, что
>в логах мой сервер пишет, что письмо принято удаленным сервером для
>доставки, однако оно не доходит.
>Вот лог:
>2008-04-03 14:11:12 1JhMPX-0005DY-Q9 <= fedot@firma.ru H=(art) [80.250.163.1] I=[
>80.250.163.5]:25 P=smtp S=880097 id=001201c89573$1cc59e70$690da8c0@art from <fed
>ot@firma.ru> for polu4atel@rambler.ru
>2008-04-03 14:11:19 1JhMPX-0005DY-Q9 => polu4atel@rambler.ru R=dnslookup T=remot
>e_smtp H=imx1.rambler.ru [81.19.66.234] C="250 Message accepted for delivery"

Если:
2008-04-03 14:11:19 1JhMPX-0005DY-Q9 => polu4atel@rambler.ru R=dnslookup T=remot
e_smtp H=imx1.rambler.ru [81.19.66.234] C="250 Message accepted for delivery"

И письмо не получено - надо разбираться на стороне получателя.
Если забирают по pop3 - может сам почтовый клиент рубит.
Если через web смотрят - может в спаме.
Если ни первое ни второе (может еще что третье) - то письмо на postmaster@rambler.ru, привести логи и спросить, доставлено ли письмо в ящик пользователя.

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

2. "Странности с отправкой почты через exim4"  
Сообщение от lytdybr email(ok) on 10-Апр-08, 15:21 
Отправил письмо - внесли в вайт лист.
Как выяснилось, ихний сервер отвечает 4.7.1 Try again later, в то время как мой - accepted for delivery. Отчего так может быть?
Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

Архив | Удалить

Индекс форумов | Темы | Пред. тема | След. тема
Оцените тред (1=ужас, 5=супер)? [ 1 | 2 | 3 | 4 | 5 ] [Рекомендовать для помещения в FAQ]




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру