Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Exim Configuration - Defer instead of Fail over quota users

Discussion in 'E-mail Discussion' started by Craig Marchant, Dec 22, 2015.

  1. Craig Marchant

    Craig Marchant Registered

    Joined:
    Dec 22, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Melbourne, VIC, Australia
    cPanel Access Level:
    DataCenter Provider
    Hi,

    Currently running cPanel / WHM 11.52 on the server in question with no major changes to the exim configuration.

    A user has come to us with a request to change the return code when a mailbox is over quota from a hard error (5xx) to a temporary defer (4xx) error.

    I've located the stanza in WHM => Exim Configuration Manager => Advanced Editor however I'm not sure how to replace it. It currently says:

    Code:
    virtual_user_maildir_overquota:
      driver = redirect
      domains = +user_domains
      router_home_directory = ${extract{5}{:}{${lookup passwd{${lookup{$domain}lsearch{/etc/userdomains}
    {$value}}}{$value}}}}
      require_files = $home/etc/$domain
      condition = "${if exists {$home/etc/$domain/quota}{${if > {${lookup{$local_part}lsearch{$home/etc/
    $domain/quota}{$value}{0}}}{0}{${perl{checkuserquota}{$domain}{$local_part}{$message_size}{${lookup{
    $local_part}lsearch{$home/etc/$domain/quota}{$value}{0}}}{$home/mail/$domain/$local_part/maildirsize
    }}}{false}}}{false}}"
      user = "${lookup{$domain}lsearch* {/etc/userdomains}{$value}}"
      data = :fail:Mailbox quota exceeded
      allow_fail
    
    
    But I want to change it to be:

    Code:
    virtual_user_maildir_overquota:
      driver = redirect
      domains = +user_domains
      router_home_directory = ${extract{5}{:}{${lookup passwd{${lookup{$domain}lsearch{/etc/userdomains}
    {$value}}}{$value}}}}
      require_files = $home/etc/$domain
      condition = "${if exists {$home/etc/$domain/quota}{${if > {${lookup{$local_part}lsearch{$home/etc/
    $domain/quota}{$value}{0}}}{0}{${perl{checkuserquota}{$domain}{$local_part}{$message_size}{${lookup{
    $local_part}lsearch{$home/etc/$domain/quota}{$value}{0}}}{$home/mail/$domain/$local_part/maildirsize
    }}}{false}}}{false}}"
      user = "${lookup{$domain}lsearch* {/etc/userdomains}{$value}}"
      data = :defer:Mailbox quota exceeded
      allow_fail
    
    
    Cheers,
    Craig
     
    #1 Craig Marchant, Dec 22, 2015
    Last edited by a moderator: Dec 22, 2015
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    You may find this thread helpful:

    Exim Configuration Editor

    It's a different router in the Exim configuration file, but the same method of modifying it applies.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice