How to: Set a Send Delay in Roundcube

Roundcube provides an option to limit the number of messages a user may send within a select time frame. This setting is in seconds. By default, this is set to 0, however system administrators can customize this option with the sendmail_delay setting in the Roundcube configuration file.

With the sendmail_delay option enabled, if a user tries to send more than one message within the set window, they will receive an error letting them know they need to wait, and for how long:

../../../_images/rc-send-delay.png

To Configure the sendmail_delay Setting

  1. Log in to the server at the CLI as root, either via SSH or from the terminal

  2. At the CLI, run the following to edit the Roundcube setting template–this will prevent the changes from being overwritten upon update:

    ~iworx/bin/config.pex --customize-template mail/roundcube-config.tpl --for-global
    
  3. Edit the sendmail_delay setting to reflect the number of seconds that users must wait before sending another message. The following example sets a 90 second delay:

    // How many seconds must pass between emails sent by a user
    $config['sendmail_delay'] = 90;
    
  4. Save the file and exit the text editor