#haraka

/

      • SynchroM has quit
      • EyePulp joined the channel
      • EyePulp has quit
      • EyePulp joined the channel
      • EyePulp has quit
      • EyePulp joined the channel
      • SynchroM joined the channel
      • aoc joined the channel
      • aoc has quit
      • _smf_
        morning
      • endre
        would it be a mad idea to add some sort of jsonrpc to monitor haraka internals that way?
      • _smf_
        endre: what internals do you want to monitor?
      • We've been toying with the idea of adding a REPL on a separate port for this sort of thing for ages.
      • The problem is that getting this to work nicely under cluster is 'tricky'
      • endre
        _smf_: statistics, greylist management
      • in cluster environments i'd go with mqtt
      • _smf_
        I get all of that stuff via plugins already
      • Which is why I haven't bothered too much about adding a REPL
      • endre
        i see
      • _smf_
        The most useful thing for a REPL is outbound queue management and to be able to 'tweak' Haraka on-the-fly.
      • e.g. increase/decrease child processes, force outbound queue runs, divert outbound mail to a different host etc. etc.
      • If you want stats etc. then a plugin makes the most sense IMO
      • endre
        yeah probably
      • _smf_
        For greylist stuff, I think that gets more tricky depending on how the greylist implementation works.
      • Personally - I'm using redis-timeseries for stats here.
      • And ElasticSearch for logging and more in-depth stuff.
      • My greylist implementation uses Redis too, but in a different DB.
      • But I don't really have to do any management on it - it's 100% automatic.
      • endre
        :)
      • sounds fun
      • kpsullivan joined the channel
      • lnb
        morning
      • _smf_
        morning
      • lnb
        _smf_: is there any way to get haraka to allow mail from box behind natted firewall
      • i have tried using auth on port 587 but postfix seems not to communicate it
      • when using relayhost on port 25 from postfix box, haraka says 550 no mx for domain
      • _smf_
        Fix the domain name or make some sort of exclusion for it then?
      • Or debug why Postfix isn't working over port 587.
      • lnb
        its says auth required
      • _smf_
        Yeah - we went through that already.
      • lnb
        i have it setup for auth
      • no kidding
      • i cannot get it working
      • _smf_
        The auth isn't working for some reason; you've either not set it up properly or something else is happening.
      • lnb
        i have searched all weekend for postfix docs and get the same answers and results
      • i would think postfix would say it in the maillog but it doesnt
      • _smf_
        Debug it on the Haraka end then.
      • echo LOGPROTOCOL > config/loglevel
      • and you'll see the entire SMTP conversation in the logs.
      • It should connect, send a STARTTLS to go secure, and then attempt to authenticate. If it doesn't, you've got the Postfix configuration wrong.
      • lnb
        i do see: error: open database /etc/postfix/sasl_passwd.db: No such file or directory
      • however
      • _smf_
        There's your issue then.
      • Postfix needs to know what username/password combo to use with which host.
      • lnb
        ls -l /etc/postfix/sasl_passwd.db
      • -rw-r--r-- 1 root root 12288 Mar 8 18:12 /etc/postfix/sasl_passwd.db
      • right
      • and the file is there
      • _smf_
        I'm no Postfix expert.
      • Ask on #postfix
      • My only advice would be to check that the file is in the correct database format.
      • lnb
        tell me, is there a plugin/ini one can put in names of servers behind natted firewall
      • _smf_
        e.g. it shoudln't be a text file.
      • No - because there's nothing special about natted hosts.
      • lnb
        hmm
      • _smf_
        Plus - you're using MT6, so that's a 'pre-configured' Haraka, so I've no idea whats included.
      • What you're basically wanting to say is - here's a host with a fucked-up configuration, it's internal and never sends external mail, so accept the mail - regardless of how fucked up it is.
      • The moral of the story is - don't use hostnames for servers that aren't valid out on the internet. e.g. .internal, .lan, .lab, .foobar are all a bad idea (thanks Microsoft).
      • What you want is to be able to ignore that stuff for internal hosts, so you'll have to ask ultimatt about how to do that based on the configuration and set-up he's made for MT6.
      • lnb
        hook=unrecognized_command plugin=tls function=tls_unrecognized_command params="STARTTLS" retval=OK msg=""
      • just before that line...
      • [tls] secured: cipher=AES256-SHA version=TLSv1/SSLv3 verified=false error="Error: UNABLE_TO_GET_ISSUER_CERT"
      • _smf_
        That's fine
      • lnb
        ok
      • so why doesn't it auth?
      • said: 550 Authentication required (in reply to MAIL FROM command))
      • _smf_
        Auth happens after that.
      • It's not sending it.
      • lnb
        that was from log on local
      • ok, that is not haraka problem then
      • _smf_
        Correct
      • lnb
        in looking at haraka -h relay
      • it appears one can add hosts/32 or hosts/24 allowed to relay
      • i tried that too
      • _smf_
        lnb: I suspect MT6 might use the access plug-in. You could try adding the hostname of the machine to the mail_from access file.
      • lnb
        all i get is something like 'no mx for domain'
      • _smf_
        You'll have to read the docs for that access plugin as I don't use it here.
      • If that plugin is used by MT6, then you can use it to bypass the check that's being done on the MAIL FROM address
      • And therefore it will allow the mail to pass through.
      • lnb
        there is a config/plugins #access
      • that should be uncommented?
      • _smf_
        Read the docs first
      • lnb
        what doc?
      • _smf_
        haraka -h access
      • lnb
        ok
      • _smf_
        Or look at them on the Haraka website.
      • lnb
        if #access remains commented does that mean mail_from.access.whitelist is not read?
      • uncommented #access, added public ip of server to whitelist file, sent mail -> said: 550 No MX for
      • your FROM address (in reply to MAIL FROM command)
      • this is a freaking nightmare to just get server to be able to send or relay mail
      • and it should not be
      • _smf_
        lnb: correct - if it's commented; the plugin won't be used.
      • lnb
        ok, i uncommented it, and put local public IP in the whitelist file
      • _smf_
        And you don't put the IP address of the server in the mail_from.access file; you put the hostname of the machine.....
      • lnb
        no mx from your domain
      • _smf_
        e.g. the mail from that you want to whitelist...
      • lnb
        ok
      • i will try that
      • _smf_: you are talking about the mail_from_access.whitelist?
      • i dont see just a plain mail_from_access
      • they all have .something
      • _smf_
        I don't really know - I don't use this plugin myself.
      • I guess it's called something like connect.mail_from.access.whitelist or something like that.
      • lnb
      • _smf_
        No!
      • lnb
        in the .whitelist
      • no?
      • _smf_
        myomie.internal
      • lnb
        ok
      • _smf_
        Is what you put in there.
      • lnb
        np
      • there is already an entry there from install
      • same thing :(
      • said: 550 No MX for
      • your FROM address (in reply to MAIL FROM command)
      • _smf_
        Did you restart Haraka
      • You could try root@myomie.internal then too
      • baudehlo
        morning
      • lnb
        added in regex: .*@myomie.internal
      • sender <root@myomie.internal>; code=DENY msg="No MX for your FROM address"
      • _smf_
        lnb: you can't use a regex unless you use the .regexp file IIRC
      • morning baudehlo
      • lnb
        morning baudehlo
      • there is already an entry in that regex from the initial install
      • _smf_
        no idea then. Like I said - I don't use that plugin.
      • The docs say the file should be called connect.mail_from.access.whitelist
      • lnb
        i added .*@myomie.internal to mail_from.access.whitelist_regex
      • ok one sec
      • _smf_
        Ok - lnb. Look in config/plugins and make sure that access is listed *above* mail_from.is_resolvable.
      • If it isn't, then move it so that it is. Restart Haraka
      • Then try all that stuff again.
      • lnb
        in plugins, is connect.rdns_access.whitelist supposed to be listed or is it included with access ?
      • _smf_
        Included with access
      • lnb
        there is no connect.mail_from.access.whitelist
      • _smf_
        It's one plugin and a bunch of different configuration files.
      • lnb
        ok
      • but what about the file name
      • _smf_
        access.ini controls which checks are enabled.