DNS Setting

Hi, I need a little help setting up my DNS settings.

My domain is on Namecheap and I orginally had all my DNS Settings set to Digital ocean Which is where I installed the panel.

I Now what to use Cyberpanel for my DNS settings for my domain, but its installed on Digital ocean.

Heres my current set up can someone please advise on the changes that I need to make.

I tried switching out the DNS settings on name cheap with my cyber panel NS records but that deleted the website and panel

Did you get a chance to read https://blog.cyberpanel.net/2018/02/24/how-to-register-private-name-servers-on-namecheap-or-godaddy-with-cyberpanel/

yes, I tried that

I attached a photo thread showing the settings

You need to upgrade them to

ns1.yoursite.com
ns2.yoursite.com

When i did that the site no longer worked

IP in DO seems to end in 4, but in NameCheap, your IP does not seem to end in 4. It seems to end in 1 and 2. Similarly on CyberPanel side your ns1 and ns2 IP ends with 1 and 2, please make sure you use your VPS IP.

The ones ending in four is my DigitalOcean VPS IP the one ending in 1 & 2 are my cyber panel DNS IP should i change my cyberpanel ip to match the DO vps one?

Sorry, but what do you mean by CyberPanel DNS IP? Where ever IP is required it should be your VPS IP or the IP of VPS where you are planning to run DNS server.

Ok i changed it to my vps ip i think it works now. I still however cant get rainloops to work it just says cant send mail.

heres the log

Oct 24 17:29:38 trg dovecot: imap(hey@thatsreallygood.co): Disconnected: Logged out in=126 out=1226
Oct 24 17:29:48 trg postfix/smtpd[3369]: connect from unknown[200.60.62.82]
Oct 24 17:29:49 trg postfix/smtpd[3369]: warning: unknown[200.60.62.82]: SASL LOGIN authentication failed: Invalid authentication mechanism
Oct 24 17:29:49 trg postfix/smtpd[3369]: disconnect from unknown[200.60.62.82]
Oct 24 17:30:28 trg dovecot: imap-login: Login: user=hey@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3401, TLS, session=<BTqo1/x4CgB/AAAB>
Oct 24 17:30:28 trg dovecot: imap(hey@thatsreallygood.co): Disconnected: Logged out in=97 out=868
Oct 24 17:30:29 trg dovecot: imap-login: Login: user=hey@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3403, TLS, session=<+BKu1/x4DAB/AAAB>
Oct 24 17:30:29 trg dovecot: imap(hey@thatsreallygood.co): Disconnected: Logged out in=89 out=860
Oct 24 17:30:37 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3405, TLS, session=<sbIu2Px4DgB/AAAB>
Oct 24 17:30:37 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=11 out=401
Oct 24 17:30:42 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3407, TLS, session=<wQ172Px4EAB/AAAB>
Oct 24 17:30:42 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=576 out=2043
Oct 24 17:30:43 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3410, TLS, session=<KhiG2Px4EgB/AAAB>
Oct 24 17:30:43 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3411, TLS, session=<qG2G2Px4FAB/AAAB>
Oct 24 17:30:43 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=110 out=1218
Oct 24 17:30:43 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=380 out=1275
Oct 24 17:30:48 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3413, TLS, session=<+OHY2Px4FgB/AAAB>
Oct 24 17:30:48 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=28 out=769
Oct 24 17:31:00 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3415, TLS, session=<fvmN2fx4GAB/AAAB>
Oct 24 17:31:00 trg postfix/submission/smtpd[3416]: warning: cannot get RSA certificate from file /etc/pki/dovecot/certs/dovecot.pem: disabling TLS support
Oct 24 17:31:00 trg postfix/submission/smtpd[3416]: warning: TLS library problem: 3416:error:0200100D:system library:fopen:Permission denied:bss_file.c:402:fopen(’/etc/pki/dovecot/certs/dovecot.pem’,‘r’):
Oct 24 17:31:00 trg postfix/submission/smtpd[3416]: warning: TLS library problem: 3416:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:404:
Oct 24 17:31:00 trg postfix/submission/smtpd[3416]: warning: TLS library problem: 3416:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:701:
Oct 24 17:31:00 trg postfix/submission/smtpd[3416]: connect from localhost[127.0.0.1]
Oct 24 17:31:00 trg postfix/cleanup[3419]: 9D96E4554E4: message-id=20181024173100.9D96E4554E4@server.example.com
Oct 24 17:31:00 trg postfix/qmgr[24664]: 9D96E4554E4: from=double-bounce@server.example.com, size=882, nrcpt=1 (queue active)
Oct 24 17:31:00 trg postfix/submission/smtpd[3416]: disconnect from localhost[127.0.0.1]
Oct 24 17:31:00 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=11 out=401
Oct 24 17:31:00 trg postfix/smtp[3424]: 9D96E4554E4: to=postmaster@server.example.com, orig_to=, relay=none, delay=0.05, delays=0.03/0.02/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=server.example.com type=AAAA: Host not found)
Oct 24 17:31:00 trg postfix/bounce[3425]: warning: 9D96E4554E4: undeliverable postmaster notification discarded
Oct 24 17:31:00 trg postfix/qmgr[24664]: 9D96E4554E4: removed
Oct 24 17:31:00 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3427, TLS, session=<pQ+S2fx4HgB/AAAB>
Oct 24 17:31:00 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=96 out=867
Oct 24 17:31:11 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3429, TLS, session=<wrQ42vx4IAB/AAAB>
Oct 24 17:31:11 trg postfix/submission/smtpd[3416]: connect from localhost[127.0.0.1]
Oct 24 17:31:11 trg postfix/cleanup[3419]: C40704554E4: message-id=20181024173111.C40704554E4@server.example.com
Oct 24 17:31:11 trg postfix/qmgr[24664]: C40704554E4: from=double-bounce@server.example.com, size=882, nrcpt=1 (queue active)
Oct 24 17:31:11 trg postfix/submission/smtpd[3416]: disconnect from localhost[127.0.0.1]
Oct 24 17:31:11 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=11 out=401
Oct 24 17:31:11 trg postfix/smtp[3424]: C40704554E4: to=postmaster@server.example.com, orig_to=, relay=none, delay=0.01, delays=0/0/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=server.example.com type=AAAA: Host not found)
Oct 24 17:31:11 trg postfix/bounce[3425]: warning: C40704554E4: undeliverable postmaster notification discarded
Oct 24 17:31:11 trg postfix/qmgr[24664]: C40704554E4: removed
Oct 24 17:31:12 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3432, TLS, session=<yOQ72vx4JgB/AAAB>
Oct 24 17:31:12 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=96 out=867
Oct 24 17:31:28 trg postfix/smtpd[3369]: warning: hostname 189-112-185-186.static.ctbctelecom.com.br does not resolve to address 189.112.185.186: Name or service not known
Oct 24 17:31:28 trg postfix/smtpd[3369]: connect from unknown[189.112.185.186]
Oct 24 17:31:29 trg postfix/smtpd[3369]: warning: unknown[189.112.185.186]: SASL LOGIN authentication failed: Invalid authentication mechanism
Oct 24 17:31:29 trg postfix/smtpd[3369]: disconnect from unknown[189.112.185.186]
Oct 24 17:31:46 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3435, TLS, session=<JcZP3Px4KgB/AAAB>
Oct 24 17:31:46 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=124 out=1257

