V
V
VA2016-10-04 12:11:52
linux
VA, 2016-10-04 12:11:52

Errors 451 4.3.5 Server configuration problem (postfix+dovecot+postgrey)?

I own Posftix + Dovecot + Postgrey I check
mail via telnet

Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 carcam.ru ESMTP
helo darling
250 carcam.ru
mail from: [email protected]
250 2.1.0 Ok
rcpt to: [email protected]
451 4.3.5 Server configuration problem

in the logs
NOQUEUE: reject: RCPT from localhost.localdomain[127.0.0.1]: 451 4.3.5 Server configuration problem; from=<[email protected]> to=<[email protected]> proto=SMTP helo=<darling>

and with warning
Oct  4 11:56:52 web-site postfix/trivial-rewrite[13612]: warning: do not list domain web-site.ru in BOTH mydestination and virtual_alias_domains
Oct  4 11:57:11 web-site postfix/smtpd[13604]: warning: connect to 127.0.0.1:10023: Connection refused
Oct  4 11:57:11 web-site postfix/smtpd[13604]: warning: problem talking to server 127.0.0.1:10023: Connection refused

Configs are
postconf -n
spoiler
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = no
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debug_peer_list = 127.0.0.1
default_privs = nobody
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
local_recipient_maps = proxy:unix:passwd.byname $alias_maps
mail_owner = postfix
mailbox_size_limit = 0
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/local/man
message_size_limit = 71200000
mydestination = $myhostname,localhost.$myhostname,localhost
mydomain = localdomain
myhostname = web-site.ru
mynetworks = 123.45.67.89/32
myorigin = web-site.ru
newaliases_path = /usr/bin/newaliases.postfix
non_smtpd_milters = inet:127.0.0.1:8891
queue_directory = /var/spool/postfix
relay_domains =
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_generic_maps = hash:/etc/mail/generic
smtp_tls_CAfile = etc/postfix/postfix.pem
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP
smtpd_client_restrictions = permit_sasl_authenticated, check_client_access hash:/etc/mail/access
smtpd_milters = inet:127.0.0.1:8891
smtpd_recipient_restrictions = permit_sasl_authenticated, check_sender_access hash:/etc/mail/access, check_client_access hash:/etc/mail/access, check_recipient_access hash:/etc/mail/access, permit_mynetworks, reject_unauth_destination, reject_unlisted_recipient, reject_unverified_recipient, reject_unknown_client, check_policy_service inet:127.0.0.1:10023
smtpd_reject_unlisted_sender = yes
smtpd_sender_restrictions = permit_sasl_authenticated, check_sender_access hash:/etc/mail/access
smtpd_tls_CAfile = etc/postfix/postfix.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = etc/postfix/postfix.pem
smtpd_tls_key_file = etc/postfix/postfix.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_use_tls = yes
soft_bounce = no
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_domains = /etc/mail/local-host-names
virtual_alias_maps = hash:/etc/mail/virtusertable

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VA, 2016-10-04
@Ozymandis

Understood in principle. instead of: check_policy_service inet:127.0.0.1:10023
put check_policy_service unix:postgrey/socket
In /etc/hosts:
127.0.0.1 localhost mail.web-site.ru web-stie.ru etc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question