Postfix 451 4.3.5 Server configuration problem

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

Модератор: xM

Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
loner
рядовой
Сообщения: 25
Зарегистрирован: 2007-05-03 4:54:55

Postfix 451 4.3.5 Server configuration problem

Непрочитанное сообщение loner » 2009-01-20 12:58:14

Возникла следующая проблема: postfix не принимает почту. В логах отправляющего сервера

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

postfix/smtp[56770]: 229F226D344: to=<user@domain>, relay=mail.domain[ip]:25, delay=18, delays=0.18/0.01/0.12/17, dsn=4.3.5, status=deferred (host domain[ip] said: 451 4.3.5 Server configuration problem (in reply to RCPT TO command))
Конфиг принимающего сервера
main.cf

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

queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
mail_owner = postfix
default_privs = nobody
myhostname = host.domain
mydomain = domain
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain
unknown_local_recipient_reject_code = 550
mynetworks_style = host
mynetworks = 192.168.0.0/24, 127.0.0.0/8, 192.168.1.0/24
transport_maps = mysql:/usr/local/etc/postfix/sql/transport.cf
virtual_mailbox_base = /var/mail/virtual
virtual_mailbox_maps = mysql:/usr/local/etc/postfix/sql/users.cf
virtual_alias_maps = mysql:/usr/local/etc/postfix/sql/aliases.cf
virtual_uid_maps = mysql:/usr/local/etc/postfix/sql/uids.cf
virtual_gid_maps = mysql:/usr/local/etc/postfix/sql/gids.cf
proxy_read_maps = $virtual_alias_maps $virtual_uid_maps $virtual_gid_maps  $virtual_mailbox_maps  $transport_maps $relay_recipient_maps
virtual_mailbox_limit = 2048000000
message_size_limit = 20480000
local_recipient_maps = $virtual_mailbox_maps
relay_domains = $transport_maps
disable_dns_lookups = no
smtp_always_send_ehlo = yes
smtpd_sasl_auth_enable = no
smtp_sasl_security_options = noanonymous
enable_sasl_authentication = no
smtpd_client_restrictions = permit_mynetworks,
        reject_unknown_client_hostname,
        regexp:/usr/local/etc/postfix/dsl_stoplist.txt,
        check_client_access cidr:/usr/local/etc/postfix/chinese-spammer-networks,
        check_client_access mysql:/usr/local/etc/postfix/sql/helo_access.cf
maps_rbl_reject_code = 550
smtpd_recipient_restrictions = check_recipient_access mysql:/usr/local/etc/postfix/sql/access.cf,
        reject_invalid_hostname,
        reject_non_fqdn_sender,
        reject_non_fqdn_recipient,
        reject_unknown_sender_domain,
        reject_unknown_recipient_domain,
        reject_unauth_pipelining,
        permit_mynetworks,
        reject_unknown_client_hostname,
        reject_unauth_destination,
        check_client_access mysql:/usr/local/etc/postfix/sql/client_access.cf,
        reject_rbl_client bl.spamcop.net,
        reject_rbl_client spamsrc.rbl.ukr.net,
        reject_rbl_client dyna.rbl.ukr.net,
        reject_rbl_client dnsbl.njabl.org,
        reject_rbl_client list.dsbl.org,
        reject_rbl_client sbl.spamhaus.org,
        reject_rbl_client dul.ru,
        reject_rbl_client cbl.abuseat.org,
        reject_rbl_client dsn.rfc-ignorant.org,
        reject_rbl_client dialups.mail-abuse.org,
        reject_rbl_client blackholes.mail-abuse.org,
        reject_rbl_client combined.njabl.org,
        reject_rbl_client dynablock.njabl.org,
        reject_rbl_client dul.dnsbl.sorbs.net,
        permit
disable_vrfy_command = yes
strict_mime_encoding_domain = yes
strict_rfc821_envelopes = yes
smtpd_helo_required = yes
smtpd_helo_restrictions =
        permit_mynetworks,
        reject_unknown_client_hostname,
        reject_invalid_hostname,
        reject_non_fqdn_hostname,
        reject_unknown_helo_hostname,
        regexp:/usr/local/etc/postfix/dsl_stoplist.txt,
        check_helo_access mysql:/usr/local/etc/postfix/sql/helo_access.cf
