usmannasir / cyberpanel

Cyber Panel - The hosting control panel for OpenLiteSpeed
GNU General Public License v3.0
1.6k stars 613 forks source link

Couldn't send/receive email after upgrading to version 2.1.1 #585

Closed h1dd3nsn1p3r closed 3 years ago

h1dd3nsn1p3r commented 3 years ago

@usmannasir

Os: CentOs 7 Cloud provider: DO Tested in: CP 2.1.1. Also tested in 2.0.3 by downgrading from 2.1.1

I know this BUG is already reported but I am adding this for reference.

I noticed postfix was not running with the command systemctl status postfix. Then,

  1. I installed postfix using the command yum install postfix -y & then started it using command systemctl start postfix
  2. I also installed mailx using command yum install mailx -y

If I do echo "This is the body of the email" | mail -s "This is the subject line" myemail@mydomain.com I got an email from the server.

BUT, none of the emails sent from rainloop, POP, IMAP is working. Same case for receiving too. Is this something to do with MailScanner?

Thanks, Anuj

master3395 commented 3 years ago

Could have commented on my report also ;) https://github.com/usmannasir/cyberpanel/issues/579

paulshultz commented 3 years ago

Looks like the latest upgrade removes postfix.

Erased: 2:postfix3-mysql-3.5.8-1.gf.el7.x86_64 Erased: 2:postfix3-pcre-3.5.8-1.gf.el7.x86_64 Erased: 2:postfix3-ldap-3.5.8-1.gf.el7.x86_64 Erased: 2:postfix3-3.5.8-1.gf.el7.x86_64

I think the intent is to remove, and re-install but the install script does not re-install

paulshultz commented 3 years ago

Looks like the ghettoforge.org mirror is out of the picture, so had to re-install manually.

wget http://mirror.ghettoforge.org/distributions/gf/el/7/plus/x86_64/postfix3-3.5.8-1.gf.el7.x86_64.rpm wget http://mirror.ghettoforge.org/distributions/gf/el/7/plus/x86_64/postfix3-mysql-3.5.8-1.gf.el7.x86_64.rpm wget http://mirror.ghettoforge.org/distributions/gf/el/7/plus/x86_64/postfix3-ldap-3.5.8-1.gf.el7.x86_64.rpm wget http://mirror.ghettoforge.org/distributions/gf/el/7/plus/x86_64/postfix3-pcre-3.5.8-1.gf.el7.x86_64.rpm

rpm -Uvh postfix3-*.rpm systemctl restart postfix

franciscopaniskaseker commented 3 years ago

I did the manual installation as explained in https://github.com/usmannasir/cyberpanel/issues/585#issuecomment-821233083 Because the official tutorial https://cyberpanel.net/docs/email-not-working-after-cyberpanel-upgrade/ get a lot of package conflicts using yum. We are being note beta, but alpha testers here.

meramsey commented 3 years ago

I think i found the cause of the issue and put out a fix https://github.com/usmannasir/cyberpanel/commit/f865d0cb027bf2e325be46c882e6ffc9f37896f7

Let me know if it fixes the issue on centos where it failed to reinstall.

Im testing the fix for Ubuntu currently but don't have a centos one setup to test on atm

usmannasir commented 3 years ago

OK @whattheserver I've merged the commit to v2.1.1 and also published the debugging guide, so we can close this now.