hi evm_ you need the aliase plugin maybe you need to create your own plugin that match your needs.
vivek779 has quit
miefda joined the channel
dopesong joined the channel
Currerius joined the channel
davidj joined the channel
cek__ joined the channel
cek_ has quit
Currerius has left the channel
donspaulding joined the channel
doublemalt_ has quit
evm_
hi dexus_work, I did it :) I forgot write "connection.relaying = true;" in my rcpt_to. plugin
dexus_work
good to know ;)
evm_
but now, I can not change "mail_from" address :(
maybe somebody knows, how to replace real "from:" email address to other in haraka relay queue?
_smf_
evm_: replace transaction.mail_from with a new Address object
Or actually - you probably mean the recipient
so
You'll have to walk the transaction.rcpt_to array and find the appropriate recipient and replace it with a different Address object.
evm_
ok, _smf_ , thanks! I try it now..
dopesong has quit
piklu joined the channel
piklu
Hi Guys
I plan to run a professional email hosting
based on haraka
we would like to expand it and use it
Can I import haraka and use directly in my node js code
or it runs only as standalone and we would have to use a plugin to get data
_smf_
piklu: you can do whatever you want but if you don't use the plugin infrastructure then you're going to find it very hard to get future updates to the core Haraka software.
piklu
_smf_: I can use the plugin architecture guys
can u explain me a bit
I believe uptill now haraka is a standalone but extensible server
what we plan to offer is dedicated email server for corporate emails
_smf_
You can import Haraka into your project, but you'll need to leave a way to be able to upgrade it later is all I'm saying
dopesong joined the channel
DoubleMalt joined the channel
piklu
ok
if I import Haraka in my project
how can I call functions
or start the server
dopesong has quit
dexus_work
piklu: take a look in our docs how you can call functions (only Outbound) in external scripts... and how to start a nodejs script you should already know or not?
btw thats also in our docs included ;)
dopesong joined the channel
dopesong has quit
dopesong joined the channel
piklu
I want inbound as well.
dexus_work : I have been reading doc since a while now, but could not find them
Also....is there a plugin for mongo db - also is there a plugin for webhook?
and no we only have some plugins in our repo, if you need costumer plugins you need create your own.
a mongodb plugin :https://github.com/jamescowie/haraka-mongo/blob/master/mongo.j
_smf_
piklu: you would start Haraka as a separate process.
You wouldn't want Haraka sharing an event-loop with other things like a web server particularly if you care about scalability (and potentially security).
piklu
If webhook - mongodb, redis is all there
I do not think I will need anything else
onething more, how would I add domains
for it to accept.
for recieve
programatically
dexus_work: It seems like webhook only supports sending emails
not incoming
mongo plugin is not supporting attachments
I think am better off writing a plugin
for my purpose
dexus_work: anyone?
_smf_: anyone here?
_smf_
Yeah - if you want to do it programmatically: write a plugin on hook_rcpt to accept the inbound recipients based on that you have set-up. As per the documentation.
e.g. read the configuration from the database, Redis etc.
dopesong has quit
dopesong joined the channel
donspaulding joined the channel
piklu
_smf_: How do I begin to accept emails on domain with harako
_smf_
piklu: as I said earlier - by accepting recipients at hook_rcpt for domains that you want to handle inbound.
See any of the plugins that run on hook_rcpt for an example e.g. rcpt_to.in_host_list
donspaulding joined the channel
cek__ has quit
cek__ joined the channel
donspaulding joined the channel
EyePulp joined the channel
dopesong joined the channel
piklu
_smf_: says can not deliver mail for email
dexus_work
piklu: what you have writen in /config/host_list
?
piklu
nothing
just trying plain
dexus_work
then noting accepted ;)
piklu
│# add hosts in here we want to accept mail for
│haraka.local
sorry
that is written there
dexus_work
then haraka.local domain will accepted mails for
piklu
do I need to write here which emails are accepted
this is from right?
dexus_work
there you need write your hostnames for that you accept mails.