Join the community today
Register Now

Beta Branch update addons/opendkim.sh script in 140.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Sep 27, 2024.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    58,895
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    11:53 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    update addons/opendkim.sh script in 140.00beta01

    - update opendkim key generation from 1024bit to 2048bit key length by default
    - add configurable DKIM selector name which defaults to default2024 where 2024 is the year
    CURRENT_YEAR=$(date +"%Y")
    SELECTOR="default${CURRENT_YEAR}"
    - add a --force option to the addons/opendkim.sh script, enabling forced regeneration of DKIM keys and backing up existing keys and configurations to /etc/centminmod/dkim_backups.

    To force the regeneration of DKIM keys for the main hostname and backup existing keys:

    ./opendkim.sh --force

    To force update DKIM keys for a specific domain (e.g., example.com) and backup existing keys:

    ./opendkim.sh --force example.com


    By using the --force option, the script will:

    1. Regenerate DKIM keys even if they already exist.
    2. Backup existing DKIM keys and configurations before making changes.
    3. Store backups in a timestamped directory under /etc/centminmod/dkim_backups.
    4. Note: Remember to update your DNS records with the new DKIM public keys after running the script with --force.

    Continue reading...

    140.00beta01 branch