etc/exim.conf.local000064400000005161152462521470010234 0ustar00%RETRYBLOCK% +secondarymx * F,4h,5m; G,16h,1h,1.5; F,4d,8h * * F,2h,15m; G,16h,1h,1.5; F,4d,8h @AUTH@ @BEGINACL@ @CONFIG@ @DIRECTOREND@ @DIRECTORMIDDLE@ @DIRECTORSTART@ @ENDACL@ @POSTMAILCOUNT@ smarthost_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_smart_dkim route_list = $domain 5817.smtp.antispamcloud.com::587 smarthost_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_smart_regular route_list = $domain 5817.smtp.antispamcloud.com::587 @PREDOTFORWARD@ @PREFILTER@ @PRELOCALUSER@ @PRENOALIASDISCARD@ @PREROUTERS@ @PREVALIASNOSTAR@ @PREVALIASSTAR@ @PREVIRTUALUSER@ @RETRYEND@ @RETRYSTART@ @REWRITE@ @ROUTEREND@ @ROUTERMIDDLE@ @ROUTERSTART@ @TRANSPORTEND@ @TRANSPORTMIDDLE@ @TRANSPORTSTART@ remote_smtp_smart_dkim: driver = smtp message_linelength_limit = 1000000 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 = ${lc::${if eq {${perl{get_message_sender_domain}}}{-system-}{$sender_address_domain}{${perl{get_message_sender_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_smart_regular: driver = smtp message_linelength_limit = 1000000 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}}}}