Having trouble configuring spamexperts on Directadmin with exim smart host

Steamon

Verified User
Joined
May 25, 2023
Messages
6
Location
The Netherlands
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.
 
Last edited:
Thanks rechecking things always help. I changed the SPF with the -all and ensured that filter thing said enabled but it did not made any change.

I did added:
delivery.antispamcloud.com
*.antispamcloud.com

/etc/virtual/whitelist_hosts and /etc/virtual/whitelist_domains

Now If I send a e-mail to [email protected] I get too many "recieved headers" suspected mail loop. Closer but not solved. :)
 
This might help?
Tried that but no difference in the looping when recieving e-mail. Also tried commenting the router out and tried domain verification. I do keep getting to many headers 550 and that incoming marks everything as spam. Even when I send it from a gmail or different hosting to [email protected]

For incoming spamexperts I tried changing the destination to mail.088-cloud.net no effect. I mean it works it can see it but it tries to deliver it 10 x completes it then gets into a loop. Without delivering a e-mail in the inbox and giving a failure message back to the sender.

https://documentation.n-able.com/spamexperts/userguide/Content/B_Admin Level/exim-dir-conf.htm I have tried adding this to the configuration and exim if that maybe helps but no effect.

Is somewhere spamexperts not getting authenticated on the directadmin to cause this when using spamexperts mx? I am purely talking about incoming e-mail. As I first want to get that working before testing outgoing further as that works technically.

I do see a other topic on the forum that also has 550 problems but with a other provider.

If anyone is using spamexperts incoming without the directadmin plugin and has it working please share your configuration here so I could take a look thanks.
 
Is that possible for you to login the GUI and check the destination for your domain? When you tested with incoming email, have you seen any connection from Spamexperts server? The DA plugin doesn't effect how emails go in or out.
 
Is that possible for you to login the GUI and check the destination for your domain? When you tested with incoming email, have you seen any connection from Spamexperts server? The DA plugin doesn't effect how emails go in or out.I
I have included what I see on the incoming logs:

