Version 1.30.2

Released: 2007-08-08

Also include the .INBOX.Trash folder for purging new

The spambox purging feature will now also include the Trash folder, by request. This will increase the system load even more, fyi.

To keep the load at a minimum during this process, the fewer emails there are to check, the faster it will run. So to accomplish that, set the purge time to as few days as possible so old ones are cleared out sooner. Balance this with how long your customers need old spam/trash emails. If you can get away with 1-3 days, that would be best... 7 days is ok as well. 30 days is safe for the customers, but puts more load, depending on the number of accounts and emails there are to purge.

NOTE: this is only for dovecot/Maildir. It doesn't show up for vm-pop3d/mbox.

Cron option to prevent email (SKINS) new

Added a basic javascript button to append:

/dev/null 2>&1

to the end of your cron command before submitting it.

SKINS:

user/cronjobs.html

<script language="Javascript">
<!--
function preventEmail()
{
    with (document.info)
    {
        command.value = command.value + ' >/dev/null 2>&1';
        prevent.disabled = true;
    }
}
// -->
</script>

and added the button:

<input type=button name=prevent value="Prevent Email" onClick='preventEmail()'>

include subdomains in domain pointers (TEMPLATES) new

Add subdomains for domain pointers on the main domain.

Only for aliased domain pointers. (ServerAlias)

The subdomain virtualhosts will not have ServerAliases for all domain pointers in the subdomain form.

NOTE

This will note setup the dns zones for the subdomains in the domain alias.

The reason for this is because if you're using the "multi server setup" for dns clustering, the effect of multiple connections for each domain pointer would cause a high load. Example, if you have 3 remote dns servers, and 10 domain pointers, adding 1 subdomain in DA would cause 30 connections one after another to setup the dns zone for each domain pointer, repeated for each dns server. So, if you want to use this, add the subdomains manually to dns, or use wildcard dns * A records.

TEMPLATES:

virtual_host*_sub.conf (there are 4 of them)

Change:

ServerAlias www.|SUB|.|DOMAIN| |SUB|.|DOMAIN|

to:

ServerAlias www.|SUB|.|DOMAIN| |SUB|.|DOMAIN| |SERVER_ALIASES|

DA will add the subdomain name in front of the domain pointer for each domain pointer.

ability to specify a user/pass for sql gz restores (SKINS) new

Will add 2 fields for the ability to specify a specific user/pass to restore the gz backup as. If nothing is entered, then the system user will be assumed, using the session password for the restore, as it currently does... so if you don't update your skin with this information, it will still work as it normally does.

SKINS:

userdbdb.html

On the line before the submit button add:

<script language="javascript">
function setuserpass(truefalse)
{
    if (document.backupform)
        with (document.backupform)
            for (var i=0; i < elements.length; i++)
                if (elements[i].name == 'dbuser' || elements[i].name == 'dbpass')
                    elements[i].disabled=truefalse;
}
</script>
<tr><td class=list align=center colspan=2>Select connection method:</td></tr>
<tr>
<td class=list align=center>
<input type=radio name=method value=default checked onClick="setuserpass(true);">your account login information
</td>
<td class=list align=center>
<input type=radio name=method value=custom onClick="setuserpass(false);">
a specified <input type=text size=6 name=dbuser value="user" disabled onClick="this.select()"> &#38; pass <input type=password size=6 name=dbpass value="" disabled>
</td>
</tr>

option to specify the redirect host value when http is used on an https protocol new

DEPRECATED as of 1.62.0:

DEPRECATED: ssl_redirect_host

======

option to specify the redirect host value when http is used on an https protocol.

If you've enabled SSL=1 and the User enters http, then DA will give them the server IP redirect by default. This option will allow the admin to specify the value of the hostname in the redirect, which has an added benefit of forcing them to use the host that matches the certificate to valid ssl errors.

The directadmin.conf option will be:

ssl_redirect_host=host.name.com

The default setting is for the value to not be present in the directadmin.conf.

When it's not present, the server IP will be used. With the option present, it's value will be used (even it's it's blank) so make sure it only there if you want to use it.


DA 1.47.1 supports adding an optional redirect port:

ssl_redirect_host to allow port

recursive apache file ownership reset new

recursive directory apache file ownership reset in filemanager.

Directories owned by apache will now have anoter link beside the "Reset Ownership". It will now show:

Reset Ownership | Recursively

so you can either click the first link to just reset the directory, or click the Recursively link to do the directory, as well as all of it's contents.

Only apache owned files/directories within it will be reset.

Apache owned files in a directory within the initial path won't be touched if the middle level directory isn't owned by apache. It stops going down if any level isn't owned by apache. It will continue for other files/folders in that original directory though.

spambox purge using ctime instead of mtime fixed

The time check on the ctime instead of the mtime is wrong because dovecot often changes the name of the file, which is how it keeps track of the messages flags. The mtime is the actual file contents modification time, so that's the one that needs to be checked.

more filtering on adding mailinglist subscribers fixed

Better filtering for adding email addresses to a mailing list.

Break down comma separated lists into individual emails.

Ensure domain is owned by user in CMD_USER_STATS fixed

Filter domain variable to ensure it's present in the User's domain.list file.

dataskq uses a lot of cpu for oversized bandwidth.tally files fixed

If a bandwidth.tally file is oversized (eg, 50meg due to emails), the parsing of it can bog down the tally.

I've added a change to the parse to use a different reading/sorting algorithm such that a sort isn't run each time a new unique message ID is added to the index. For bandwidth.tally files with ~500,000 entires, this really speeds things up exponentially... from hours to seconds.

shared to owned IP, ftp accounts disappear for defaultdomain fixed

If you have an account on a shared IP, and move that account to an owned IP, any accounts on the defaultdomain (the main domain for the account) will disappear from the ftp list.

The accounts have not actually been removed, they're just not showing up because the @domain.com was not removed during conversion from the user@domain.com account. (main domains for owned IP's dont have @domain.com).

The fix was to remove @domain.com for the default domain ftp accounts during the conversion.

Last Updated: