swerter / haraka-plugins

Other
7 stars 2 forks source link

How to use #4

Open pjebs opened 6 years ago

pjebs commented 6 years ago

I was wondering if you could give me some advice on how to use this. I'm not familiar with node js so I've been tripping over every step of the way:

1) I was wondering if your project achieves what I am trying to do: https://github.com/haraka/Haraka/issues/2297

2) I was wondering why I had to npm many js files including srs.js. Why can't I just copy the js files in your repository into the plugins folder?

Your help is greatly appreciated. Thanks in advance.

pjebs commented 6 years ago

When I read your code, I can't figure out how it magically resends the email. It doesn't seem to use any of this plugins:

relay queue/smtp_forward queue/smtp_proxy

Can you explain what the differences are of those plugins? The documentation states some subtle differences.

mhamann commented 5 years ago

@pjebs Haraka (at least as of now) includes outbound email functionality by default. So, once you run through various plugins (valid address, rcpt rewrite, etc), Haraka will attempt to send the email for you. It does this by looking up the recipient's domain in DNS and then connecting to that server via SMTP.

Now, do you need SRS? Maybe not, but it would certainly make delivery more reliable I think.

Maybe you already solved this, but this explanation might be helpful for others.