postal icon indicating copy to clipboard operation
postal copied to clipboard

How To Stop Auto Generator DKIM Key Or Hostname

Open zeba121 opened this issue 7 years ago • 13 comments

Hello Postal Team,

How Can I stop automatic dkim generator key or hostname.

I need to stop this automatic generator.

So Please help me on my Query.

Best Regards,

Zeba

zeba121 avatar Dec 03 '19 05:12 zeba121

I'm not sure you can or should, Postal should still be signing the emails with it so needs this information.

You may be able to set it to what you want in the database if you already have something you want but I'm not sure how well that would work.

willpower232 avatar Dec 04 '19 10:12 willpower232

Hello @willpower232

I have to try pass dns records on default domain or existing domain in postal.

If the sender send mail with existing domain so the dns records pass on the existing domain.

If the sender send mail without existing domain then the dns records pass with default domain.

check this i have edit in this file

https://github.com/postalhq/postal/blob/master/lib/postal/smtp_server/client.rb line no. 394

image

I have try this but when the sender send mail with existing domain so the dns records doesn't pass on the existing domain.

Or when the sender send mail without existing or not existing domain then the dns records pass with default domain.

Thank You

zeba121 avatar Dec 07 '19 08:12 zeba121

I'm not completely familiar with the process but the DKIM functionality relies on a private key amongst other things.

You can access this private key in your postal database if you connect directly to it with a program such as heidisql.

Can you explain what you're trying to accomplish and why? The DKIM record generated by Postal uses a separate identifier so should not interfere with anything already existing.

willpower232 avatar Dec 09 '19 09:12 willpower232

Hello @willpower232

Because i want to send mail without existing or existing domain in Postal but the dns records pass on both of condition same, that's why i want to try this.

zeba121 avatar Dec 09 '19 10:12 zeba121

Postal has to know at least one domain to allow you to send from it but you can make use of the Sender header to allow you to send from other domains, have a look at https://github.com/postalhq/postal/issues/277#issuecomment-316034829

willpower232 avatar Dec 09 '19 12:12 willpower232

Hello @willpower232 ,

https://github.com/postalhq/postal/issues/277#issuecomment-316034829

i have do this but its not according to my need.

1st Point

I want do this:-

image

image

If the domain is not fetching the dkim is pass on Default Domain

image

2nd Point

Whenever we delete the domain, the SPF and other records are not changed, only the dkim key changed. so i want to fixed the dkim value for every domain.

So that the dkim value is always fixed and whenever I add the domain then all the records become active.

If It is Possible any so please help me on this.

Thank You

zeba121 avatar Dec 10 '19 09:12 zeba121

I think I understand, if you remove the additional domain from your Postal and send using it anyway, which DKIM domain does it use?

willpower232 avatar Dec 10 '19 10:12 willpower232

No I want send both condition if we have add additional domain or remove domain from postal.

zeba121 avatar Dec 10 '19 10:12 zeba121

Then I probably don't understand what you're doing sorry

willpower232 avatar Dec 10 '19 11:12 willpower232

Whenever we delete the domain, the SPF and other records are not changed, only the dkim key changed. so i want to fixed the dkim value for every domain.

So that the dkim value is always fixed and whenever I add the domain then all the records become active.

If It is Possible.

zeba121 avatar Dec 10 '19 11:12 zeba121

Hi @willpower232,

My issue are same as describe in this case,

I just want that i have one dkim key which are applied all my server domain in the postal.

bpareek9694 avatar Dec 10 '19 11:12 bpareek9694

In theory you can update the database manually so that the DKIM private key is the same for your domains which I believe would make the values match.

willpower232 avatar Dec 10 '19 11:12 willpower232

Thanks for reply @willpower232

i already change private key according to #616 But when i send a mail using postal to my gmail account, the dkim are not finding key https://prnt.sc/q8s0od

after that i can check dkim status in domain setting in postal... it's show varified...https://prnt.sc/q8s2m6

and also i generate dkim key using online tools,

bpareek9694 avatar Dec 10 '19 12:12 bpareek9694