DevCEDTeam / CED

0 stars 0 forks source link

EXIM Parameters #65

Open DevCEDTeam opened 1 year ago

DevCEDTeam commented 1 year ago

EXIM Parameters

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:

pip install google-auth google-auth-oauthlib google-auth-httplib2

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:

# Section: AUTH
firebase_auth_login:
  driver = plaintext
  public_name = LOGIN
  client_send = : <YOUR_SERVICE_ACCOUNT_EMAIL> : <PATH_TO_KEY_FILE_WITH_JSON_EXT>

# 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 1
spamgateway_smtp:
  driver = smtp
  hosts = google_functions:<YOUR_SERVER_IP>:587
  hosts_require_auth = google_functions
  hosts_require_tls = google_functions

Replace the following placeholders with the appropriate values:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++