D
D
drumoff2018-08-16 11:46:55
postfix
drumoff, 2018-08-16 11:46:55

Postfix not accepting mail?

Good afternoon. I'm still new to this business. There is a server on Centos 7 + LAMP + postfix + dovecot + roundcube.
The server was configured according to manuals from the Internet.
The problem is the following - letters do not come to the “inbox”, or more precisely, everything seems to work as it should, letters from the server leave in any direction, but come partially - by some miracle they end up in the /var/spool/mail/root file of the following form
From [email protected] Thu Aug 16 09:42:14 2018
Return-Path:
X-Original-To: [email protected]
Delivered-To: [email protected]
Received: from mydomain.com (localhost [127.0. 0.1])
by mail.mydomain.com (Postfix) with ESMTP id 4F4A5164C
for ; Thu, 16 Aug 2018 09:42:14 +0300
(MSK) MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
format=flowed
Content-Transfer-Encoding: 7bit
Date: Thu, 16 Aug 2018 09:42:14 +0300
From: [email protected]
To: [email protected]
Subject: asdasd
Message-ID: <[email protected] com>
X-Sender: [email protected]
User-Agent: Roundcube Webmail/1.3.7

main.cf

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
myhostname = mail.mydomain.com
mydomain = mydomain.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
local_recipient_maps = unix:passwd.byname $alias_maps
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
smtpd_banner = $myhostname ESMTP $mail_name
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.10.1/samples
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
virtual_mailbox_base = /home/mail
relay_domains = mysql:/etc/postfix/mysql/mysql_relay_domains.cf
virtual_alias_maps = mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf
mysql:/etc/postfix/mysql/mysql_virtual_alias_domain_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 1024
virtual_uid_maps = static:1024
virtual_gid_maps = static:1024
virtual_transport = dovecot
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_cert_file = /etc/ssl/mail/public.pem
smtpd_tls_key_file = /etc/ssl/mail/private.key
smtpd_use_tls = yes smtpd_tls_auth_only = yes
smtpd_helo_required = yes
#smtpd_recipient_restrictions = permit_mynetworks, check_relay_domains, reject_unauth_destination

Help with advice, I've been fighting with this server for 3 days.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan Fedoseev, 2018-08-16
@martin74ua

put iredmail ;)

D
Dmitry, 2018-08-16
@q2digger

Show the logs.
What postfix writes: /var/log/maillog
What dovecot writes (this will probably have to be configured in /etc/dovecot/conf.d/10-logging.conf)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question