Search 1.9 billion lines of Odoo code on GitHub

tko_mail_smtp_per_user

Author: ThinkOpen Solutions Brasil, Odoo Community Association (OCA)
License: AGPL-3
Branch: 10.0
Repository: elego/tkobr-addons
Dependencies: base, and mail
Languages: Python (69, 63.3%), and reStructuredText (40, 36.7%)
Other branches: 10.0-quality, 7.0, 7.0-quality, 8.0, 8.0-quality, 9.0, 9.0-quality, SAC/13253, SAC/13497, add/changelog_file, fix_ldap_failed_login_v10, fix_web_sessions_auth, imp/dynamic_fields_in_tasks, imp/tko_account_contract_report_template, kjellberg-erp_8.0_integration-6722, kjellberg-erp_8.0_integration-6723, kjellberg-erp_8.0_integration-6724, kjellberg-erp_8.0_integration-6725, kjellberg-erp_8.0_integration-6726, kjellberg-erp_8.0_integration-6727, kjellberg-erp_8.0_integration-6728, kjellberg-erp_8.0_integration-6729, kjellberg-erp_8.0_integration-6730, kmee_l10n_br_pos, and v10_tko_mail_smtp_per_user
Other repositories: Abdullah-Alghoul/tko-addons, Dayssam/tkobr-addons, Elbagoury/pos, Gofekra/tko-addons, Guobower/tko-addons, Hinoga/tko-addons, Nucleoos/tkobr-addons, OdooBulgaria/tkobr-addons, Seal-LiveIntellectus/tko-addons, SetRac/pos-1, TRESCLOUD/tko-addons, TimLai125/tko-addons, Ubaid-UrRehman/tko-addons, achuthanselvaraj/pos, alanljj/tkobr-addons, alecvinent/tko-addons, amendoncabh/tko-addons, anhvu-sg/tko-addons, anodino-dev/tko-addons, aschenkels-ictstudio/tko-addons, bmya/tkobr-addons, brain-tec/tkobr-addons, caioleonardo/tkobr-addons, cameroun/tko-addons, ccdos/tkobr-addons, chjbbs/tko-addons, ciel-it/tkobr-addons, dansanti/tko-addons, dev-tanvir/tko-addons, durvilchat/tko-addons, eslammohamed13/pos, fadeldamen/tkobr-addons, fi-ecavc/tko-addons, garzadekoster/tkobr-addons, gorozcoh/tko-addons, haylahi/tkobr-addons, hinfo506/tko-addons, igorabpereira/tkobr-addons, ionutalgios/tko-addons, itsalgeria/tko-addons, izzihector/pos, jairuque/tkobr-addons, jiltons/tkobr-addons, jlzhou/tko-addons, krocket/tko-addons, likaiyuan/tkobr-addons, marionumza/pos-1, maurolguin1/tkobr-addons, mayjo79/tkobr-addons, messaoudi-mounir/tkobr-addons, mohamedhagag/tkobr-addons, molandtoxx/tkobr-addons, msntop/tkobr-addons, nick2474/tkobr-addons, nodoo/tko-addons, odoo258/tko-addons, onixus74/tko-addons, prodax/tko-addons, purnendu03/tko-addons, raycarnes/tkobr-addons, rfpk/tkobr-addons, rschnapka/tkobr-addons, sasakuma/tko-addons, sc4you/tko-addons, scbrianti/tko-addons, simmatica/tkobr-addons, spacimek/tko-addons, tdelbianco/tko-addons, thinkopensolutions/tko-addons, tuksik/odoo8-tkobr-addons, vertelab/odoo-tkobr-addons, vidtsin/pos, vmcloudsolution/tkobr-addons, waynejid/tko-addons, yelizariev/tkobr-addons, and zhujin001032/tko-addons

