Skip to content

Instantly share code, notes, and snippets.

@mvaled
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save mvaled/80f1f5e52e5ff5315da8 to your computer and use it in GitHub Desktop.

Select an option

Save mvaled/80f1f5e52e5ff5315da8 to your computer and use it in GitHub Desktop.

Revisions

  1. mvaled revised this gist Sep 15, 2014. 2 changed files with 2 additions and 3 deletions.
    2 changes: 1 addition & 1 deletion master.cf
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ xoeuf unix - n n - - pipe
    openerp unix - n n - - pipe
    flags=DRF user=manu argv=/home/manu/src/pgi/xhg/bin/ipython
    /home/manu/src/pgi/xhg/parts/omelette/openerp/addons/mail/static/scripts/openerp_mailgate.py
    -- -d mercurio -u admin -p admin
    -- -d mercurio -u 1 -p admin --host localhost --port 8069


    dovecot unix - n n - - pipe
    3 changes: 1 addition & 2 deletions transport
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,5 @@
    # So @example.com will be delivered to the xoeuf_mailgate transport

    example.com xoeuf

    # The original mailgate script that actually goes via HTTP.
    # The original mailgate script that actually sends an XMLRPC call.
    example2.com openerp
  2. mvaled revised this gist Sep 15, 2014. 3 changed files with 12 additions and 4 deletions.
    2 changes: 1 addition & 1 deletion main.cf
    Original file line number Diff line number Diff line change
    @@ -10,4 +10,4 @@ virtual_mailbox_maps = pgsql:/etc/postfix/pg-aliases.cf

    virtual_transport = dovecot
    dovecot_destination_recipient_limit = 1
    openerp_destination_recipient_limit = 1
    xoeuf_destination_recipient_limit = 1
    7 changes: 6 additions & 1 deletion master.cf
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,19 @@
    #... more standard stuff here
    # service type private unpriv chroot wakeup maxproc command + args
    # (yes) (yes) (yes) (never) (100)
    openerp unix - n n - - pipe
    xoeuf unix - n n - - pipe
    flags=DFR user=manu argv=/home/manu/src/pgi/xhg/bin/xoeuf_mailgate
    -d mercurio -c /home/manu/src/pgi/xhg/openerp.conf.py
    --log-host localhost --log-from [email protected]
    --log-to manu@localhost

    # !! Notice we are using the xoeuf_mailgate script in https://github.com/merchise-autrement/xoeuf/

    openerp unix - n n - - pipe
    flags=DRF user=manu argv=/home/manu/src/pgi/xhg/bin/ipython
    /home/manu/src/pgi/xhg/parts/omelette/openerp/addons/mail/static/scripts/openerp_mailgate.py
    -- -d mercurio -u admin -p admin


    dovecot unix - n n - - pipe
    flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver
    7 changes: 5 additions & 2 deletions transport
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    # So @example.com will be delivered to the openerp transport
    # So @example.com will be delivered to the xoeuf_mailgate transport

    example.com openerp
    example.com xoeuf

    # The original mailgate script that actually goes via HTTP.
    example2.com openerp
  3. mvaled created this gist Sep 15, 2014.
    13 changes: 13 additions & 0 deletions main.cf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    # many options here

    mydestination = localhost.localdomain, localhost
    recipient_delimiter = +
    transport_maps = hash:/etc/postfix/transport


    virtual_mailbox_domains = example.com
    virtual_mailbox_maps = pgsql:/etc/postfix/pg-aliases.cf

    virtual_transport = dovecot
    dovecot_destination_recipient_limit = 1
    openerp_destination_recipient_limit = 1
    15 changes: 15 additions & 0 deletions master.cf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    #... more standard stuff here
    # service type private unpriv chroot wakeup maxproc command + args
    # (yes) (yes) (yes) (never) (100)
    openerp unix - n n - - pipe
    flags=DFR user=manu argv=/home/manu/src/pgi/xhg/bin/xoeuf_mailgate
    -d mercurio -c /home/manu/src/pgi/xhg/openerp.conf.py
    --log-host localhost --log-from [email protected]
    --log-to manu@localhost

    # !! Notice we are using the xoeuf_mailgate script in https://github.com/merchise-autrement/xoeuf/


    dovecot unix - n n - - pipe
    flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver
    -f ${sender} -d ${recipient}
    3 changes: 3 additions & 0 deletions transport
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    # So @example.com will be delivered to the openerp transport

    example.com openerp