baudehlo_: It *might* be related to the destination mail server. The one that's having the trouble will handle ~1k messages to a single destination and maybe 1 to a different destination. So I noticed when the outbound pool hangs and a new message comes in to the 'different' destination, it gets processed and delivered.
baudehlo_
yeah something locks up the pool at some point.
I think there's just a bug in generic-pool tbh.
And I'm surprised nobody else has talked about it.
Anyway I'm seriously considering writing our own pool code.
At least it'll be easier to debug.
darkpixel
baudehlo_: I think it could be https://github.com/coopernurse/node-pool/issues.... I suppose one way I could test it is to lower the concurrency_max in outbound.ini to something stupid like 1 (I set it to 50 to help clear the backlog faster when I restart Haraka)....
If I had it at 50, but the Barracuda only accepted 45 simultaneous connections, it could be that ~5 are 'timing out' and the pool code is missing it.
baudehlo_
yeah
darkpixel
If I had it set to 1 it might be easier to track and it might prevent the issue from occuring.
I'll see if I can get away with somewhere between 1 and 5 today and let you know what happens.
baudehlo_
What we really need to do there is to put them immediately back into the temp fail queue.
Or only pull them out of temp fail queue if there are pool entries available.
When there's mail in the queue and concurrency_max=1, they all have an 'out' section in the proctitle. After a node hangs, it no longer displays an 'out' section. One all the nodes are missing their 'out' section, outbound delivery stops everywhere.
With concurrency_max=1, I'm hitting the hang every ~30-60 seconds.
baudehlo
so basically where we call aquire() we should have a check for whether we're at that state yet.
darkpixel
I'm totally unfamiliar with the oubound code at the moment, but I'm slowly digging through it.
hi, I'm fed up of having no email address and I hate the discrimination email providers have against no-fos like myself. Can I ust haraka to turn my own computer into my own email server and host my own email account on my own computer?
baudehlo
It's very unlikely you can run it on your home computer.
HumanSheeple
why?
baudehlo
Most places block outbound port 25, and even if they don't, the IP will be in blocklists of consumer IP spaces.
HumanSheeple
so basically most places won't accept an email that's not hotmail gmail, facebook twitter etc
baudehlo
No, not exactly, but you need a server with a static IP address.
HumanSheeple
my home computer?
baudehlo
Well what's your home computer's IP address?
HumanSheeple
192.168.178.22
:)
baudehlo
go to google and type "What is my IP"
HumanSheeple
I'm sorry but I do not agree with any of google's ethics and I have decided to boycot this wicked corporation. However my public ip is 31.216.123.210
baudehlo
You might be OK, that IP isn't in the PBL. But /shrug
HumanSheeple
what's the pbl?
baudehlo
SpamHaus's list of consumer IP space.
Next step is to check if outbound port 25 is blocked on that IP. See if you can telnet to a public mail server on port 25.
HumanSheeple
well I haven't done anything bad on this computer so I don't see why it would be blacklistd
baudehlo
The PBL isn't about doing anything bad.
It's used to prevent botnet spam.
HumanSheeple
will I need to make an exception in my router port 25?
baudehlo: it is not working. The problem with smtp-proxy, is haraka responds with the smtp commands, then the client starts talking, which gets forwarded to the remote smtp server along with the authentication command.
so it is mixed haraka's smtp auth with the original sender smtp lines.
it said: 220 emailitin.com ESMTP Haraka 2.8.5 ready ^CConnection closed by foreign host.
arcol1
it should be like this: haraka->client: smtp greetings, client -> haraka: ehlo, haraka->client: smtp available commands (also puts on hold), haraka->server: authentication, then it starts to send the clients smtp lines
currently it is mixed because the async nature of node.js
HumanSheeple
OK so has my machine passed the worthiness test? shall I go ahead and go sudo pacman -S haraka ?
baudehlo
HumanSheeple: yeah, but bear in mind running an SMTP server isn't trivial like running a web server. It tends to require knowledge of how email works.
arcol1: feel free to create an issue for it.
HumanSheeple
baudehlo, do you have any good guides?
instructions
haraka's not found, do u have a git link?
baudehlo
It's on npm. You need node.js installed for it.
HumanSheeple
pacman -S npm !?
baudehlo
And no, I don't know of any good guides. Most people learned from years of painful experience.
HumanSheeple
are you the creator of haraka?
well ive gone sudo npm install -g Haraka
https://github.com/haraka/Haraka this guide says i should create a service haraka -i /path/to/haraka_test what should I do with that, something like /home/HumanSheeple/Haraka_Test right?
baudehlo
sure
HumanSheeple
ok I'm trying to edit the host_list file
it just says HumanSheeple there
baudehlo
It's around about this time that you're expected to read documentation :)
HumanSheeple
got a link to the documentation for me to have a butchers?
baudehlo
haraka.github.io
HumanSheeple
in all honesty how long was it from the moment u installed haraka to the point u sent/received ur first email from that server?
baudehlo
That's not a question to ask me.
I wrote it, so from when I started typing code, probably about 4 weeks.
Actually no because I didn't have outbound support back then, so probably about 6-12 months.
HumanSheeple
how old is haraka now?
ur matt sergeant?
im watching this 5 year old video of urs called Haraka- Getting stareted Screencast, u sounded really young then
arcol1
smtp_forward has the same problem. smtp_client.on in th sourceile and it is not sequencial, but rather async. so no way to makesure authentication haens irst
HumanSheeple
my smtp.ini looks nothing like the one in the video