Author Topic: centos7+postfix+cyrus+roundcube+postfixadmin  (Read 2965 times)

Offline rhinolt

  • Newbie
  • *
  • Posts: 3
centos7+postfix+cyrus+roundcube+postfixadmin
« on: May 28, 2019, 05:04:42 AM »
hello,ive setup a server with centos7+postfix+cyrus+roundcube+postfixadmin+mariadb

postfixadmin could add virtual mailbox in mariadb,and could send mail through telnet:25,the mail directory could create files normally too.

but got issue with any client on port:143,including thunderbird,roundcube,telnet:143,seems password check error or something

here are my confs

postfix:main.cf

Code: [Select]
smtpd_banner = Welcome!
#Enabling SMTP for authenticated users, and handing off authentication to Dovecot 
smtpd_sasl_type = dovecot
smtpd_sasl_path = /var/run/dovecot/auth-client
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_auth_destination,permit_sasl_authenticated,reject_unauth_destination

smtpd_sender_restrictions = reject_unknown_sender_domain,reject_sender_login_mismatch
smtpd_sender_login_maps = mysql:/etc/postfix/mysql-sender-login-maps.cf
smtpd_reject_unlisted_sender = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
queue_directory = /var/spool/postfix


myhostname = xxx.xxxx.net

mydestination = localhost

mynetworks = 0.0.0.0/0

message_size_limit = 10485760

mailbox_size_limit = 1073741824

home_mailbox = Maildir/

inet_interfaces = all

virtual_transport = lmtp:unix:private/dovecot-lmtp

virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf

proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks

mydomain = xxx.xxxx.net

myorigin = $mydomain

inet_protocols = ipv4

biff = no


postfix:mysql-virtual-mailbox-maps.cf

Code: [Select]
user = abc
password = xxx
hosts = 127.0.0.1
dbname = abc
query = SELECT 1 FROM mailbox WHERE username='%s'

dovecot:dovecot.conf

Code: [Select]
dict {
  #quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
  #expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
}
!include conf.d/*.conf
!include_try local.conf
protocols = imap pop3 lmtp

dovecot:dovecot-sql.conf.ext

Code: [Select]
driver = mysql
connect = host=localhost dbname=abc user=abc password=xxxx
default_pass_scheme = MD5
password_query = SELECT username as user, password FROM mailbox WHERE username='%u'


Offline rhinolt

  • Newbie
  • *
  • Posts: 3
Re: centos7+postfix+cyrus+roundcube+postfixadmin
« Reply #1 on: May 28, 2019, 05:09:14 AM »

failed messages:

maillog

Code: [Select]
May 28 17:06:27 localhost imap[791]: badlogin: xxxx [1.1.1.1] PLAIN [SASL(-13): authentication failure: Password verification failed]
secure
Code: [Select]
May 28 17:06:25 localhost saslauthd[2424]: pam_unix(imap:auth): check pass; user unknown
May 28 17:06:25 localhost saslauthd[2424]: pam_unix(imap:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=