Giter Site home page Giter Site logo

Comments (10)

msimerson avatar msimerson commented on June 6, 2024

If you merely claim that you followed the instructions, nobody can help you. Prove it. Show us what you did. hint: https://haraka.github.io/plugins/dkim_sign#single-domain-configuration

from haraka-plugin-dkim.

ravivgolov avatar ravivgolov commented on June 6, 2024

I will show:
I used the dkim generator provided dkim_key_gen.sh.
Folder: relay.mymta.com contains all the files: DNS, selector, private, public
Screenshot 2024-04-17 004630

dkim_sign.ini:

[main]


[sign]
enabled = true
selector = apr2024
domain = relay.mymta.com
key_path = /opt/haraka/config/dkim/relay.mymta.com/private

DKIM set in the main domain:

ubuntu@relay:/opt/haraka$ dig apr2024._domainkey.relay.mymta.com TXT +short
"v=DKIM1;p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4SyoWWf7/G0gkeIdxl7kEWojoDmiNIhMupB9gOhtYcBDPLVXcGF2ksVD0ztkU9SYhuFYOUgGeooHKr+hGcOQclSsbw2+ deleted the rest"
ubuntu@relay:/opt/haraka$

I also tried to copy the private file generated in the dkim folder under the main domain and renamed the file:
key_path = /opt/haraka/config/dkim.private.key

from haraka-plugin-dkim.

msimerson avatar msimerson commented on June 6, 2024

Try configuring it EXACTLY as the docs specify.

The DKIM plugin was recently republished, you are using the old version, so continue following the docs you originally cited above.

Your dkim_sign.ini file should be configured thusly:

selector=apr2024
domain=relay.mymta.com
headers_to_sign=From, Sender, Reply-To, Subject, Date, Message-ID, To, Cc, MIME-Version

And your DKIM private key should be stored as config/dkim.private.key

from haraka-plugin-dkim.

ravivgolov avatar ravivgolov commented on June 6, 2024

Thanks,
That worked.

I'm confused about which documentation to follow - the one in the "Getting Started" section or the one in the "Plugins" page under the github repo. Can you please advise me on which one is more recent?

from haraka-plugin-dkim.

msimerson avatar msimerson commented on June 6, 2024

If you're using a version of Haraka older than 2.0.4 (not yet released), then follow the docs that came with Haraka. (haraka -h dkim_sign). For newer versions (after the DKIM plugin was repackaged as a NPM module), the docs here in this repo are the most current.

from haraka-plugin-dkim.

ravivgolov avatar ravivgolov commented on June 6, 2024

Thank you,
I have Haraka version 3.0.3 and I followed your suggestions. One thing I am trying to do is deny mail from IPs when SPF fails, and here is my SPF configuration:

[relay]
context=myself

[defer]
helo_temperror=true
mfrom_temperror=true

[deny]
mfrom_fail=true
openspf_text=true

[deny_relay]
mfrom_fail=true
openspf_text=true

I am still able to use any domain without the SPF, how can I achieve that?

from haraka-plugin-dkim.

msimerson avatar msimerson commented on June 6, 2024

Keep reading the spf plugin docs

from haraka-plugin-dkim.

ravivgolov avatar ravivgolov commented on June 6, 2024

I have read it like 10 times, but I am not able to figure out, what is wrong here?
spf.ini
[deny]
mfrom_fail=true

from haraka-plugin-dkim.

msimerson avatar msimerson commented on June 6, 2024

Look at all the entries in the [deny] block in the docs. Use your knowledge about SPF and SMTP to deduce what they apply to. Twiddle the knobs to do the needful.

from haraka-plugin-dkim.

ravivgolov avatar ravivgolov commented on June 6, 2024

Finally, I have resolved the issue where the signed domain was showing Softfail by adding softfail and none to the config. It took me several hours, but I have successfully set up the entire system including Haraka's filters, options, and optimization to prevent spam and bounce.

However, I still have a few questions regarding the email queue log to avoid email marketing. I believe the Karama plugin handles domain reputation, but I'm not sure how to see the stats of the domain's reputation with Karama. What is the best way to monitor outgoing emails for spam, email marketing, and bounces?

How much retention of the score stats are saved on Redis?
Amazing MTA by the way. can be achieved with the right configuration the perfect MTA with the perfect filters.

By the way, is there any way to add a spammer automatically to the access.domains or mail_from.access.blacklist? or even dnsbl detection to the connect.rdns_access.blacklist?

Screenshot 2024-04-17 100628

from haraka-plugin-dkim.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.