add postfix domain alias table

parent e764845a
......@@ -19,7 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/
class CatchallDomainAttribute extends StringAttribute
class MailDomainAttribute extends StringAttribute
{
/*! \brief Return the ldap value in the correct intern format value
*
......@@ -127,7 +127,7 @@ class servicePostfix extends simpleService
_('Catchall table'), _('Catchall table'),
'fdPostfixCatchallTable', 'fdPostfixCatchallTable',
array(
new CatchallDomainAttribute (
new MailDomainAttribute (
_('Domain'), _('Domain concerned by this catchall rule'),
'fdCatchallTableDomain', TRUE
),
......@@ -136,6 +136,20 @@ class servicePostfix extends simpleService
'fdCatchallTableRecipient', TRUE
)
)
),
new SubNodesAttribute (
_('Domain alias table'), _('Domain alias table'),
'fdPostfixDomainAliasTable', 'fdPostfixDomainAliasTable',
array(
new MailDomainAttribute (
_('From'), _('Domain concerned by this alias rule'),
'fdDomainAliasTableFrom', TRUE
),
new MailDomainAttribute (
_('To'), _('Recipient domain for this alias rule'),
'fdDomainAliasTableTo', TRUE
)
)
)
)
),
......@@ -187,6 +201,7 @@ class servicePostfix extends simpleService
$errors = parent::ldap_save();
$this->attributesAccess['fdPostfixTransportTable']->postLdapSave($config->get_ldap_link());
$this->attributesAccess['fdPostfixCatchallTable']->postLdapSave($config->get_ldap_link());
$this->attributesAccess['fdPostfixDomainAliasTable']->postLdapSave($config->get_ldap_link());
return $errors;
}
}
......
......@@ -84,6 +84,18 @@ attributetype ( 1.3.6.1.4.1.38414.10.12.4 NAME 'fdCatchallTableRecipient'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE)
attributetype ( 1.3.6.1.4.1.38414.10.12.5 NAME 'fdDomainAliasTableFrom'
DESC 'FusionDirectory - postfix domain alias table from'
EQUALITY caseExactIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE)
attributetype ( 1.3.6.1.4.1.38414.10.12.6 NAME 'fdDomainAliasTableTo'
DESC 'FusionDirectory - postfix domain alias table to'
EQUALITY caseExactIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE)
# Postfix Server description
objectclass (1.3.6.1.4.1.38414.10.2.3 NAME 'fdPostfixServer' SUP top AUXILIARY
DESC 'FusionDirectory - Postfix server definition'
......@@ -103,3 +115,8 @@ objectclass (1.3.6.1.4.1.38414.10.2.6 NAME 'fdPostfixCatchallTable'
DESC 'FusionDirectory - Postfix catchall table line'
MUST ( fdCatchallTableDomain $ fdCatchallTableRecipient )
MAY ( ) )
objectclass (1.3.6.1.4.1.38414.10.2.7 NAME 'fdPostfixDomainAliasTable'
DESC 'FusionDirectory - Postfix domain alias table line'
MUST ( fdDomainAliasTableFrom $ fdDomainAliasTableTo )
MAY ( ) )
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment