Community mailing list archives

community@mail.odoo.com

Re: tool to redirect emaill

by
ionpowered
- 06/28/2016 05:46:33
Reposting since this mailing list thinks urls enclosed in Less-Than and Greater-Than are html tags. In a plain-text mail. (I did that so re-wrapping doesn't break my links, as recommended on many big lists.)

If it still breaks, find attached a copy of the mail as sent out to the list.

Sorry for the noise and the additional ~2kb. Complain to listmaster if you think that must not happen, though i will try to remember. Original message starting beneath:

Hi Robert,

On 27/06/16 22:47, robert rottermann wrote:
Hi there,
I am loking for a way to redirect all mail of an odoo instance to either
a disk file or to some dummy account.
Assuming you are running Odoo on Linux, you can (probably, didn't check on every MTA) write mails to local files instead of delivering them via SMTP to their 'real recipient'. For Postfix, see https://serverfault.com/q/360870, notice the post about 'smtp-sink', a Postfix tool.

There, a tool called fakemail https://sourceforge.net/projects/fakemail/ is also mentioned, it's a <10kB python script that should also do the job and may come with some niceties you would have to script yourself when using Postfix afaict. This eliminates the need for having an SMTP server on the dev machine at all.

You can of course use some Odoo module for that, but that means you can't use the same configuration for development and deployment as recommended here: http://12factor.net/codebase (Worth a read)

Ciao,
Simon

On 28 June 2016 at 11:21, Simon Hollenbach <ionpowered@gmail.com> wrote:
Hi Robert,

On 27/06/16 22:47, robert rottermann wrote:
Hi there,
I am loking for a way to redirect all mail of an odoo instance to either
a disk file or to some dummy account.
Assuming you are running Odoo on Linux, you can (probably, didn't check on every MTA) write mails to local files instead of delivering them via SMTP to their 'real recipient'. For Postfix, see <https://serverfault.com/q/360870>, notice the post about 'smtp-sink', a Postfix tool.

There, a tool called fakemail <https://sourceforge.net/projects/fakemail/> is also mentioned, it's a <10kB python script that should also do the job and may come with some niceties you would have to script yourself when using Postfix afaict. This eliminates the need for having an SMTP server on the dev machine at all.

You can of course use some Odoo module for that, but that means you can't use the same configuration for development and deployment as recommended here: <http://12factor.net/codebase> (Worth a read)

Ciao,
Simon