DevCEDTeam / CED

0 stars 0 forks source link

gmail-bulk-sending #70

Open DevCEDTeam opened 11 months ago

DevCEDTeam commented 11 months ago

Quota app Engine Admin | OAuth 2.0 Client gmail api | SMTP

Dashboard Project Name: gmail-bulk-sending Project ID: gmail-bulk-sending-389112 Project Number: 895054114655

Permissions for project "gmail-bulk-sending" : 895054114655-compute@developer.gserviceaccount.com

APIs & Services | Credentials | API Keys gmail-bulk-sending (auto created by Firebase) Firebase | API Key : AIzaSyCxkplcaDKe9d97JwwN2h8WJITr697UlzA

APIs & Services | Credentials |Service Accounts gmail-bulk-sending-389112@appspot.gserviceaccount.com | App Engine default service account JSON Web Key (JWK) https://www.rfc-editor.org/rfc/rfc7517

firebase | Authentication | gmail-bulk-sending | Project settings | Firebase Admin SDK | Firebase service account

firebase-adminsdk-bpwq7@gmail-bulk-sending-389112.iam.gserviceaccount.com

firebase | Authentication | gmail-bulk-sending | Project settings | Firebase Admin SDK | Admin SDK configuration snippet

var admin = require("firebase-admin");

var serviceAccount = require("path/to/serviceAccountKey.json");

admin.initializeApp({ credential: admin.credential.cert(serviceAccount), databaseURL: "https://gmail-bulk-sending-389112-default-rtdb.firebaseio.com" });

Project name Mautic Project Project number 1004926973004 Project ID mautic-project-392520 instance: cpanel-on-almalinux-1-vm

MultiPHP INI ea-php80

46046589

Credentials:

Database Name mautic_database_mysql Database Username mautic_admin_user password: s*6M=2Pk9z https://mautic.devced.com/

