How can I replicate CPanel email configuration scripts for Mac?

How can I replicate CPanel email configuration scripts for Mac? | Web Hosting Talk

var sidebar_align = ‘right’;
var content_container_margin = parseInt(‘350px’);
var sidebar_width = parseInt(‘330px’);

  1. How can I replicate CPanel email configuration scripts for Mac?


    One of my customers is asking me if I do have an script similar to the ones used by Cpanel for automating the configuration of MacOS and IOS email clients.

    Do you know of someting to this?

Similar Threads

  1. Replies: 9

    Last Post: 04-20-2010, 05:12 PM

  2. Replies: 5

    Last Post: 08-05-2004, 11:44 AM

  3. Replies: 6

    Last Post: 02-27-2004, 11:24 AM

  4. Replies: 1

    Last Post: 04-02-2002, 02:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

session management – configuration the evilginx with a rogue dns

Recently i’ve just found this nice tool over Github
but it has an internal DNS and only works via malicious links, like sending a link to the user.
my question is, does anyone used this tool (Evilginx) with a rogue DNS?
like first send the victims traffic to a rogue DNS (DNS poisoning – DNS hijacking & …) and use Evilginx as a transparent proxy for grabbing user sessions (session hijacking -cookie hijacking), bypassing 2FA auth and …

typoscript – TYPO3 v10: Overwrite locale from site configuration

I have a german website with locale de_DE configured in the site configuration.

On one specific page I want to have locale en_EN.

Is it possible to overwrite the locale via TypoScript or any other way?

The TypoScript setting config.locale_all has been removed in v10.

configuration – Invalid Hostname settings in Drupal 7

I’m running Drupal 7 on Pantheon and have started getting the following error message whenever I try to save content that doesn’t have my personal admin login as author:

You’re attempting to access a Pantheon site via IP address or invalid hostname. Please use a valid hostname.

I’ve found a number of related issues online:

Most of these articles reference Drupal 7, but all of the fixes are for Drupal 8.

I’m experiencing this problem in both dev and in production (though user interactions on the live site seem to be fine, thank goodness). It started a week ago, and now I’m functionally locked out from creating new content or editing most of the site. It affects all of my browsers, both of my laptops and occurs whether I’m connecting via wifi or tethering data from my phone (a separate ISP), so this isn’t a local issue.

Any ideas how to resolve this for Drupal 7?

Remove Configuration Installer (v1.8) – Drupal Answers

I’m upgrading a site from Drupal 8 to Drupal 9. One of the projects that is deprecated and incompatible with Drupal 9 is Configuration Installer

The “normal” workflow (e.g., drush pmu <module_name> doesn’t work – perhaps because this thing isn’t really a module?)
I can’t simply remove the project with composer because then drush cim fails because it expects the code to be in the base.

It is like Hotel California “You can check out any time you like
But you can never leave!”

postfix – Clarification on the configuration of a mail server

Let us assume you own a domain, Postfix / dovecot is the typical setup, to setup the domain: dovecot implements mailbox storage and does POP/IMAP(s) communication with the users email program.

Postfix on the other hand handles the communication with other mailservers, which means postfix is accepting the connection from foreign mailservers if someone sends an email to you, and it is opening the communication to the correct mailserver when you send an email from your domain.

Up until now, no “foreign” domain comes into play. Let us further assume, that you own an email-account like “” . You do not want to configure a seperate email account in your email client, but you want to read all mail addressed at the yahoo address inside your mailbox.

That is exactly where fetchmail and getmail comes into play: They connect to a foreign mailbox via POP/IMAP, and saves all mail from the foreign inbox into your local dovecot, in order for you having only connect to your personal inbox.

c++ – Creating a threadsafe, mutable, global configuration struct wrapper with C++17

I’m trying to create a relatively simple class that stores global configuration in some serializable struct, and reads/writes from/to a file.

My main goal is to make this class easy to use correctly. While it’s not a public library, there will be a sizable team using it in many parts of the codebase and I want to make it obvious to use in new code.


#pragma once

#include <exception>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <shared_mutex>

/// Represents global configuration based on a struct.
/// Provides abilities to load/save to a file.
/// @param SettingsStruct The following global overloads must exist for
/// serialization to/from streams:
///   ostream& operator<<(ostream&, const SettingsStruct
///   istream& operator>>(istream&, SettingsStruct&);
template <typename SettingsStruct>
class Settings {
  SettingsStruct settings_;
  mutable std::shared_mutex mutex_;
  std::filesystem::path filename_;

  /// Attempts to open file and initialize in-memory settings.
  Settings(std::filesystem::path filename);

  /// @note Calls Commit() before destruction
  ~Settings() { Commit(); }

  Settings(const Settings &) = delete;
  Settings &operator=(const Settings &) = delete;
  Settings(Settings &&) = delete;
  Settings &operator=(Settings &&) = delete;

  /// Commits in-memory settings to a file
  void Commit() const;