2024-04-10 21:36:50 1rudkY-00000001dSt-0zOc <= [email protected] H=out8.antispamcloud.com [46.165.223.16] P=esmtps X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=no S=5122 DKIM=gmail.com id=CAC52E-YGfS7ePLT62UKSBkRxWY2Womte2Sb-a6NSzhXTM4-bwQ@mail.gmail.com T="dit is een test" from <[email protected]> for [email protected]
2024-04-10 21:36:55 1rudkY-00000001dSt-0zOc => [email protected] F=<[email protected]> R=spamexperts_smarthost_router T=spamexperts_smarthost_transport S=5225 H=smtp.antispamcloud.com [2001:978:2:7::162:101] X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=yes K C="250- 5225 byte chunk, total 5225\\n250 OK id=1rudkZ-00DeOk-CQ"
2024-04-10 21:36:55 1rudkY-00000001dSt-0zOc Completed
2024-04-10 21:37:03 1rudkk-00000001dTI-47dE <= [email protected] H=out7.antispamcloud.com [94.75.244.176] P=esmtps X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=no S=9534 DKIM=gmail.com id=CAC52E-YGfS7ePLT62UKSBkRxWY2Womte2Sb-a6NSzhXTM4-bwQ@mail.gmail.com T="dit is een test" from <[email protected]> for [email protected]
2024-04-10 21:37:08 1rudkk-00000001dTI-47dE => [email protected] F=<[email protected]> R=spamexperts_smarthost_router T=spamexperts_smarthost_transport S=9705 H=smtp.antispamcloud.com [2001:978:2:2c::137:101] X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=yes K C="250- 1514 byte chunk, total 9705\\n250 OK id=1rudkl-00DemY-QV"
2024-04-10 21:37:08 1rudkk-00000001dTI-47dE Completed
2024-04-10 21:37:16 1rudky-00000001dTS-1Sjo <= [email protected] H=out8.antispamcloud.com [46.165.223.16] P=esmtps X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=no S=13946 DKIM=gmail.com id=CAC52E-YGfS7ePLT62UKSBkRxWY2Womte2Sb-a6NSzhXTM4-bwQ@mail.gmail.com T="dit is een test" from <[email protected]> for [email protected]
2024-04-10 21:37:21 1rudky-00000001dTS-1Sjo => [email protected] F=<[email protected]> R=spamexperts_smarthost_router T=spamexperts_smarthost_transport S=14185 H=smtp.antispamcloud.com [2001:978:2:7::162:101] X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=yes K C="250- 5994 byte chunk, total 14185\\n250 OK id=1rudky-00Gdfh-Ug"
2024-04-10 21:37:21 1rudky-00000001dTS-1Sjo Completed
2024-04-10 21:37:30 1rudlC-00000001dTW-2Kcz <= [email protected] H=out9.antispamcloud.com [199.115.117.7] P=esmtps X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=no S=18358 DKIM=gmail.com id=CAC52E-YGfS7ePLT62UKSBkRxWY2Womte2Sb-a6NSzhXTM4-bwQ@mail.gmail.com T="dit is een test" from <[email protected]> for [email protected]
2024-04-10 21:37:36 1rudlC-00000001dTW-2Kcz => [email protected] F=<[email protected]> R=spamexperts_smarthost_router T=spamexperts_smarthost_transport S=18665 H=smtp.antispamcloud.com [2001:978:2:19::e:101] X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=yes K C="250- 2283 byte chunk, total 18665\\n250 OK id=1rudlD-002JDL-TV"
2024-04-10 21:37:36 1rudlC-00000001dTW-2Kcz Completed
2024-04-10 21:37:42 1rudlO-00000001dTb-0rap <= [email protected] H=out7.antispamcloud.com [94.75.244.176] P=esmtps X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=no S=22770 DKIM=gmail.com id=CAC52E-YGfS7ePLT62UKSBkRxWY2Womte2Sb-a6NSzhXTM4-bwQ@mail.gmail.com T="dit is een test" from <[email protected]> for [email protected]
2024-04-10 21:37:47 1rudlO-00000001dTb-0rap => [email protected] F=<[email protected]> R=spamexperts_smarthost_router T=spamexperts_smarthost_transport S=23145 H=smtp.antispamcloud.com [2001:978:2:2c::137:101] X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=yes K C="250- 6762 byte chunk, total 23145\\n250 OK id=1rudlP-00DgC0-2v"
2024-04-10 21:37:47 1rudlO-00000001dTb-0rap Completed
2024-04-10 21:37:54 1rudla-00000001dU3-1RPO <= [email protected] H=out9.antispamcloud.com [199.115.117.7] P=esmtps X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=no S=27182 DKIM=gmail.com id=CAC52E-YGfS7ePLT62UKSBkRxWY2Womte2Sb-a6NSzhXTM4-bwQ@mail.gmail.com T="dit is een test" from <[email protected]> for [email protected]
2024-04-10 21:37:59 1rudla-00000001dU3-1RPO => [email protected] F=<[email protected]> R=spamexperts_smarthost_router T=spamexperts_smarthost_transport S=27625 H=smtp.antispamcloud.com [2001:978:2:7::162:101] X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=yes K C="250- 3052 byte chunk, total 27625\\n250 OK id=1rudlb-002JuL-C7"
2024-04-10 21:37:59 1rudla-00000001dU3-1RPO Completed
2024-04-10 21:38:09 1rudlp-00000001dUP-1nPU <= [email protected] H=out9.antispamcloud.com [199.115.117.7] P=esmtps X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=no S=31594 DKIM=gmail.com id=CAC52E-YGfS7ePLT62UKSBkRxWY2Womte2Sb-a6NSzhXTM4-bwQ@mail.gmail.com T="dit is een test" from <[email protected]> for [email protected]
2024-04-10 21:38:15 1rudlp-00000001dUP-1nPU => [email protected] F=<[email protected]> R=spamexperts_smarthost_router T=spamexperts_smarthost_transport S=32105 H=smtp.antispamcloud.com [2001:978:2:19::e:101] X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=yes K C="250- 7532 byte chunk, total 32105\\n250 OK id=1rudlr-0045K1-1A"
2024-04-10 21:38:15 1rudlp-00000001dUP-1nPU Completed
2024-04-10 21:38:24 1rudm3-00000001dUV-47JR <= [email protected] H=out8.antispamcloud.com [46.165.223.16] P=esmtps X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=no S=36006 DKIM=gmail.com id=CAC52E-YGfS7ePLT62UKSBkRxWY2Womte2Sb-a6NSzhXTM4-bwQ@mail.gmail.com T="dit is een test" from <[email protected]> for [email protected]
2024-04-10 21:38:29 1rudm3-00000001dUV-47JR => [email protected] F=<[email protected]> R=spamexperts_smarthost_router T=spamexperts_smarthost_transport S=36585 H=smtp.antispamcloud.com [2001:978:2:7::162:101] X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=yes K C="250- 3821 byte chunk, total 36585\\n250 OK id=1rudm4-00Dha0-Rp"
2024-04-10 21:38:29 1rudm3-00000001dUV-47JR Completed
2024-04-10 21:38:37 1rudmH-00000001dUa-1yHf <= [email protected] H=out8.antispamcloud.com [46.165.223.16] P=esmtps X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=no S=40418 DKIM=gmail.com id=CAC52E-YGfS7ePLT62UKSBkRxWY2Womte2Sb-a6NSzhXTM4-bwQ@mail.gmail.com T="dit is een test" from <[email protected]> for [email protected]
2024-04-10 21:38:42 1rudmH-00000001dUa-1yHf => [email protected] F=<[email protected]> R=spamexperts_smarthost_router T=spamexperts_smarthost_transport S=41065 H=smtp.antispamcloud.com [2001:978:2:19::e:101] X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=yes K C="250- 246 byte chunk, total 41065\\n250 OK id=1rudmI-002KlK-E4"
2024-04-10 21:38:42 1rudmH-00000001dUa-1yHf Completed
2024-04-10 21:38:49 1rudmT-00000001dUe-10nL <= [email protected] H=out8.antispamcloud.com [46.165.223.16] P=esmtps X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=no S=44830 DKIM=gmail.com id=CAC52E-YGfS7ePLT62UKSBkRxWY2Womte2Sb-a6NSzhXTM4-bwQ@mail.gmail.com T="dit is een test" from <[email protected]> for [email protected]
2024-04-10 21:38:54 1rudmT-00000001dUe-10nL => [email protected] F=<[email protected]> R=spamexperts_smarthost_router T=spamexperts_smarthost_transport S=45545 H=smtp.antispamcloud.com [2001:978:2:7::162:101] X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=yes K C="250- 4590 byte chunk, total 45545\\n250 OK id=1rudmU-00Di9s-2o"
2024-04-10 21:38:54 1rudmT-00000001dUe-10nL Completed

This happends 10 x and then it won't pop up in the inbox and on gmail say 550 or other type of mailbox I try. Sometimes permanent error. Spamexperts can see the e-mail in the gui there but marks it as spam. Everything does not matter what I send.
 
Back
Top