postal icon indicating copy to clipboard operation
postal copied to clipboard

Import/edit DKIM records

Open BornTKill opened this issue 6 years ago • 10 comments

Dear,

We plan to migrate from postfix/amavis/opendkim configuration to postal. Is there a way to import/edit DKIM records into postal ?

We have many customers and we cannot impact them with this project. Best regards.

BornTKill avatar Jul 02 '20 08:07 BornTKill

I can configure DNS records for you. I am providing my services on Fiverr.

fiverr.com/awaisshah_works

Code-with-Shah avatar Jul 02 '20 16:07 Code-with-Shah

Not sure your answer is legit.

BornTKill avatar Jul 02 '20 19:07 BornTKill

There is not an import in the UI however most of the data is managed in the database so you may be able to add all your customers and then tweak the dkim records yourself.

willpower232 avatar Jul 03 '20 08:07 willpower232

@willpower232 Thank you to confirm this point. I am going to manage it like this.

BornTKill avatar Jul 03 '20 17:07 BornTKill

@BornTKill you can have as many dkims as how many stars on night sky while their selector is unique. What an issue to add needed record to DNS?) I think implement such option to manage dkim secrets over UI is can be security issue.

dragoangel avatar Aug 03 '20 07:08 dragoangel

@dragoangel It’s not a technical problem but an organisation one. The point is that we have customers and we would like not to bother them with our migration.

However we tried to import existing dkim with DB update but because of dkim_identifier we failed. Even with dkim_identifer empty, the record stay -XxXx.domain.com : the hyphen remains unfortunately.

So we will contact our 50 customers to add new records.

BornTKill avatar Aug 03 '20 08:08 BornTKill

Oh. Clean now.

dragoangel avatar Aug 03 '20 08:08 dragoangel

@BornTKill thanks for updating us, I can see that would be annoying, I feel like a small change here would resolve it https://github.com/postalhq/postal/blob/ed7889a40e1d777f1d80821043562ab18b04766e/app/models/domain.rb#L122

I wouldn't be sure how officially supported the absence of dkim_identifier should be but for your setup, it should be fine.

willpower232 avatar Aug 03 '20 14:08 willpower232

Hey!

Thank I found this also but don’t wanna modify original source to avoid future upgrade issue 👍

Regards.

BornTKill avatar Aug 03 '20 18:08 BornTKill

Fair enough, I'm going to leave this open in case this minor change appeals to others.

willpower232 avatar Aug 11 '20 15:08 willpower232