LINUX.ORG.RU

Сообщения whax

 

Postfix relay access denied

Форум — Admin

Добрый день, помоги, бьюсь уже 4 дня, в наследство достался CentOS, на нем надо донастроить postfix+dovecot+mysql

Все настроено, письма ходят только не уходят во внешнию почту. конфиг ниже.

Если дописываю в mynetworks = сеть типа 192.168.1.0/24 то соединения вообще нет.

soft_bounce = no
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
default_privs = nobody
myhostname = mx1.mydomen.ru
# mydomain = my.domen.ru
# myorigin = $mydomain
inet_interfaces = all
local_recipient_maps = $virtual_mailbox_maps,
$virtual_alias_maps
mynetworks = 127.0.0.0/8
alias_maps = hash:/etc/aliases
# mail_spool_directory = /var/spool/mail
debug_peer_list = 127.0.0.1
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.6.6/samples
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
config_directory = /etc/postfix

invalid_hostname_reject_code = 550
non_fqdn_reject_code = 550
unknown_local_recipient_reject_code = 550
unknown_address_reject_code = 550
unknown_client_reject_code = 550
unknown_hostname_reject_code = 550
unverified_recipient_reject_code = 550
unverified_sender_reject_code = 550

############## BEGIN VIRTUAL HOSTS SETTINGS ############## # virtual_mailbox_domains =
mysql:$config_directory/sql/vdomains.cf
virtual_mailbox_base = /var/vmail
virtual_mailbox_maps = mysql:$config_directory/sql/vmailbox.cf
virtual_alias_maps = mysql:$config_directory/sql/valias.cf
virtual_minimum_uid = 1000
virtual_uid_maps = static:1000
virtual_gid_maps = static:12
virtual_transport = dovecot

############## END VIRTUAL HOSTS SETTINGS ##############

############## BEGIN DOVECOT AUTENTIFICATION SECTION ############## # dovecot_destination_recipient_limit = 1
smtpd_sasl_auth_enable = yes
smtpd_sasl_exceptions_networks = $mynetworks
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth

smtpd_tls_loglevel = 0
smtpd_tls_received_header = yes
smtpd_tls_key_file = /etc/postfix/ssl/mx.soa.key
smtpd_tls_cert_file = /etc/postfix/ssl/soa.pem
smtpd_tls_CAfile = /etc/postfix/ssl/rootCA.pem
smtp_tls_CAfile = /etc/postfix/ssl/rootCA.pem
smtp_use_tls = yes
smtpd_use_tls = yes
smtpd_tls_auth_only = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

disable_vrfy_command = yes

smtpd_delay_reject = yes

smtpd_helo_required = yes

smtpd_etrn_restrictions =
permit_mynetworks,
reject

 

whax
()

RSS подписка на новые темы