You are almost halfway there, but to set up a mail server you have to work a bit hard. You can read docs under Email from here Docs - CyberPanel and then to better your delivery score Achieve 10/10 Email score with CyberPanel! - CyberPanel

im still unable to send did i miss something?

Oct 24 19:02:07 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4882, TLS, session=<8sFkH/54sAB/AAAB>
Oct 24 19:02:07 trg postfix/submission/smtpd[4786]: connect from localhost[127.0.0.1]
Oct 24 19:02:07 trg postfix/cleanup[4788]: 45D8D4894EC: message-id=20181024190207.45D8D4894EC@thatsreallygood.co
Oct 24 19:02:07 trg postfix/qmgr[4711]: 45D8D4894EC: from=double-bounce@thatsreallygood.co, size=875, nrcpt=1 (queue active)
Oct 24 19:02:07 trg postfix/submission/smtpd[4786]: disconnect from localhost[127.0.0.1]
Oct 24 19:02:07 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=11 out=401
Oct 24 19:02:07 trg postfix/pipe[4793]: 45D8D4894EC: to=postmaster@thatsreallygood.co, orig_to=, relay=dovecot, delay=0.02, delays=0.01/0.01/0/0.01, dsn=2.0.0, status=sent (delivered via dovecot service)
Oct 24 19:02:07 trg postfix/qmgr[4711]: 45D8D4894EC: removed
Oct 24 19:02:07 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4889, TLS, session=<gEpoH/54tgB/AAAB>
Oct 24 19:02:07 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=96 out=867
Oct 24 19:02:19 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4892, TLS, session=<kdkiIP54uAB/AAAB>
Oct 24 19:02:19 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=89 out=860
Oct 24 19:02:19 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4893, TLS, session=<HEcjIP54ugB/AAAB>
Oct 24 19:02:19 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=1094 out=1232
Oct 24 19:02:20 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4895, TLS, session=<s3soIP54vAB/AAAB>
Oct 24 19:02:20 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=96 out=867
Oct 24 19:02:48 trg postfix/smtpd[4875]: connect from 211-72-92-231.HINET-IP.hinet.net[211.72.92.231]
Oct 24 19:02:49 trg postfix/smtpd[4875]: warning: 211-72-92-231.HINET-IP.hinet.net[211.72.92.231]: SASL LOGIN authentication failed: Invalid authentication mechanism
Oct 24 19:02:49 trg postfix/smtpd[4875]: disconnect from 211-72-92-231.HINET-IP.hinet.net[211.72.92.231]
Oct 24 19:03:20 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4900, TLS, session=<E3C7I/54wAB/AAAB>
Oct 24 19:03:20 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=1094 out=1220
Oct 24 19:03:20 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4902, TLS, session=<moDAI/54wgB/AAAB>
Oct 24 19:03:20 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=96 out=867
Oct 24 19:03:56 trg postfix/anvil[4728]: statistics: max connection rate 1/60s for (smtp:190.85.234.7) at Oct 24 18:53:56
Oct 24 19:03:56 trg postfix/anvil[4728]: statistics: max connection count 1 for (smtp:190.85.234.7) at Oct 24 18:53:56
Oct 24 19:03:56 trg postfix/anvil[4728]: statistics: max cache size 1 at Oct 24 18:53:56
Oct 24 19:04:15 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4905, TLS, session=<o2MFJ/54xAB/AAAB>
Oct 24 19:04:15 trg postfix/submission/smtpd[4906]: warning: cannot get RSA certificate from file /etc/pki/dovecot/certs/dovecot.pem: disabling TLS support
Oct 24 19:04:15 trg postfix/submission/smtpd[4906]: warning: TLS library problem: 4906:error:0200100D:system library:fopen:Permission denied:bss_file.c:402:fopen(’/etc/pki/dovecot/certs/dovecot.pem’,‘r’):
Oct 24 19:04:15 trg postfix/submission/smtpd[4906]: warning: TLS library problem: 4906:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:404:
Oct 24 19:04:15 trg postfix/submission/smtpd[4906]: warning: TLS library problem: 4906:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:701:
Oct 24 19:04:15 trg postfix/submission/smtpd[4906]: connect from localhost[127.0.0.1]
Oct 24 19:04:15 trg postfix/cleanup[4909]: 463644894EC: message-id=20181024190415.463644894EC@thatsreallygood.co
Oct 24 19:04:15 trg postfix/qmgr[4711]: 463644894EC: from=double-bounce@thatsreallygood.co, size=875, nrcpt=1 (queue active)
Oct 24 19:04:15 trg postfix/submission/smtpd[4906]: disconnect from localhost[127.0.0.1]
Oct 24 19:04:15 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=11 out=401
Oct 24 19:04:15 trg postfix/pipe[4914]: 463644894EC: to=postmaster@thatsreallygood.co, orig_to=, relay=dovecot, delay=0.05, delays=0.03/0.02/0/0.01, dsn=2.0.0, status=sent (delivered via dovecot service)
Oct 24 19:04:15 trg postfix/qmgr[4711]: 463644894EC: removed
Oct 24 19:04:15 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4917, TLS, session=<yIQJJ/54ygB/AAAB>
Oct 24 19:04:15 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=96 out=867
Oct 24 19:04:19 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4920, TLS, session=<z29FJ/54zAB/AAAB>
Oct 24 19:04:19 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=89 out=860
Oct 24 19:04:19 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4921, TLS, session=<V8VFJ/54zgB/AAAB>
Oct 24 19:04:19 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=1094 out=1220
Oct 24 19:04:19 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4923, TLS, session=<gbZJJ/540AB/AAAB>
Oct 24 19:04:19 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=96 out=868
Oct 24 19:04:19 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4925, TLS, session=<k/NKJ/540gB/AAAB>
Oct 24 19:04:19 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=1094 out=1221
Oct 24 19:04:20 trg dovecot: imap-login: Login: user=newsletter@thatsreallygood.co, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4927, TLS, session=<NB1PJ/541AB/AAAB>
Oct 24 19:04:20 trg dovecot: imap(newsletter@thatsreallygood.co): Disconnected: Logged out in=96 out=868

