Steamon
Verified User
Hey I am having trouble configuring spamexperts with the directadmin. I am walking against a issue with incoming and outgoing. Just to be clear I am not using the directadmin addon for directadmin. I am using a license from openprovider. That does not have a api login. Everything is done on a brand new directadmin installation as a test to get this fully working.
For incoming filtering: I added the mx records from spamexperts. Whitelisted the ips for recieving ips in the firewall and added the delivery.antispamcloud.com to: /etc/virtual/whitelist_hosts
I unticked the use this server to handle off e-mails.
When I try to send a message to a [email protected] I get the following error back with 550 no mailbox by that name is currently available or below:
2024-04-09 16:35:36 H=out8.antispamcloud.com [] X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=no F=<> rejected RCPT <[email protected]>: We didn't send the message
If you need to check the dns records of this test domain please check 088-cloud.net
I can't get this working I am overseeing something?
For outgoing filtering: I want that it uses the smarthost method I went for the Exim Username-Based Authentication (DirectAdmin) from this guide https://documentation.n-able.com/spamexperts/userguide/Content/B_Admin Level/outgoing-filtering/exim-us-based-auth.htm
When I add this correctly to Routers / Transports / Authenticators. It works but only for 1 domain. I have servers I want to add 4-6 domains that use spamexperts but other domains might use IMAP normally.
spamexperts_smarthost_router:
driver = manualroute
condition = ${if eq{$sender_address_domain}{088-cloud.net}}
ignore_target_hosts = 127.0.0.0/8
headers_add = ${if !eq{$original_domain}{$domain}{X-Forwarded-For: $original_local_part@$original_domain}}\n\
X-AuthUser: $authenticated_id
headers_add = X-AuthUser: $authenticated_id
transport = spamexperts_smarthost_transport
route_list = $domain 683.smtp.antispamcloud.com::587
no_more
this code in the router section work exactly only for the 088-cloud.net domain. All other domains go over the local server as I want. But when I send to myself so [email protected] it starts looping now I am not certain if this is because the incoming problem? It does come into the inbox as a failed e-mail with many x-auth in the e-mail context.
I have tried different methods like putting headers add in 1 line or adding a extra check for self sending only 1x or even adding a variant that sends to self locally and externally over spamexperts:
spamexperts_smarthost_router:
driver = manualroute
domains = !+local_domains
condition = ${if and {{eq{$sender_address_domain}{088-cloud.net}} {eq{$authenticated_id}{}} {eq{$h_X-AuthUser:}{} }} {yes} {no}}
ignore_target_hosts = 127.0.0.0/8
headers_add = ${if !eq{$original_domain}{$domain}{X-Forwarded-For: $original_local_part@$original_domain}}
headers_add = X-AuthUser: $authenticated_id
transport = spamexperts_smarthost_transport
route_list = * 683.smtp.antispamcloud.com::587
no_more
This code does not work it only sends locally then. The reason why we want to use smarthost it has to do with the server ip not delivering in everyone mailbox at google / microsoft e-mails or sometimes provider rejecting e-mail.
As this is the first time for me touching exim configuration file I need a bit of help as there are not many guides for spamexperts out there.
I would like to get some tips from someone who is experienced with using outgoing spamexperts with smarthosts and how can I fix my incoming problem? I hope I can help others with this aswell. As my partner wants to use the same method.
For incoming filtering: I added the mx records from spamexperts. Whitelisted the ips for recieving ips in the firewall and added the delivery.antispamcloud.com to: /etc/virtual/whitelist_hosts
I unticked the use this server to handle off e-mails.
When I try to send a message to a [email protected] I get the following error back with 550 no mailbox by that name is currently available or below:
2024-04-09 16:35:36 H=out8.antispamcloud.com [] X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=no F=<> rejected RCPT <[email protected]>: We didn't send the message
If you need to check the dns records of this test domain please check 088-cloud.net
I can't get this working I am overseeing something?
For outgoing filtering: I want that it uses the smarthost method I went for the Exim Username-Based Authentication (DirectAdmin) from this guide https://documentation.n-able.com/spamexperts/userguide/Content/B_Admin Level/outgoing-filtering/exim-us-based-auth.htm
When I add this correctly to Routers / Transports / Authenticators. It works but only for 1 domain. I have servers I want to add 4-6 domains that use spamexperts but other domains might use IMAP normally.
spamexperts_smarthost_router:
driver = manualroute
condition = ${if eq{$sender_address_domain}{088-cloud.net}}
ignore_target_hosts = 127.0.0.0/8
headers_add = ${if !eq{$original_domain}{$domain}{X-Forwarded-For: $original_local_part@$original_domain}}\n\
X-AuthUser: $authenticated_id
headers_add = X-AuthUser: $authenticated_id
transport = spamexperts_smarthost_transport
route_list = $domain 683.smtp.antispamcloud.com::587
no_more
this code in the router section work exactly only for the 088-cloud.net domain. All other domains go over the local server as I want. But when I send to myself so [email protected] it starts looping now I am not certain if this is because the incoming problem? It does come into the inbox as a failed e-mail with many x-auth in the e-mail context.
I have tried different methods like putting headers add in 1 line or adding a extra check for self sending only 1x or even adding a variant that sends to self locally and externally over spamexperts:
spamexperts_smarthost_router:
driver = manualroute
domains = !+local_domains
condition = ${if and {{eq{$sender_address_domain}{088-cloud.net}} {eq{$authenticated_id}{}} {eq{$h_X-AuthUser:}{} }} {yes} {no}}
ignore_target_hosts = 127.0.0.0/8
headers_add = ${if !eq{$original_domain}{$domain}{X-Forwarded-For: $original_local_part@$original_domain}}
headers_add = X-AuthUser: $authenticated_id
transport = spamexperts_smarthost_transport
route_list = * 683.smtp.antispamcloud.com::587
no_more
This code does not work it only sends locally then. The reason why we want to use smarthost it has to do with the server ip not delivering in everyone mailbox at google / microsoft e-mails or sometimes provider rejecting e-mail.
As this is the first time for me touching exim configuration file I need a bit of help as there are not many guides for spamexperts out there.
I would like to get some tips from someone who is experienced with using outgoing spamexperts with smarthosts and how can I fix my incoming problem? I hope I can help others with this aswell. As my partner wants to use the same method.
Last edited: