Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: ismith78 on May 04, 2014, 10:31:16 am

Title: Relay email sending from OpenERP to Zentyal
Post by: ismith78 on May 04, 2014, 10:31:16 am
We have two servers - one is running Zentyal on 10.0.1.2 and the other is running OpenERP on 10.0.1.3

The OpenERP is correctly authenticating with the LDAP server on Zentyal so there is basic authentication working.

However what we cannot do is send email from the OpenERP out if not administrator. OpenERP works by sending on behalf of the logged in user (logged in via LDAP)

On the previous system, iRedmail, we fixed this by changing the config line in /etc/postfix/main.cf to

smtpd_sender_restrictions = permit_mynetworks, reject_unauthenticated_sender_login_mismatch, permit_sasl_authenticated

However in the case of Zentyal this file is rewritten by Zentyal so manually changing this is not an option.

So how can we get the openerp relay working with Zentyal in the same way as iRedmain?
Title: Re: Relay email sending from OpenERP to Zentyal
Post by: ismith78 on May 16, 2014, 09:01:53 am
Found the issue. OpenERP attempts to send emails from the currently logged in user. This will fail if a normal LDAP account is used as it will not match the authentication.

To get round this the username and password need to be set to none in the OpenERP outgoing mail server options as long as the server object is correctly defined in Zentyal.