haraka / Haraka

A fast, highly extensible, and event driven SMTP server
https://haraka.github.io
MIT License
5.09k stars 662 forks source link

VMTA selection not applied when x-vmta passed to send_email() #1996

Closed sstevan closed 7 years ago

sstevan commented 7 years ago

VMTA issue with send_email (splitting #1993)

I've enabled VMTA plugin and I can see that configuration is properly loaded:

[INFO] [-] [vmta] VMTA configs are fully loaded from 'vmta.ini'.
[INFO] [-] [vmta] { main: {},
  default_01: { ip: '111.111.111.111', host: 'mta01.sample.com' },
  default_02: { ip: '222.222.222.222', host: 'mta02.sample.com' },
  default_03: { ip: '111.111.222.222', host: 'mta03.sample.com' },

When I post raw message content with x-vmta: default_02 to HTTP API ( check #1993) I don't get proper VMTA selected and x-vmta header is not removed. What should I do to get raw message properly processed?


Haraka

Stack Version
Haraka Haraka.js — Version: 2.8.13
Node v8.0.0
OS Ubuntu 16.04
openssl OpenSSL 1.0.2g 1 Mar 2016
sstevan commented 7 years ago

Should I move this to plugin repo? https://github.com/haraka/haraka-plugin-vmta

acharkizakaria commented 7 years ago

Yes I think it will be better to move the issue to the VMTA plugin repo and add the full example with the raw message content that contains the x-vmta parameter, so we could reproduce the issue you're getting.

baudehlo commented 7 years ago

Yes please move the issue there.

On Wed, Jul 5, 2017 at 5:25 AM, Zakaria Acharki notifications@github.com wrote:

Please add the full example here with the raw message content that contains the x-vmta parameter.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/haraka/Haraka/issues/1996#issuecomment-313050765, or mute the thread https://github.com/notifications/unsubscribe-auth/AAobY0MNS8D6NgKcT620uusidhx7txd-ks5sK1afgaJpZM4ONX0Z .

acharkizakaria commented 7 years ago

This one was moved and fixed in https://github.com/haraka/haraka-plugin-vmta/issues/4 , could be closed now.

sstevan commented 7 years ago

Thank you @acharkizakaria and @baudehlo for the quick resolution. I'd like to know if donations are shared among contributors or should be made individually?

baudehlo commented 7 years ago

They are currently not shared. I'd like to find a way to change that (PayPal is obviously not the best way).

On Jul 6, 2017, at 5:07 AM, Stevan Šandi notifications@github.com wrote:

Thank you @acharkizakaria and @baudehlo for the quick resolution. I'd like to know if donations are shared among contributors or should be made individually?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.