Ways to automate the e-mail-forwarder management in Direct Admin

s_m_s

New member
Joined
Sep 26, 2022
Messages
2
Hey folks,

this is Stefan from Germany,


I have access to my Direct Admin panel over my webhosting provider for a managed webhosting tier.

I've been searching for a solution for the following, and wonder if there is an easy solution I could propose to my webhosting provider, as I've asked but they couldn't easily help me with my issue.

I am looking for a way to automate the creation and update process of email forwarders without the need to use the Direct Admin panel manually to enter or update all the data.

As I have no access to the API, and my webhosting provider cannot program this for me or find a solution for a reasonable fee,

I wonder if there is an elegant or clever way or workaround to solve this issue.

Let's say I need to add 50 email forwarders each week,

is there a shell command I could use that would mimic the data entering process, perhaps by using files or filenames in a specified folder are "source" and "destination" addresses for the email forwarders and let a cronjob do the task of extracting the data and adding new forwarders and, if already present, update the existing entries?

Perhaps a big stretch, but who knows, perhaps there is a scripting guru here that knows how to do it, if this is possible at all.

Kind regards,

Stefan
 
I have access to my Direct Admin panel over my webhosting provider for a managed webhosting tier.
Hello Stefan.

This support forum is only for admin's and resellers of directadmin. Not for end users. In fact if your provider couldn't help you, they should ask for support over here.
We have totally no insight into which permissions you have, for example SSH permissions, execute permissions or whatever.

Next to that it's managed webhosting. Managed means -they- should fix things for you.

Maybey some scripting guru might know what to do, but I'm almost sure end users don't have the kind of permissions needed.
Again, your host should help you with this and ask this question here.

Point him to this, maybe he finds a way to give you certain permissions to api's.
 
This would need to access the file /etc/virtual/[domainname.xy]/aliases , which has user/group-rights: mail/mail
I doubt your provider will give you access to files with system rights as mail, or make some user rights workaround for this. It needs also a kind of special formatting inside. If its hardly needed, maybe better to rent a vserver and a small own DA license.
 
Back
Top