[Tutorial] How to setup Wordpress multisite network with cyberpanel/openlitespeed

excuse me
my english is more bad. i know a bit simple english :slight_smile:

i cant send e-mail with my sites. İ have 2 wordpres multisite on my cyberpanel.
İ traing send mail with “contact form 7” and " WP Forms" plugins.
And wordpres dont sent when new site accont

should i do something on cyberpanel or openlitespeed for email ?

@sertsidk said:
excuse me
my english is more bad. i know a bit simple english :slight_smile:

i cant send e-mail with my sites. İ have 2 wordpres multisite on my cyberpanel.
İ traing send mail with “contact form 7” and " WP Forms" plugins.
And wordpres dont sent when new site accont

should i do something on cyberpanel or openlitespeed for email ?

hmmmmm , I suppose not , try /var/log/maillog , log file should tell you why failed to sent mail.

ohh!
I really do not know what to do now

now i really do not know what to do my linux knowledge is worse than english.
And
google helps less in this matter

I will try to it with FileZilla

@qtwrk said:

hmmmmm , I suppose not , try /var/log/maillog , log file should tell you why failed to sent mail.

there is 6 files:
ftpuser
rpc
cyberpanel
vmail
fileusernameisformyfirstsite
fileusernameisformysecontsite

and all is empty, (0 Kb)

You sure you have postfix running ?

no
i m not sure anything

How i can check it?

systemctl status postfix

and

netstat -lnp | grep 25


[root@xxxxx~]# systemctl status postfix
● postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2018-03-29 19:52:47 UTC; 2 weeks 5 days ago
Process: 3315 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
Process: 3302 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
Process: 3206 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)
Main PID: 3819 (master)
CGroup: /system.slice/postfix.service
├─ 418 anvil -l -t unix -u
├─ 3819 /usr/libexec/postfix/master -w
├─ 3838 qmgr -l -t unix -u
├─ 4519 tlsmgr -l -t unix -u
└─30802 pickup -l -t unix -u

Apr 17 20:50:46 xxxxx postfix/smtp[32628]: connect to alt1.gmail-smtp-in.l.g…t
Apr 17 20:50:46 xxxxx postfix/smtp[32628]: connect to alt1.gmail-smtp-in.l.g…e
Apr 17 20:50:46 xxxxx postfix/smtp[32629]: connect to alt1.gmail-smtp-in.l.g…t
Apr 17 20:50:46 xxxxx postfix/smtp[32629]: connect to alt2.gmail-smtp-in.l.g…e
Apr 17 20:50:46 xxxxx postfix/smtp[32629]: B20CD1214F8: to=<[email protected]…)
Apr 17 20:51:16 xxxxx postfix/smtp[32628]: connect to alt2.gmail-smtp-in.l.g…t
Apr 17 20:51:16 xxxxx postfix/smtp[32628]: AD1B8121506: to=<[email protected]…)
Apr 17 20:54:15 xxxxx postfix/smtpd[416]: connect from unknown[184.71.152.86]
Apr 17 20:54:15 xxxxx postfix/smtpd[416]: warning: unknown[184.71.152.86]: S…m
Apr 17 20:54:16 xxxxx postfix/smtpd[416]: disconnect from unknown[184.71.152.86]
Hint: Some lines were ellipsized, use -l to show in full.
[root@xxxxx ~]# netstat -lnp | grep 25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 3819/master
tcp6 0 0 :::25 :::* LISTEN 3819/master
unix 2 [ ACC ] STREAM LISTENING 2599 1/init /run/systemd/private
unix 2 [ ACC ] STREAM LISTENING 8025 3337/dovecot /var/run/dovecot/dns-client
[root@xxxxx~]#

try cat /var/log/maillog

I’ve realized now
Not working mail nowhere
İ tested now with rainloop

@qtwrk said:
try cat /var/log/maillog

unfortunately the situation is the same

@sertsidk said:
@qtwrk said:
try cat /var/log/maillog

unfortunately the situation is the same

Alright… Log a ticket I will try to figure it out

Hi ,

ive followed ur tutorial but sadly is not working with me in blogs…

i migrated from cpanel , i have 4 sites in my network + main …

only the main website front/backend and network backend opens fine …

any other gives 404…

any help with that…

@moataz said:
Hi ,

ive followed ur tutorial but sadly is not working with me in blogs…

i migrated from cpanel , i have 4 sites in my network + main …

only the main website front/backend and network backend opens fine …

any other gives 404…

any help with that…

So you are on subfolder, post your htaccess content

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^/ - [L]
RewriteRule ^/(wp-(content|admin|includes).) $1 [L]
RewriteRule ^/(.
\.php)$ $1 [L]
RewriteRule . index.php [L]

ive found the solution,

u have to add it to OLS server itself not .htaccess file…

maybe there is another way to allow .htaccess but it worked with me

oh yes , you will need something like this “rewriteFile /path/to/.htaccess” in conf to tell OLS to read that .htaccess

now im facing 2 issues:

1- all websites open fine , but when i check domain dns with mxtool i get dns 500 error
so i cant test site anywhere neither in mxtool , gtmetrix , pingdom or anywhere as they reflect 500 error

i donno if that due to SOA issue “we can yet edit SOA file in cyber panel” and the primary always shows to ns1.domain.com not the dns server we created…

2- i can send emails but cant receive emails with the new addon domain i added

any ideas?

i got solution for the 500 , in wp_config i added www in define('DOMAIN_CURRENT_SITE

and it worked

just the email receiving issue remains unsolved

do you have correct MX record setup ?