haraka / Haraka

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

Mysql #1283

Closed pjebs closed 8 years ago

pjebs commented 8 years ago

Is it possible to use haraka to create an email forwarding service where the incoming address is mapped to the forwarding address which are all stored in MySQL and can change as more addresses are added to the database.

If so, how can I do it?

Dexus commented 8 years ago

Yes its possible you need only create your own plugin for your needs

Von meinem iPhone gesendet

Am 24.12.2015 um 12:03 schrieb pjebs notifications@github.com:

Is it possible to use haraka to create an email forwarding service where the incoming address is mapped to the forwarding address which are all stored in MySQL and can change as more addresses are added to the database

If so, how can I do it?

— Reply to this email directly or view it on GitHub.

pjebs commented 8 years ago

Do you think it would be difficult to create a plugin? I'd assume that it is common enough that there might already be a plugin somewhere.

pjebs commented 8 years ago

Does this look like it:

https://github.com/mazelab/haraka-plugins

https://github.com/jcowgar/haraka-plugins

pjebs commented 8 years ago

Would I need to use Postfix to perform the actual forwarding (i.e. resend the incoming emails to new address or is different to 'relaying')?

baudehlo commented 8 years ago

No you can just set the transaction to relaying and Haraka will forward them for you.

In a way it's similar to how the mailing list software works. See the source on github. It talks to Postgres not MySQL but same difference really.

On Dec 24, 2015, at 6:39 PM, pjebs notifications@github.com wrote:

Would I need to use Postfix to perform the actual forwarding (i.e. resend the incoming emails to new address or is different to 'relaying')?

— Reply to this email directly or view it on GitHub.

pjebs commented 8 years ago

Is relaying equivalent to haraka receiving email and then re sending the email to the forwarding email address?

Or does it just 'transfer' through rather than resending ?

pjebs commented 8 years ago

Am I on the right track with the relay plugin?

baudehlo commented 8 years ago

Relaying is safe in that it uses outbound mechanisms (including retrying on failure).

That might not be what you're asking so you may want to try and rephrase.

On Dec 26, 2015, at 5:13 AM, pjebs notifications@github.com wrote:

Is relaying equivalent to haraka receiving email and then re sending the email to the forwarding email address?

Or does it just 'transfer' through rather than resending ?

— Reply to this email directly or view it on GitHub.

baudehlo commented 8 years ago

No write your own plugin from scratch. It's not that hard.

On Dec 26, 2015, at 5:31 AM, pjebs notifications@github.com wrote:

Am I on the right track with the relay plugin?

— Reply to this email directly or view it on GitHub.