Ensure that you have the necessary packages installed. You will need the google-auth, google-auth-oauthlib, and google-auth-httplib2 packages. You can install them using pip:
Step 2: Create a Google Cloud Service Account
If you haven't already, create a Google Cloud Service Account and download the JSON key file. Make sure it has the necessary permissions to access the Gmail API.
Step 3: Instructions on how to install a key file with JSON extension on Google Firebase:
Go to the Firebase console at console.firebase.google.com and select your project.
Click on the gear icon in the top left corner and select "Project Settings".
Click on the "Service Accounts" tab, which can be found at the bottom of the left-hand menu.
Click on the "Generate New Private Key" button to download your key file, which will be in JSON format.
Save the key file in a secure location on your server, and make note of the file path.
Step 4: Configure EXIM
Open your EXIM configuration file and locate the relevant sections. Here's a sample configuration:
Replace the following placeholders with the appropriate values:
<YOUR_SERVICE_ACCOUNT_EMAIL>: Replace with the email address of your Google service account:
firebase-adminsdk-bpwq7@gmail-bulk-sending-389112.iam.gserviceaccount.com
<PATH_TO_KEY_FILE_WITH_JSON_EXT>: Replace with the path to your Google service account JSON key file:
/var/cpanel/ssl/domain_tls/mautic.cfored.com/gmail-bulk-sending-389112-firebase-adminsdk-bpwq7-1c8285bad0.json
<YOUR_SERVER_IP>: Replace with the IP address of your server where the spam gateway is hosted.
IP Address: 34.145.37.45:587
/path/to/tls_certificate.crt: Replace with the actual path to your TLS certificate: /var/cpanel/ssl/domain_tls/mautic.cfored.com/mautic_crt_key.crt
/path/to/tls_private_key.key: Replace with the actual path to your TLS private key:
/var/cpanel/ssl/domain_tls/mautic.cfored.com/mautic_private_key.key
/path/to/verify_certificates.pem: Replace with the actual path to your certificate verification file.
/var/cpanel/ssl/domain_tls/mautic.cfored.com/imap_cfored_com.pem
<YOUR_EMAIL_ADDRESS>: Replace with your email address.
Email address: team@cfored.com
<PATH_TO_KEY_FILE_WITH_JSON_EXT>: Replace with extension local path:
/var/cpanel/ssl/domain_tls/mautic.cfored.com/gmail-bulk-sending-389112-firebase-adminsdk-bpwq7-1c8285bad0.json
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Google Firebase's Outbound SMTP relay service:
EXIM Parameters
Ensure that you have the necessary packages installed. You will need the
google-auth
,google-auth-oauthlib
, andgoogle-auth-httplib2
packages. You can install them using pip:Step 2: Create a Google Cloud Service Account If you haven't already, create a Google Cloud Service Account and download the JSON key file. Make sure it has the necessary permissions to access the Gmail API.
Step 3: Instructions on how to install a key file with JSON extension on Google Firebase:
Go to the Firebase console at console.firebase.google.com and select your project. Click on the gear icon in the top left corner and select "Project Settings". Click on the "Service Accounts" tab, which can be found at the bottom of the left-hand menu. Click on the "Generate New Private Key" button to download your key file, which will be in JSON format. Save the key file in a secure location on your server, and make note of the file path.
Step 4: Configure EXIM Open your EXIM configuration file and locate the relevant sections. Here's a sample configuration:
Replace the following placeholders with the appropriate values:
<YOUR_SERVICE_ACCOUNT_EMAIL>
: Replace with the email address of your Google service account:firebase-adminsdk-bpwq7@gmail-bulk-sending-389112.iam.gserviceaccount.com
<PATH_TO_KEY_FILE_WITH_JSON_EXT>
: Replace with the path to your Google service account JSON key file:/var/cpanel/ssl/domain_tls/mautic.cfored.com/gmail-bulk-sending-389112-firebase-adminsdk-bpwq7-1c8285bad0.json
<YOUR_SERVER_IP>
: Replace with the IP address of your server where the spam gateway is hosted.IP Address: 34.145.37.45:587
/path/to/tls_certificate.crt
: Replace with the actual path to your TLS certificate:/var/cpanel/ssl/domain_tls/mautic.cfored.com/mautic_crt_key.crt
/path/to/tls_private_key.key
: Replace with the actual path to your TLS private key:/var/cpanel/ssl/domain_tls/mautic.cfored.com/mautic_private_key.key
/path/to/verify_certificates.pem
: Replace with the actual path to your certificate verification file./var/cpanel/ssl/domain_tls/mautic.cfored.com/imap_cfored_com.pem
<YOUR_EMAIL_ADDRESS>
: Replace with your email address.Email address: team@cfored.com
<PATH_TO_KEY_FILE_WITH_JSON_EXT>
: Replace with extension local path:/var/cpanel/ssl/domain_tls/mautic.cfored.com/gmail-bulk-sending-389112-firebase-adminsdk-bpwq7-1c8285bad0.json
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Google Firebase's Outbound SMTP relay service:
Section: AUTH
firebase_auth_login: driver = plaintext public_name = LOGIN client_send = : firebase-adminsdk-bpwq7@gmail-bulk-sending-389112.iam.gserviceaccount.com : /var/cpanel/ssl/domain_tls/mautic.cfored.com/gmail-bulk-sending-389112-firebase-adminsdk-bpwq7-1c8285bad0.json
Section: ROUTERSTART
send_via_firebase: driver = manualroute domains = ! +local_domains transport = firebase_smtp route_list = "* gmail-api::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
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ DuoCircle's Outbound SMTP relay service:
Section: AUTH
spamgateway_login: driver = plaintext public_name = LOGIN client_send = : CEDU : 6k1MnF5hOz!
Section: ROUTERSTART
send_via_spamgateway: driver = manualroute domains = ! +local_domains transport = spamgateway_smtp route_list = "* outbound.mailhop.org::10025 byname" host_find_failed = defer no_more
Section: TRANSPORTSTART
spamgateway_smtp: driver = smtp hosts = outbound.mailhop.org hosts_require_auth = outbound.mailhop.org
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++