haraka / Haraka

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

Mail forwarding #1317

Closed pjebs closed 8 years ago

pjebs commented 8 years ago

I'm creating an email forwarder plugin where incoming email to haraka has its TO address changed and resent to the new address.

In config/plugin, I have smtp_forward queue.

I think to use that, you must configure the ini file????

...but I don't actually want to use something like AWS SES. I want haraka to directly send email. How can I do that?

smfreegard commented 8 years ago

I want haraka to directly send email. How can I do that?

Use this: https://gist.github.com/smfreegard/ff79d02aeb94b9065359 as your queue plugin. It will use Haraka's outbound queueing to send the mail.

pjebs commented 8 years ago

Is this equivalent to me commenting out smtp_forward in configure/plugins and having no queue?

Would haraka just automatically send the email

smfreegard commented 8 years ago

No - currently a plugin on hook_queue is required otherwise the message will be rejected.