Go under Find errors in email problems try the first option, only capture output when you are actually trying to send an email.

Logs you provide does not say much about delivery.

Sorry heres that log
Hint: You are currently not seeing messages from other users and the system.
Users in the ‘systemd-journal’ group can see all messages. Pass -q to
turn off this notice.
Oct 24 19:47:40 trg postfix/smtpd[5528]: warning: cannot get RSA certificate from file /etc/pki/dovecot/certs/dovecot.pem: disabling TLS support
Oct 24 19:47:40 trg postfix/smtpd[5528]: warning: TLS library problem: 5528:error:0200100D:system library:fopen:Permission denied:bss_file.c:402:fopen(’/etc/pki/dovecot/certs/dovecot.pem’,‘r’):
Oct 24 19:47:40 trg postfix/smtpd[5528]: warning: TLS library problem: 5528:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:404:
Oct 24 19:47:40 trg postfix/smtpd[5528]: warning: TLS library problem: 5528:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:701:
Oct 24 19:47:40 trg postfix/smtpd[5528]: connect from 202077050129.static.ctinets.com[202.77.50.129]
Oct 24 19:47:41 trg postfix/smtpd[5528]: warning: 202077050129.static.ctinets.com[202.77.50.129]: SASL LOGIN authentication failed: Invalid authentication mechanism
Oct 24 19:47:41 trg postfix/smtpd[5528]: disconnect from 202077050129.static.ctinets.com[202.77.50.129]
Oct 24 19:48:08 trg postfix/anvil[5421]: statistics: max connection rate 1/60s for (smtp:200.29.108.214) at Oct 24 19:38:08

