Search results

  1. kristian

    Restore is successful even though subject says error

    Hi folks. When doing an admin-level restore of an account from another server, the restore seems to be successful, but the following message shows up in the Message System: Subject: An error occurred during the restore. Domain <redacted domain> CreatedDomain Created Successfully User...
  2. kristian

    Deleting user with CMD_API_SELECT_USERS sometimes has empty result

    In one of my scripts I delete users using the CMD_API_SELECT_USERS call (using the httpsocket.php library). Recently I've encountered a few situations where the deletion successfully completes with no special information in any DirectAdmin logs, but the result is empty. Here's the function that...
  3. kristian

    PHP 5.6 with htscanner=yes fails compilation on Debian 10

    I'm not sure if PHP 5.6, htscanner=yes and Debian 10 is the only combo this fails on, but this is what I'm trying right now. # grep ^php._release options.conf php1_release=7.4 php2_release=8.0 php3_release=5.6 php4_release=no # grep ^htsc php_extensions.conf htscanner=yes A fresh DA setup...
  4. kristian

    Solved Backup/restore of independent DNS zones only?

    On a server we have a number of DNS zones, mainly reverse zones. We would like to move these zones to a new server, keeping all entries, and DNSSEC information. They are not connected to any user account, so the standard "Admin Backup/Transfer" doesn't seem to support them. Is there another way...
  5. kristian

    Backup all incoming mail using shadow_transport in Exim

    Sometimes a user deletes a mail from their mailbox before it has been backed up over night, leaving no way to recover it. In order to be able to recover those mails, the use of shadow_transport in Exim can be used. This will essentially deliver a copy of an incoming mail to a separate backup...
  6. kristian

    Require STARTTLS and AUTH on ports 465 and 587?

    From what I understand, both 465 and 587 are purely used by clients for submission. Because of that, it would make sense to always require authentication. With authentication, it would make sense to also always require an encrypted connection. For 465 this is taken care of by...
  7. kristian

    Structure of versions_json

    Hi! I'm looking to integrate the output of ./build versions_json into a script to perform some automatic handling and reporting of available updates. At first glance, the structure looks fairly simple, e.g. # ./build versions_json { "exim_conf": { "name": "exim.conf"...
  8. kristian

    Get/set CUSTOM tokens with CMD_API_CUSTOM_HTTPD

    As part of a user migration script, I need to be able to add some custom httpd config into the CUSTOM tokens, more specifically CUSTOM2. I can't seem to find any documentation on how this could be done. I ran directadmin in debug mode while updating a CUSTOM2 value, and I found out I can POST...
  9. kristian

    Disable HTTP/2 for a specific domain

    Hi, A customer was wondering why file uploads using HTTP POST was slow (e.g. compared with SFTP which can fill up the link easily). After much investigation, I found out that an upload over HTTP/2 is much slower than over HTTP/1.1 when link speeds are high. This blog post by Cloudflare explains...
  10. kristian

    Fresh install leaves "Send a message when a backup has finished" disabled

    Hi, I just did a fresh install today, and noticed that after it was done, the file /usr/local/directadmin/data/admin/backup.conf did not exist. When going into "Backup/Restore Settings" (as admin), the checkbox for "Send a message when a backup has finished" is not ticked. When entering this...
  11. kristian

    FreeType update recommends PHP rebuild, should it be auto rebuilt?

    Hi! Recently there was an update of the FreeType library. At the end of the FreeType build, the following text appears: It is recommended to run "./build php n" after FreeType update. I assume this is to have PHP built with the latest version of FreeType. How important is this? What risks are...
  12. kristian

    Add subaddressing support to Exim/Dovecot

    Hi, I've been looking into how I can add mail subaddressing support working (e.g. myuser+blabla@mydomain.com). It seems straight forward in itself, and I see that the /etc/exim.conf file has several occurences of this line: .include_if_exists /etc/exim/local_part_suffix.conf I suspect that...
  13. kristian

    Solved Bug with PHP-GMP and PHP 5.6?

    Hi, I have a server with PHP 7.3 and 5.6 installed: # grep ^php[12]_release /usr/local/directadmin/custombuild/options.conf php1_release=7.3 php2_release=5.6 I also have gmp enabled: # grep ^gmp /usr/local/directadmin/custombuild/php_extensions.conf gmp=yes When I try to run ./build...
  14. kristian

    Behaviour when passing 'n' as 2nd argument and make fails

    Hi! I have a little request that should help detect build failures during automated runs, e.g. when doing ./build update_versions n (in my case through ansible). For pretty much all builds, there is a section such as this: if [ $? -ne 0 ]; then if [ ${USER_INPUT} -eq 1 ]; then...
  15. kristian

    CVE-2019-15846: Exim - local or remote attacker can execute programs with root privs

    A new version (4.92.2) of Exim with a critical bugfix is due to be released tomorrow, 2019-09-06 10:00 UTC. Hopefully it will be available for update in custombuild shortly after? :) More info: https://seclists.org/oss-sec/2019/q3/192
  16. kristian

    Majordomo digest fails to locate config_parse.pl

    Good evening! Majordomo is bouncing mail that, from what I can tell, are sent to digest addresses. This is the bounce message: This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a...
  17. kristian

    Is there a way to lock mail accounts for maintenance?

    Hi, Sometimes when we're moving accounts between DA servers, the admin backup/restores takes a long time, because the account contains lots of data. The majority of data is generally either inside domains/ somewhere, or inside imap/. In order to speed up the backup/restore and minimize the...
  18. kristian

    Reload of named.service fails, and multiple named processes on Debian 9

    Greetings! I am experiencing a problem with bind not reloading properly on one of our servers. On an identical server, it is working as it should, but it has some strange issues as well. I can't figure out why they are different, or why one of them is failing to reload bind. Both servers have...
  19. kristian

    Is there a CMD_API_ADMIN_SETTINGS?

    Hi, In my automation attempts, I am in need of changing some values in the CMD_ADMIN_SETTINGS page, but it doesn't look like a CMD_API_ADMIN_SETTINGS endpoint exists. When I try to access it in a browser while being logged in as 'admin', I get this message...
  20. kristian

    Values for creating reseller packages

    Hi, I'm looking at https://www.directadmin.com/features.php?id=583 and want to create reseller packages using the API. I am unable to find out where exactly "skins" are, which will tell me which values I can pass: A link to "skins" in that documentation would be very useful. Could someone...
Top