#haraka

/

      • cek
        are you using tls?
      • are you using tls in outbound?
      • ultimatt
        I don't use outbound.
      • cek
        what's delivering mail to remote mta?
      • ultimatt
        qmail
      • postfix
      • and Exchange
      • cek
        okay, this horse is dead.
      • Now, anyone runing haraka and using haraka s outbound, grep the log please
      • baudehlo
        Nothing in my logs.
      • Though I don't send a lot of mail.
      • Guest60
        When writing a plugin to hook send_email, how do I prevent the built in send_email from actually sending? I've tried different return codes, but they all appear to be for the incoming process, not outgoing.
      • cek
        baudehlo: $ grep tls config/outbound.ini
      • ultimatt
        cek, what version of node are you using?
      • cek
        it doesn't matter.
      • ultimatt
        it might. newer than 0.10.40?
      • cek
        why would it matter?
      • dexus
        cek, I can not find similar entries in my logs. tls is enabled. And last week i send 194.921 Mails as i can see on my ES Logs
      • miefda has left the channel
      • cek because of the openssl bindings.
      • cek
        dexus: are you sure that message is even logged? i guess that comes with debug level
      • let me look up a case for you
      • this will require some time, getting data from archived records...
      • but i can say for sure, utoronto upgraded their DH during this summer
      • Guest60 has quit
      • teknix has quit
      • donspaulding joined the channel
      • finally
      • with outb tls on, send a letter to bnc1@mgstech.com
      • dexus, dear, do it. Wait 10-15 mins, see the log.
      • donspaulding joined the channel
      • apparently, that's the only mx that's still running with small dh. 29 others (spanning June) have alredy upgraded.
      • utoronto and BC govnmt, to name a few
      • baudehlo
        utoronto is using Haraka?
      • or am I misreading that?
      • cek
        you're misreading that.
      • baudehlo
        damn :)
      • Guest60 joined the channel
      • Guest60
        When writing a plugin to hook send_email, how do I prevent the built in send_email from actually sending? I've tried different return codes, but they all appear to be for the incoming process, not outgoing.
      • ultimatt
        in quickly looking at docs/Outbound, it doesn't appear you can
      • but you could always set the MX to a local process that spools it to /dev/null
      • oh wait, what's this "deferred" hook?
      • If you want to stop at this point, and drop the mail completely, then you
      • can call `next(OK)`.
      • sounds like what you want, eh?
      • Guest60
        Oh, so I could defer in the send_email, then drop it in the deferred hook?
      • ultimatt
        maybe
      • if I were trying to solve that problem that's the path I'd explore.
      • and if that didn't work, I'd create a "special" return value for the send_email hook
      • baudehlo
        I think you can use get_mx to return DENY
      • But yeah other than that, we never implemented DENY for the send_email hook.
      • Guest60
        the deferred hook didn't seem to ever get called, although maybe I implemented it incorrectly. get_mx worked to kill it though
      • ultimatt
        close enough. :)
      • baudehlo
        Note deny will send a bounce at get_mx
      • Guest60
        I did notice that. Is there any downside to that other than logging?
      • ultimatt
        oh, that's not good.
      • baudehlo
        well the mail_from user will get a mail.
      • ultimatt
        "send a bounce" = generate a bounce message and send to sender, right?
      • baudehlo
        It's up to you whether that's what you want.
      • Guest60
        To clarify my use case, we're only using Haraka to accept incoming email, which is then saved to a file and picked up by another part of our system. We don't want Haraka to do any actual sending of ANY kind at this stage.
      • Ok, I hooked bounce as well and called `next(OK)` there as well to kill the email notification
      • baudehlo
        hah, nice hack :)
      • Actually I suppose it would have double-bounced anyway without that.
      • Because the bounce would have to do get_mx too
      • Guest60
        It was. It's not now!
      • Thanks for all the help today and in the past as well.
      • donspaulding joined the channel
      • Guest60 has quit
      • teknix joined the channel
      • godsflaw has quit
      • EyePulp has quit
      • Guest14323 joined the channel
      • Guest14323 has quit
      • godsflaw_ joined the channel
      • teknix has quit