smtpd_sender_restrictions = reject_unknown_sender_domain, check_sender_access mysql:/usr/local/etc/postfix/sql/sender_access.cf,  reject_unverified_sender, permit_mynetworks
address_verify_map = btree:/var/mail/verify
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtp_use_tls = no
smtpd_use_tls = no
smtpd_tls_auth_only = no
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /usr/local/etc/postfix/ssl/post.pem
smtpd_tls_cert_file = $smtpd_tls_key_file
smtpd_tls_CAfile = $smtpd_tls_key_file
smtpd_tls_loglevel = 1
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
hopcount_limit = 20
disable_vrfy_command = yes
in_flow_delay = 1s
mail_spool_directory = /var/spool/postfix
header_checks = regexp:/usr/local/etc/postfix/header_checks
header_checks = pcre:/usr/local/etc/postfix/header_checks
smtpd_banner = $myhostname ESMTP service ready
debug_peer_level = 3
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/local/sbin/sendmail
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
readme_directory = no
html_directory = no
notify_classes =
bounce_notice_recipient = badmail@domain
smtpd_data_restrictions = reject_unauth_pipelining
relay_recipient_maps = mysql:/usr/local/etc/postfix/sql/relay_user_maps.cf
sender_access_cf = check_sender_access mysql:/usr/local/etc/postfix/sql/sender_access.cf,reject_unknown_sender_domain,reject_unverified_sender,reject
sender_bcc_maps = mysql:/usr/local/etc/postfix/sql/sender_bcc_maps.cf
master.cf

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

192.168.0.1:25      inet  n       -       n       -       -       smtpd  -o content_filter=smtp-clamsmtp:[localhost]:10026
<ip>:25           inet  n       -       n       -       -        smtpd  -o content_filter=smtp-clamsmtp:[localhost]:10026
pickup    fifo  n       -       n       60      1       pickup
    -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       2       proxymap
smtp      unix  -       -       n       -       -       smtp
relay     unix  -       -       n       -       -       smtp
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}

old-cyrus unix  -       n       n       -       -       pipe
  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
cyrus     unix  -       n       n       -       -       pipe
  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
anvil     unix  -       -       n       -       1       anvil
scache    unix  -       -       n       -       1       scache
discard   unix  -       -       n       -       -       discard
smtp-amavis unix -  - n - 2  smtp
  -o smtp_data_done_timeout=1200
  -o smtp_send_xforward_command=yes
  -o disable_dns_lookups=yes
  -o max_use=20
smtp-clamsmtp unix -  - n - 2  smtp
  -o smtp_data_done_timeout=1200
  -o smtp_send_xforward_command=yes
  -o disable_dns_lookups=yes
  -o max_use=20
127.0.0.1:10025 inet n  - n - -  smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_delay_reject=no
    -o smtpd_client_restrictions=permit_mynetworks,reject
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o smtpd_data_restrictions=reject_unauth_pipelining
    -o smtpd_end_of_data_restrictions=
    -o mynetworks=127.0.0.0/8
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
                -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks
192.168.0.1:10025 inet n  - n - -  smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_delay_reject=no
    -o smtpd_client_restrictions=permit_mynetworks,reject
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o smtpd_data_restrictions=reject_unauth_pipelining
    -o smtpd_end_of_data_restrictions=
    -o mynetworks=192.168.1.1,127.0.0.1,192.168.0.1
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
                -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks
127.0.0.1:25 inet n  - n - -  smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_delay_reject=no
    -o smtpd_client_restrictions=permit_mynetworks,reject
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o smtpd_data_restrictions=reject_unauth_pipelining
    -o smtpd_end_of_data_restrictions=
    -o mynetworks=192.168.1.1,127.0.0.1,192.168.0.1
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
                -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
/usr/local/etc/clamsmtpd.conf

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

OutAddress: 10025
Listen: 127.0.0.1:10026
Bounce: off
User: clamav

Хостинговая компания 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/

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

Re: Postfix 451 4.3.5 Server configuration problem

Непрочитанное сообщение Milker » 2009-02-06 15:01:54

Таже ошибка. Появилась когда обновил ПО. Использую postgrey. После некоторого интуичения попробовал перезапустить postgrey. Выдала ошибку в 17 строке файла /usr/local/sbin/postgrey. Есть подозрение что после обновления perl постгрей перестал запускаться. Продолжаю копаться

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

Re: Postfix 451 4.3.5 Server configuration problem

Непрочитанное сообщение moury » 2009-02-06 16:18:55

Посмотрите в логах предыдущие две строки - в них проблема и описана .