LINUX.ORG.RU
ФорумAdmin

Помогите5 настроить postfix

 , , ,


2

2

При попытки отправить письмо:

Oct 15 04:59:32 server postfix/qmgr[20293]: AC5613CE7A: removed
Oct 15 04:59:48 server postfix/smtpd[20619]: connect from unknown[x.x.x.x]
Oct 15 04:59:48 server postfix/smtpd[20619]: warning: unknown smtpd restriction: "mynetworks"
Oct 15 04:59:48 server postfix/smtpd[20619]: NOQUEUE: reject: RCPT from unknown[x.x.x.x]: 451 4.3.5 Server configuration error; from=<webmaster@ne-vlezay80.tk> to=<webmaster@ne-vlezay80.tk> proto=ESMTP helo=<ne-vlezay80>
Oct 15 04:59:48 server postfix/smtpd[20619]: lost connection after RCPT from unknown[x.x.x.x]
Oct 15 04:59:48 server postfix/cleanup[20623]: 8CE393CE7A: message-id=<20151015045948.8CE393CE7A@mail.ne-vlezay80.tk>
Oct 15 04:59:48 server postfix/qmgr[20293]: 8CE393CE7A: from=<double-bounce@mail.ne-vlezay80.tk>, size=971, nrcpt=1 (queue active)
Oct 15 04:59:48 server postfix/smtpd[20619]: disconnect from unknown[x.x.x.x]
Oct 15 04:59:48 server postfix/local[20624]: 8CE393CE7A: to=<root@mail.ne-vlezay80.tk>, orig_to=<postmaster>, relay=local, delay=0, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to maildir)
Oct 15 04:59:48 server postfix/qmgr[20293]: 8CE393CE7A: removed

Конфиг:

server:~# cat /etc/postfix/main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = mail.ne-vlezay80.tk
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = lan.ne-vlezay80.tk
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 0.0.0.0/0
mailbox_size_limit = 0
recipient_delimiter = +
home_mailbox = ~/Maildir/
inet_protocols = all
mydestination = mail.ne-vlezay80.tk, ne-vlezay80.tk
smtpd_recipient_restrictions = permit_mynetworks permit_inet_interfaces permit_sasl_authenticated check_relay_domains permit_mx_backup
#smtpd_sasl_security_options = 
#smtpd_client_restrictions = permit_mynetworks permit_inet_interfaces
#smtpd_sasl_type = dovecot
#smtpd_sasl_path = private/auth
smtpd_client_restrictions = mynetworks
smtpd_sasl_security_options = 
smtpd_helo_required = yes
server:~# 

в чём ошибка

★★★★★

Oct 15 04:59:48 server postfix/smtpd[20619]: warning: unknown smtpd restriction: «mynetworks»

smtpd_client_restrictions = mynetworks

This! Пиши permit_mynetworks. Хотя если это единственное правило, лучше вообще закомментить smtpd_client_restrictions.

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