diff --git a/addons/mail/__openerp__.py b/addons/mail/__openerp__.py
index 39413a80bed..4b73994b65d 100644
--- a/addons/mail/__openerp__.py
+++ b/addons/mail/__openerp__.py
@@ -56,7 +56,9 @@ The main features are:
'depends': ['base', 'base_tools'],
'data': [
'wizard/mail_compose_message_view.xml',
+ 'wizard/update_mail_alias_wizard.xml',
'mail_message_view.xml',
+ 'mail_alias_data.xml',
'mail_subscription_view.xml',
'mail_thread_view.xml',
'mail_group_view.xml',
diff --git a/addons/mail/mail_alias_data.xml b/addons/mail/mail_alias_data.xml
new file mode 100644
index 00000000000..041c1dd3316
--- /dev/null
+++ b/addons/mail/mail_alias_data.xml
@@ -0,0 +1,9 @@
+
+
+
+
+ mail.catchall.domain
+ openerp.my.openerp.com
+
+
+
diff --git a/addons/mail/wizard/__init__.py b/addons/mail/wizard/__init__.py
index 88b9581f68e..bf35381fc94 100644
--- a/addons/mail/wizard/__init__.py
+++ b/addons/mail/wizard/__init__.py
@@ -20,5 +20,5 @@
##############################################################################
import mail_compose_message
-
+import update_mail_alias
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/mail/wizard/update_mail_alias.py b/addons/mail/wizard/update_mail_alias.py
new file mode 100644
index 00000000000..b419050d48c
--- /dev/null
+++ b/addons/mail/wizard/update_mail_alias.py
@@ -0,0 +1,36 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2010-Today OpenERP SA ()
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see
+#
+##############################################################################
+
+from osv import orm
+from osv import fields
+
+class transient_update_maildomain(orm.TransientModel):
+
+ _name = "transient.update.maildomain"
+ _description = "Update Mail Domain"
+ _columns = {
+ 'name' : fields.text('Domain', required=True),
+ }
+ def update_domain(self, cr, uid, ids, context=None):
+ config_parameter_pool = self.pool.get("ir.config_parameter")
+ for record in self.browse(cr, uid, ids, context):
+ config_parameter_pool.set_param(cr, uid, "mail.catchall.domain", record.name, context)
+ return {'type': 'ir.actions.act_window_close'}
diff --git a/addons/mail/wizard/update_mail_alias_wizard.xml b/addons/mail/wizard/update_mail_alias_wizard.xml
new file mode 100644
index 00000000000..5cc5162556d
--- /dev/null
+++ b/addons/mail/wizard/update_mail_alias_wizard.xml
@@ -0,0 +1,34 @@
+
+
+
+
+ transient.update.maildomain.form
+ transient.update.maildomain
+ form
+
+
+
+
+
+
+ Configure Mail Domain
+ transient.update.maildomain
+ form
+ form
+ new
+
+
+
+