  /// @return a copy of the current settings
  SettingsStruct Get() const {
    std::shared_lock lk(mutex_);
    return settings_;

  /// Safely locks + mutates the current settings based on the given transform
  /// function.
  /// @return a copy of the mutated settings
  /// @example
  ///   settings.Mutate(()(auto old){ old.SomeGroup.Nested = 4.0; return old; }
  template <typename Func>
  SettingsStruct Mutate(const Func &transformFunction) {
    std::scoped_lock lk(mutex_);
    settings_ = transformFunction(settings_);
    return settings_;

template <typename SettingsStruct>
Settings<SettingsStruct>::Settings(std::filesystem::path filename)
    : filename_(filename) {
  std::ifstream ifs(filename);
  if (ifs.is_open()) {
    ifs >> settings_;
  } else {
    std::cerr << "warning could not open settings file "
              << std::filesystem::absolute(filename);

template <typename SettingsStruct>
void Settings<SettingsStruct>::Commit() const {
  std::scoped_lock lk(mutex_);
  std::ofstream ofs(filename_);
  ofs << settings_;


#include <fstream>
#include <future>
#include <iostream>

#include "Settings.h"

using namespace std;

struct SomeGroupedSettings {
  float Nested = 0.1;  // default
  string Address = "asdf";

struct MySettings {
  int Version = 1;

  SomeGroupedSettings SomeGroup = {};

ostream &operator<<(ostream &out, const MySettings &s) {
  out << s.Version << 'n'
      << s.SomeGroup.Nested << 'n'
      << s.SomeGroup.Address << 'n';
  return out;

istream &operator>>(istream &in, MySettings &s) {
  in >> s.Version;
  in >> s.SomeGroup.Nested;
  in >> s.SomeGroup.Address;
  return in;

int main(int argc, char **argv) {
  const auto filename = argc > 1 ? argv(1) : "config.txt";

  // clean file for testing
    ofstream ofs(filename);
    if (! ofs.is_open()) return 1;
    ofs << "1n0.5nold_addressn";

  Settings<MySettings> settings(filename);

  cout << "Loaded settings:n" << settings.Get() << endl;

  auto a = std::async(std::launch::async, ((&)() {
                        cout << "Changing address in other thread..." << endl;
                        settings.Mutate(()(auto old) {
                          old.SomeGroup.Address = "new_address";
                          return old;
                        cout << "Changed address in other thread:n"
                             << settings.Get() << endl;

  cout << "Changing settings in other thread..." << endl;

  settings.Mutate(()(auto old) {
    old.SomeGroup.Nested = 101.3;
    old.Version = 3;
    // leave SomeGroup.Address alone
    return old;

  cout << "Changed settings in main thread:n" << settings.Get() << endl;

Example output

Loaded settings:

Changing Nested in main thread...
Changing Address in other thread...
Changed Address in other thread:

Changed Nested in main thread:

With config.txt looking like:


Questions/not questions:

  • I will replace the <</>>-based serialization scheme with a parser based on Nlohmann’s JSON Library in the future. I’m not looking for feedback on this.

  • Get() will be called often, while Mutate will be called rarely.

  • Performance is not a massive concern, but obvious improvements are obviously welcome.

  • The pattern for Mutate that I came up with (passing a mutator as an argument) doesn’t seem widely used, or at least I’m not searching the right terms.

    • What are some better ways to handle mutation of shared classes?

    • Is the design of Mutate a terrible or particularly strange design? What are its pitfalls and why isn’t it more common? I can’t find much about it.

  • How could I add threadsafe move operations to this? It might be useful.

Any feedback, or examples of this sort of thing in the wild, is much appreciated.

configuration – How do I remove all extensions and plugins associated with Mathematica on macOS?

I currently have Wolfram One and have in the past had Mathematica installed on my machine and need to remove all extensions, plugins, and add-ons that are associated with either product. In particular anything responsive for messing with Spotlight.

How do I do this on macOS?

8 – Why does installing from an existing configuration fail?

I am struggling to install a drupal site from an existing configuration. Here the two approaches I tried:

OPTION 1: Import the config by changing the UID:

  • drush cex on existing site
  • drush site:install to install new site
  • drush cset uuid 478e7e74-fea3...... to set UUID on new site equal to exisiting site
  • drush cim on new site


  The import failed due to the following reasons:

  Unexpected error during import with operation delete for taxonomy.vocabulary.tags: Attempt to create a field body that does not exist on entity type node.
  Unexpected error during import with operation delete for shortcut.set.default: Attempt to create a field body that does not exist on entity type node.
  Unexpected error during import with operation delete for contact.form.personal: Attempt to create a field body that does not exist on entity type node.

.... (There are many more of these errors, but I stripped them here for better readability)

OPTION 2: Provide existing config during installation already

drush site:install --existing-config with config from existing site being avilable in config directory of new site.


The selected profile has a hook_install() implementation and therefore can
not be installed from configuration.

How to set up Google tag Manager configuration in ASP NET Core razor pages

I am very new to ASP NET Core razor pages. I have a requirement to set up Google Tag Manager in ASP NET Core razor pages. Usually in the ASP.Net solution we use Google Analytic’s tag.js script in page load. In angular we usually set up in app.module.ts/ app.component.ts.

But, I am to set up GTM tracking code/ id in ASP NET Core razor pages.

After set up, I need to send triggering conditions to GTM (like on button click send a event trigger to GTM so that it will in turn call the Google Analytics set up tag). Is there any helper class or plugins which I can use for the same ? Or in which file like Startup.cs , I can use the GTM configuration set up ?

Thank you.

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies 5000 Private Proxies - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies New Proxy Lists Every Day Buy Cheap Private Proxies; Best Quality USA Private Proxies