CpanelSpam Expert

Relay Exim Cpanel Shared Hosting to SpamExpert

103.25.222.110
se01-panel.idcloudhosting.com
49.50.10.2
se01-panel-out5.idcloudhosting.com
49.50.9.2
se01-panel-out1.idcloudhosting.com
103.11.74.132
se01-panel-out6.idcloudhosting.com
103.25.222.129
se01-panel-out3.idcloudhosting.com
103.25.223.100
se01-panel-out4.idcloudhosting.com
103.25.222.111
spfilter-1.idcloudhosting.com
103.25.223.101
spfilter1-out4.se01.idcloudhosting.com
49.50.10.3
spfilter1-out5.se01.idcloudhosting.com
49.50.9.3
spfilter1-out1.se01.idcloudhosting.com
103.11.75.25
spfilter1-out3.se01.idcloudhosting.com
103.11.74.133
spfilter1-out6.se01.idcloudhosting.com
103.229.73.158
spfilter1-out2.se01.idcloudhosting.com
103.229.73.156
spfilter-2.idcloudhosting.com
103.25.223.102
spfilter2-out4.se01.idcloudhosting.com
49.50.10.4
spfilter2-out5.se01.idcloudhosting.com
49.50.9.4
spfilter2-out1.se01.idcloudhosting.com
103.11.75.24
spfilter2-out3.se01.idcloudhosting.com
103.11.74.134
spfilter2-out6.se01.idcloudhosting.com
103.25.222.112
spfilter2-out2.se01.idcloudhosting.com
103.11.75.22
spfilter-3.idcloudhosting.com
103.25.223.103
spfilter3-out4.se01.idcloudhosting.com
49.50.10.5
spfilter3-out5.se01.idcloudhosting.com
49.50.9.5
spfilter3-out1.se01.idcloudhosting.com
103.11.74.135
pfilter3-out6.se01.idcloudhosting.com
103.229.73.159
spfilter3-out2.se01.idcloudhosting.com
103.25.222.113
spfilter3-out3.se01.idcloudhosting.com

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

1. Insert the file as mentioned below,
a. /etc/trustedmailhosts
b. /etc/exim.conf.local

2. Run “/scripts/buildeximconf”
3. Test mail.

# vi /etc/trustedmailhosts
103.25.222.110
49.50.10.2
49.50.9.2
103.11.74.132
103.25.222.129
103.25.223.100
103.25.222.111
103.25.223.101
49.50.10.3
49.50.9.3
103.11.75.25
103.11.74.133
103.229.73.158
103.229.73.156
103.229.73.156
103.25.223.102
49.50.10.4
103.11.75.24
103.11.74.134
103.25.222.112
103.11.75.22
103.25.223.103
49.50.10.5
49.50.9.5
103.11.74.135
103.229.73.159
103.25.222.113
vi /etc/exim.conf.local
@AUTH@

@BEGINACL@

@CONFIG@
auto_thaw = 3d
ignore_bounce_errors_after = 3d
log_selector = +address_rewrite +all_parents +arguments +connection_reject +delay_delivery +delivery_size +dnslist_defer +incoming_interface +incoming_port +lost_incoming_connection +queue_run +received_recipients +received_sender +retry_defer +sender_on_delivery +size_reject +skip_delivery +smtp_confirmation +smtp_connection +smtp_protocol_error +smtp_syntax_error +subject +tls_cipher +tls_peerdn
message_size_limit = 50M
queue_list_requires_admin = false
recipients_max = 300
recipients_max_reject = true
return_size_limit = 1M
timeout_frozen_after = 1d

@DIRECTOREND@

@DIRECTORMIDDLE@

@DIRECTORSTART@

@ENDACL@

@POSTMAILCOUNT@
spamexperts_dkim:
  driver = manualroute
  domains = !+local_domains
  require_files = "+/var/cpanel/domain_keys/private/${sender_address_domain}"
  # Exclude null sender messages from relaying via the smarthost
  condition = ${if or {{!eq{$sender_address}{}} {!eq{$sender_host_address}{}}}}
  transport = remote_smtp_spamexperts_dkim
  route_list = $domain sf.se01.idcloudhosting.com::587

spamexperts_regular:
  driver = manualroute
  domains = !+local_domains
  # Exclude null sender messages from relaying via the smarthost
  condition = ${if or {{!eq{$sender_address}{}} {!eq{$sender_host_address}{}}}}
  transport = remote_smtp_spamexperts_regular
  route_list = $domain sf.se01.idcloudhosting.com::587

@PREDOTFORWARD@

@PREFILTER@

@PRELOCALUSER@

@PRENOALIASDISCARD@

@PREROUTERS@

@PREVALIASNOSTAR@

@PREVALIASSTAR@

@PREVIRTUALUSER@

@RETRYEND@

@RETRYSTART@

@REWRITE@

@ROUTEREND@

@ROUTERMIDDLE@

@ROUTERSTART@

@TRANSPORTEND@

@TRANSPORTMIDDLE@

@TRANSPORTSTART@
remote_smtp_spamexperts_dkim:
  driver = smtp
  hosts_require_tls = *
  interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch*{/etc/mailips}{$value}{}}}{}}
  helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch*{/etc/mailhelo}{$value}{$primary_hostname}}}{$primary_hostname}}
  dkim_domain = $sender_address_domain
  dkim_selector = default
  dkim_private_key = "/var/cpanel/domain_keys/private/${dkim_domain}"
  dkim_canon = relaxed
  headers_add = X-AuthUser: ${if match {$authenticated_id}{.*@.*}\
 {$authenticated_id} {${if match {$authenticated_id}{.+}\
 {$authenticated_id@$primary_hostname}{$authenticated_id}}}}
  # Uncomment the line below in case you use a login for authentication
  #hosts_require_auth = *

remote_smtp_spamexperts_regular:
  driver = smtp
  hosts_require_tls = *
  interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch*{/etc/mailips}{$value}{}}}{}}
  helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch*{/etc/mailhelo}{$value}{$primary_hostname}}}{$primary_hostname}}
  headers_add = X-AuthUser: ${if match {$authenticated_id}{.*@.*}\
  {$authenticated_id} {${if match {$authenticated_id}{.+}\
  {$authenticated_id@$primary_hostname}{$authenticated_id}}}}
 # Uncomment the line below in case you use a login for authentication
 #hosts_require_auth = *

Leave a Reply

Your email address will not be published. Required fields are marked *