LAMP install with Virtual domains and users

Issues related to applications and software problems
Post Reply
eevans
Posts: 2
Joined: 2017/01/12 20:55:42

LAMP install with Virtual domains and users

Post by eevans » 2017/01/12 21:00:31

I installed LAMP based on this web site, http://www.tecmint.com/setup-postfix-ma … in-centos/, and I can send email anywhere and my server receives email, but the users on the server never get mail delivered. It's stuck in a queue. I am researched this to death and can't find an answer.
At first I got the error "postfix/qmgr[10861]: warning: connect to transport private/dovecot: Connection refused".
Now after much research and config changes and unchanges I get "mail postfix/master[5442]: warning: process /usr/libexec/postfix/pipe pid 5466 exit status 1".
Email is setting on the server and not being delivered to the mailboxes on the server.
Internal delivery is failing, but external delivery is working. I can reply to a message sent to an external email and it comes back to the server and sits there and is never put in the inbox for the user.
postconf -n:
append_dot_mydomain = no
biff = no
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
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
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 4194304
mynetworks = 127.0.0.0/8,192.168.254.0/24
mynetworks_style = host
queue_directory = /var/spool/postfix
readme_directory = no
sample_directory = /usr/share/doc/postfix-2.10.1/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (CentOS)
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_tls_cert_file = /etc/pki/dovecot/certs/dovecot.pem
smtpd_tls_key_file = /etc/pki/dovecot/private/dovecot.pem
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/mariadb-valias.cf
virtual_mailbox_domains = mysql:/etc/postfix/mariadb-vdomains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mariadb-vusers.cf
virtual_transport = dovecot
doveconf -n:# 2.2.10: /etc/dovecot/dovecot.conf
# OS: Linux 3.10.0-514.2.2.el7.x86_64 x86_64 CentOS Linux release 7.3.1611 (Core) xfs
auth_mechanisms = plain login
first_valid_uid = 1000
log_path = /var/log/dovecot.log
mail_location = maildir:/home/vmail/%d/%n/Maildir
mail_privileged_group = mail
mbox_write_locks = fcntl
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
service auth-worker {
user = vmail
}
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
}
unix_listener auth-userdb {
mode = 0600
user = vmail
}
user = dovecot
}
service imap-login {
inet_listener imap {
port = 143
}
}
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0600
user = postfix
}
}
service pop3-login {
inet_listener pop3 {
port = 110
}
}
ssl = required
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
args = uid=vmail gid=vmail home=/home/vmail/%d/%n/Maildir
driver = static
}
I really need to get this resolved and any help would be greatly appreciated.

wilburunion
Posts: 22
Joined: 2017/01/05 14:55:14

Re: LAMP install with Virtual domains and users

Post by wilburunion » 2017/01/14 21:10:49

Without going over what you posted - I can tell you this guide here works and has steps to test it once done - see https://www.linode.com/docs/email/postf ... n-centos-7

You can go over the two and look for what you might have missed or did wrong

Post Reply