Firewall blocks Mailgun SMTP server

kaiser.hustler

New member
Joined
Nov 22, 2024
Messages
3
Happy Holidays, everyone!

I'm using a self-hosted CRM (Perfex) with the latest version of DirectAdmin. I'm trying to configure the SMTP server smtp.mailgun.org, but I can't seem to get it working properly.

When I disabled SMTP_BLOCK in the firewall settings, everything worked fine. However, I’ve read that keeping SMTP_BLOCK off is insecure, so I turned it back on. Now, I'm back to square 1.

I’ve tried adding smtp.mailgun.org to the SMTP_ALLOWUSER and SMTP_ALLOWGROUP lists, but it didn’t work. I also tried variations like mailgun.org and just mailgun, but nothing seems to help. To be honest, I’m not even sure if this setting is the right way to fix the issue.

Could someone point me in the right direction? I’d really appreciate any guidance.

Thanks in advance!
 
However, I’ve read that keeping SMTP_BLOCK off is insecure
That depends on what you're using or the way you are sending mail.

You in fact require to set it to off if you use an external mail service.

Also you might want to set CSF=no in custombuild in GUI or /usr/local/directadmin/custombuild/options.conf file to prevent DA setting it to 1 again on an update.
 
Happy Holidays, everyone!

I'm using a self-hosted CRM (Perfex) with the latest version of DirectAdmin. I'm trying to configure the SMTP server smtp.mailgun.org, but I can't seem to get it working properly.

When I disabled SMTP_BLOCK in the firewall settings, everything worked fine. However, I’ve read that keeping SMTP_BLOCK off is insecure, so I turned it back on. Now, I'm back to square 1.

I’ve tried adding smtp.mailgun.org to the SMTP_ALLOWUSER and SMTP_ALLOWGROUP lists, but it didn’t work. I also tried variations like mailgun.org and just mailgun, but nothing seems to help. To be honest, I’m not even sure if this setting is the right way to fix the issue.

Could someone point me in the right direction? I’d really appreciate any guidance.

Thanks in advance!
HI kaiser.hustler;

try this.
set SMTP_BLOCK = "1"
use defaul Setting
SMTP_ALLOWGROUP = "mail,mailman"

and SMTP_ALLOWUSER just add the username from directadmin username you want to use .

you can find da-username DA panel --> Show All Users -- get left side username
add the da-username

SMTP_ALLOWUSER = "da-username"

If you want to add more da-usernames

SMTP_ALLOWUSER = "da-username1,da-username2,da-username3"

Restart csf whit commands
csf -r
service lfd restart

i Hope this help
 
Back
Top