Did you issue SSL for Postfix/Dovecot? 2 - SSL For PostFix/Dovecot - CyberPanel

Yes, i just reissued ssl for email the and the whole site. still the same issue

Oct 24 21:53:55 trg postfix/smtpd[7312]: warning: cannot get RSA certificate from file /etc/pki/dovecot/certs/dovecot.pem: disabling TLS support
Oct 24 21:53:55 trg postfix/smtpd[7312]: warning: TLS library problem: 7312:error:0200100D:system library:fopen:Permission denied:bss_file.c:402:fopen(’/etc/pki/dovecot/certs/dovecot.pem’,‘r’):
Oct 24 21:53:55 trg postfix/smtpd[7312]: warning: TLS library problem: 7312:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:404:
Oct 24 21:53:55 trg postfix/smtpd[7312]: warning: TLS library problem: 7312:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:701:
Oct 24 21:53:55 trg postfix/smtpd[7312]: warning: hostname ip-187.94.100-150.globalwave.com.br does not resolve to address 187.94.100.150: Name or service not known
Oct 24 21:53:55 trg postfix/smtpd[7312]: connect from unknown[187.94.100.150]
Oct 24 21:53:55 trg postfix/smtpd[7312]: warning: unknown[187.94.100.150]: SASL LOGIN authentication failed: Invalid authentication mechanism
Oct 24 21:53:55 trg postfix/smtpd[7312]: disconnect from unknown[187.94.100.150]

How do I check for or adjust the RDNS?

Only your provider can set RDNS for you.

any ideas on how i can fix this?

Here’s some updates

The dovecot.conf file

protocols = imap pop3
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/home/vmail/%d/%n/Maildir

ssl_cert = <cert.pem
ssl_key = <key.pem

namespace {
type = private
separator = .
prefix = INBOX.
inbox = yes
}

service auth {
unix_listener auth-master {
mode = 0600
user = vmail
}

unix_listener /var/spool/postfix/private/auth {
    mode = 0666
    user = postfix
    group = postfix
}

user = root


dovecot.pem has 2 certficates in it


This is the main.cf file

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
inet_protocols = all
mydestination = localhost, localhost.localdomain
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
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

myhostname = thatsreallygood.co
mynetworks = 127.0.0.0/8
message_size_limit = 30720000
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/pki/dovecot/certs/dovecot.pem
smtpd_tls_key_file = /etc/pki/dovecot/private/dovecot.pem
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
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 $virtual_mailbox_limit_maps
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
inet_interfaces = all
smtp_tls_security_level = may

smtpd_milters = inet:127.0.0.1:8891
non_smtpd_milters = $smtpd_milters
milter_default_action = accept
smtpd_data_restrictions = check_policy_service unix:/var/log/policyServerSocket
smtpd_data_restrictions = check_policy_service unix:/var/log/policyServerSocket