<a name="smtp-server-per-user"></a> <h2>SMTP Server Per User</h2> <p>Configure Odoo to use specific incoming and outgoing email server by user.</p> <p>## New in v2.0:</p> <p><strong>Automatic outgoing SMTP mail server detection</strong>: Through the [From] address of outgoing message, Odoo will select correct outgoing SMTP mail server to send email. This way if there is a SMTP mail server equal to the current user email, or equal to the [From] field in email template, Odoo will use that outgoing email server to send the email.</p> <p><strong>Template compatible</strong>: If one sets [From] field in the email template, Odoo will send that email from that outgoing SMTP server, if defined, if not it will use standard mail.catchall.alias system parameter and outgoing email servers by priority.</p> <p><strong>NOTE</strong>: Don't forget, you need now to set explicitly the [From] and [Reply-to] fields in email templates. And create always the incoming mail server of the respective outgoing one. The [Reply-to] will always be equal to [From] email (even if defined in template [Reply-to] field). If no outgoing email server is defined, it will use standard mail.catchall.alias system parameter, like in standard Odoo.</p> <p>&gt; <strong>Backward compatibility</strong>: All fields are kept in database, although not shown in forms, until new version is released. <strong>No data will be lost</strong>, and one can revert to older module version. NOTE: They will be removed in 3.0 version.</p> <p>## <strong>New in v1.0</strong>:</p> <p>The module set following email HEADERS according to user SMTP server: - From: UserName SMTP_Server_User_Name_Email - Reply-To: UserName SMTP_Server_User_Name_Email - Return-Path: UserName SMTP_Server_User_Name_Email</p> <p>This will fix a problem connecting to servers like for example Zoho. But will override email templates [From] and [Reply-to] definitions.</p> <p>## <strong>Configuration</strong>:</p> <p>To configure Odoo email gateway please consider this steps: - Go to &quot;Settings --&gt; Technical --&gt; General Settings&quot; and set your domain in &quot;Alias Domain&quot; (ex: mydomain.com). - Go to &quot;Settings --&gt; Technical --&gt; Parameters --&gt; System Parameters&quot; and check if you have:</p> <blockquote> <ul class="simple"> <li>Parameter key &quot;mail.catchall.domain&quot; must be same domain you give above (ex: mydomain.com).</li> <li>Parameter key &quot;mail.catchall.alias&quot; this is the catchall alias email (ex: catchall).</li> <li>Parameter key &quot;mail.bounce.alias&quot; this is the bounce alias email (ex: bounce). The default bounce address is used to set the envelop address if no envelop address is provided in the message. It is formed by properly joining the parameters &quot;mail.catchall.alias&quot; and &quot;mail.catchall.domain&quot;. If &quot;mail.catchall.alias&quot; is not set it defaults to &quot;postmaster-odoo&quot;.</li> <li><strong>NOTE:</strong> use with care, some relay servers will not forward emails with no bounce email account configured and Odoo does this dynamically (ex: <a class="reference external" href="mailto:bounce-16-res_partner34&#64;yourdomain.com">bounce-16-res_partner34&#64;yourdomain.com</a>). Catchall and bounce parameters can be the equal.</li> </ul> </blockquote> <ul class="simple"> <li>Go to &quot;Settings --&gt; Technical --&gt; Email --&gt; Incoming Mail Servers&quot;, create catchall mail server (ex: <a class="reference external" href="mailto:catchall&#64;mydomain.com">catchall&#64;mydomain.com</a>)</li> <li>If you have bounce parameter, go to &quot;Settings --&gt; Technical --&gt; Email --&gt; Incoming Mail Servers&quot;, create bounce mail server (ex: <a class="reference external" href="mailto:bounce&#64;mydomain.com">bounce&#64;mydomain.com</a>)</li> <li>Go to &quot;Settings --&gt; Technical --&gt; Email --&gt; Incoming Mail Servers&quot;, create user mail server (ex: <a class="reference external" href="mailto:newuser&#64;mydomain.com">newuser&#64;mydomain.com</a>)</li> <li>Go to &quot;Settings --&gt; Technical --&gt; Email --&gt; Outgoing Mail Servers&quot;, create outgoing SMTP server (ex: <a class="reference external" href="mailto:newuser&#64;mydomain.com">newuser&#64;mydomain.com</a>). Select the user you previously created as owner.</li> <li><strong>CONGRATULATIONS</strong>, you can now login as your new user and send emails, they will reach destination with the from and reply to as <a class="reference external" href="mailto:newuser&#64;mydomain.com">newuser&#64;mydomain.com</a>. And on reply you will get them in same entity from where you've sent it.</li> <li>You should create an income and outgoing email server for each user.</li> <li>You can <strong>still use Odoo in the standard way</strong>, and only some users having specific SMTP email server. It will only set the emails sent by users with specific email server.</li> </ul> <a name="credits"></a> <h2>Credits</h2> <a name="contributors"></a> <h3>Contributors</h3> <blockquote> <ul class="simple"> <li>Carlos Almeida &lt;<a class="reference external" href="mailto:carlos.almeida&#64;tkobr.com">carlos.almeida&#64;tkobr.com</a>&gt;</li> <li>Alexandre Rüffer &lt;<a class="reference external" href="mailto:alexandre.ruffer&#64;tkobr.com">alexandre.ruffer&#64;tkobr.com</a>&gt;</li> </ul> </blockquote> <a name="maintainer"></a> <h3>Maintainer</h3> <p>![alt tag](<a class="reference external" href="http://tkobr.tkobr.com/logo.png">http://tkobr.tkobr.com/logo.png</a>)</p> <p>This module is maintained by ThinkOpen Solutions.</p> <p>To contribute to this module, please visit <a class="reference external" href="https://github.com/thinkopensolutions/tkobr-addons/issues">https://github.com/thinkopensolutions/tkobr-addons/issues</a>.</p>