ingadhoc / adhoc-rancher

Apache License 2.0
2 stars 5 forks source link

Odoo change smtp:localhost to smtp #7

Open unxs0 opened 7 years ago

unxs0 commented 7 years ago

Odoo now has external link to base/postfix-dockprox:smtp

unxs0 commented 7 years ago

This should be done via Rancher Compose config and Odoo ENV

unxs0 commented 7 years ago

Added:

environment:

unxs0 commented 7 years ago

Now Juan has to modify Odoo to use SMTP_HOST=smtp

unxs0 commented 7 years ago

It seems that we need to simply modify : docker-odoo-adhoc/dockerfiles/00-odoo/9.0/openerp-server.conf

line: ; smtp_server = localhost

to:

smtp_server = smtp

[options]
addons_path = /mnt/extra-addons,/usr/lib/python2.7/dist-packages/openerp/addons
data_dir = /var/lib/odoo
auto_reload = True
; admin_passwd = admin
; csv_internal_sep = ,
; db_maxconn = 64
; db_name = False
; db_template = template1
; dbfilter = .*
; debug_mode = False
; email_from = False
; limit_memory_hard = 2684354560
; limit_memory_soft = 2147483648
; limit_request = 8192
; limit_time_cpu = 60
; limit_time_real = 120
; list_db = True
; log_db = False
; log_handler = [':INFO']
; log_level = info
; logfile = None
; longpolling_port = 8072
; max_cron_threads = 2
; osv_memory_age_limit = 1.0
; osv_memory_count_limit = False
; smtp_password = False
; smtp_port = 25
; smtp_server = localhost
; smtp_ssl = False
; smtp_user = False
; workers = 0
; xmlrpc = True
; xmlrpc_interface =
; xmlrpc_port = 8069
; xmlrpcs = True
; xmlrpcs_interface =
; xmlrpcs_port = 8071
unxs0 commented 7 years ago

I will do this myself building a custom version.