Credentials | Mautic user: mautic_admin password: fz)R{N[xk5pP! https://mautic.devced.com/

Credentials: cPanel/WHM/ devCED.com mautic: 4Td_n=E9?6 root: dE{4-9PetK mautic-project-39252 https://cpanel.devced.com/

Test Email username: team@cfored.com password: Rw4?!3Yz8K Port: 587

SSH Port: 49160

Exim port: 587 SMTP authentication mode: Login SMTP host: imap.devced.com SMTP encryption type: TLS

cPanel Support Ticket: IP Address: 35.236.118.198 Support accss ID: 415011412011412c

https://console.firebase.google.com/project/{PROJECT-ID}/settings/iam - just replace {PROJECT-ID

https://console.firebase.google.com/project/mautic-project-39252/settings/iam

cd /usr/local/bin

curl -sS https://getcomposer.org/installer | php

Composer (version 2.5.8) successfully installed to: /usr/local/bin/composer.phar Use it: php composer.pharls

Firebase

firebase use --add firebase use --add gmail-bulk-sending-389112 Functions firebase init npm install firebase

$ npm install -g firebase-tools

$ firebase init $ firebase deploy

Hosting npm install -g firebase-tools firebase login logout

firebase use --add

Firebase -P -P gmail-bulk-sending-389112

firebase Commands: firebase init firebase login

Firebase Deploy Commands: firebase deploy deploy --only fun

Firebase service account firebase-adminsdk-bpwq7@gmail-bulk-sending-389112.iam.gserviceaccount.com

cPanel license /usr/local/cpanel/cpkeyclt

Bash Google Cloud Commands: Change WHM root password:

root directory

sudo su - export PS1="root@$(hostname):~$ " cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest id

root Password Change sudo su sudo -i sudo passwd [new password]

Install Google Marketplace: cPanel & WHM on AlmaLinux

gcloud config set project [PROJECT_ID] Project ID mautic-project-392520 gcloud config set project mautic-project-39252

id

uid=0(root) gid=0(root) groups=0(root)

install cPanel

cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

Installation Instructions After cPanel Install:

Install fileinfo

To install and enable the fileinfo extension in cPanel/WHM, there are a few steps that you need to follow. Here's a general outline:

Option 1: Use EasyApache 4 (Recommended) EasyApache is a script that allows you to configure and manage Apache and PHP on your cPanel server. It's the recommended way to install the fileinfo extension in cPanel/WHM.

Log in to WHM as the root user. In the top left of WHM, type 'easy' into the search field. 3 . Click on the "EasyApache 4" option that appears in the search results. Click the "Customize" button next to Currently Installed Packages. 5 . Navigate to the PHP Extensions section and check the box next to "fileinfo." Click the "Review" button, then the "Provision" button to save your changes. Once EasyApache has finished installing the fileinfo extension, you should be able to use it in your PHP scripts.

This should be ran as the root user and it will provide the SSH configuration and check logs to see if any cPanel IPs are being blocked. perl <(curl -s https://ssp.cpanel.net/ssp) --sshcheck

authorized_keys chategpt prompt

Your assignment is to provide step-by-step instructions with sample codes and CLI commands on how to install authorized_keys on my server with these specifications on my cPanel terminal as follows:

EasyApache 4 cPanel & WHM on AlmaLinux OS: AlmaLinux v8.8.0 STANDARD kvm cPanel Version 112.0.5

The cPanel user starts here: /home/$cpuser. Prompt: mautic@35-236-118-198

ssh root@35.236.118.198

MultiPHP INI ea-php80 https://whm.devced.com/cpsess3492755870/scripts2/multiphp_ini_editor/editor /home/$cpuser.

ssh $cpuser@your_server_ip

ssh mautic@35.236.118.198

====================================================

Here are the step-by-step instructions to install authorized_keys on your server using the cPanel terminal:

  1. Log in to your cPanel & WHM server as the root user.

  2. Open the Terminal application by clicking on the Terminal icon in the cPanel dashboard.

  3. Create the .ssh directory in the root user's home directory if it doesn't already exist:

    mkdir -p /root/.ssh
  4. Change the permissions of the .ssh directory to 700:

    chmod 700 /root/.ssh
  5. Create the authorized_keys file in the .ssh directory:

    touch /root/.ssh/authorized_keys
  6. Change the permissions of the authorized_keys file to 600:

    chmod 600 /root/.ssh/authorized_keys
  7. Open the authorized_keys file using the nano editor:

    nano /root/.ssh/authorized_keys
  8. Type or paste your public key into the file.

    If you don't have a public key yet, you can generate one on your local machine using the following command:

    ssh-keygen -t rsa

    This will create a public/private key pair in the ~/.ssh directory on your local machine. The public key is stored in the file ~/.ssh/id_rsa.pub.

    Copy the contents of the id_rsa.pub file and paste them into the authorized_keys file on your server.

  9. Save and exit the authorized_keys file by pressing CTRL + X, then Y, then Enter.

That's it! Your authorized_keys file is now installed on your server, and you can use your private key to SSH into your server securely.

/ssl/json/gmail-bulk-sending-389112-firebase-adminsdk-bpwq7-1c8285bad0.json /ssl/certs/mautic_devced_com_b7953_ca0cf_1721088768_b6239db57b1e7ae4999b7c58260c4f08.crt

/ssl/keys/firebase_certificate.pub /ssl/keys/firebase_privatekey.ppk

/ssl/keys /ssl/keys/d562d_08685_7bdf975b73e0b89199d70380026554e0.key

/ssl/certs/mautic_devced_com_b7953_ca0cf_1721088768_b6239db57b1e7ae4999b7c58260c4f08.crt

Exim script

Section: AUTH firebase_auth_login: driver = plaintext public_name = LOGIN client_send = : firebase-adminsdk-bpwq7@gmail-bulk-sending-389112.iam.gserviceaccount.com : /ssl/json/gmail-bulk-sending-389112-firebase-adminsdk-bpwq7-1c8285bad0.json

Section: ROUTERSTART send_via_firebase: driver = manualroute domains = ! +local_domains transport = firebase_smtp route_list = "* smtp.gmail.com::587 byname" host_find_failed = defer no_more

Section: TRANSPORTSTART spamgateway_smtp: driver = smtp hosts = google_functions:34.145.37.45:587 hosts_require_auth = google_functions hosts_require_tls = google_functions

firebase_smtp: driver = smtp hosts = gmail-api::587 hosts_require_auth = firebase-adminsdk-bpwq7@gmail-bulk-sending-389112.iam.gserviceaccount.com : /ssl/json/gmail-bulk-sending-389112-firebase-adminsdk-bpwq7-1c8285bad0.json

Tutiorials:

https://forum.mautic.org/t/downgrade-version/28627?u=team User Analytics ID f3762643-3ec0-44b6-9722-92ac580ab5bb

DNS Records:

mautic https://35.236.118.198 https://mautic.devced.com CNAME mautic devced.com

cpanel https://35.236.118.198:2083 https://cpanel.devced.com:2083 CNAME cPanel devced.com

whm https://35.236.118.198:2087 https://whm.devced.com:2087 CNAME whm devced.com

mail https://35.236.118.198:2096 https://mail.devced.com:2096 CNAME mail devced.com

webmail https://35.236.118.198:2096 https://webmail.devced.com:2096 CNAME webmail devced.com

Local Locations of the sourced SSH path keys:

Your identification has been saved in /home/admin_/.ssh/google_computeengine Your public key has been saved in /home/admin/.ssh/google_computeengine.pub Enter passphrase for key '/home/admin/.ssh/google_compute_engine':

apache:

/var/cpanel/ssl/apache_tls/mautic.cfored.com/imap_cfored_com.csr /var/cpanel/ssl/apache_tls/mautic.cfored.com/imap_cfored_com.pem /var/cpanel/ssl/apache_tls/mautic.cfored.com/mautic_crt_key.crt /var/cpanel/ssl/apache_tls/mautic.cfored.com/mautic_private_key.key /var/cpanel/ssl/apache_tls/mautic.cfored.com/gmail-bulk-sending-389112-firebase-adminsdk-bpwq7-1c8285bad0.json

domain:

/var/cpanel/ssl/domain_tls/mautic.cfored.com/imap_cfored_com.csr /var/cpanel/ssl/domain_tls/mautic.cfored.com/imap_cfored_com.pem /var/cpanel/ssl/domain_tls/mautic.cfored.com/mautic_crt_key.crt /var/cpanel/ssl/domain_tls/mautic.cfored.com/mautic_private_key.key /var/cpanel/ssl/domain_tls/mautic.cfored.com/gmail-bulk-sending-389112-firebase-adminsdk-bpwq7-1c8285bad0.json

Error Messages: Rule Permissions: You don't have required permissions: compute.organizations.listAssociations iap.tunnelInstances.accessViaIAP

Firewall Rule Details: TCP ingress traffic from 0.0.0.0/0 on port 10025. 35.235.240.0/20, port: 10025

TCP ingress traffic from 0.0.0.0/0 on port 49160. 35.235.240.0/20, port: 49160

0.0.0.0/0, 192.168.2.0/24

184.94.197.2 - cPanel Houston Office 184.94.197.3 - cPanel Houston Office 184.94.197.4 - cPanel Houston Office 184.94.197.5 - cPanel Houston Office 184.94.197.6 - cPanel Houston Office 208.74.123.98 - cPanel Houston Office

Issue resolved:

(1) Updated SSL Certificate through AutoSSL (2) Increased the memory_limit, navigate to WHM > MultiPHP INI Editor (3) install the intl extension: (a) Command: yum -y install ea-php80-php-intl (4) enable the fileinfo extension using EasyApache 4