Menu

#37 sign extra domains

2.10.3
open
nobody
None
5
2019-08-26
2017-02-28
isaac
No

I am trying to add a signature using lua but not working. domain is in SignTable and KeyTable.
for example if my domain was example.com, I am making the follwing call, but example.com is not added.
odkim.signfor(ctx,"test@example.com")

Thanks in advance.

Related

Support Requests: #37

Discussion

  • Mike Daoust

    Mike Daoust - 2017-03-01

    I have some experience signing for multiple domains using a key and signing table.Im not super clear on your example though, are you simply wanting to be able to sign for @example.com and also sign for @example2.com?  Do you want to use the same key for both or different keys?

      From: isaac <isaacd@users.sf.net>
    

    To: Ticket 37 37@support-requests.opendkim.p.re.sf.net
    Sent: Tuesday, February 28, 2017 5:49 PM
    Subject: [opendkim:support-requests] #37 sign extra domains

    [support-requests:#37] sign extra domainsStatus: open
    Group: 2.10.3
    Created: Tue Feb 28, 2017 11:48 PM UTC by isaac
    Last Updated: Tue Feb 28, 2017 11:48 PM UTC
    Owner: nobodyI am trying to add a signature using lua but not working. domain is in SignTable and KeyTable.
    for example if my domain was example.com, I am making the follwing call, but example.com is not added.
    odkim.signfor(ctx,"test@example.com")Thanks in advance.Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/opendkim/support-requests/37/To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

     

    Related

    Support Requests: #37

    • isaac

      isaac - 2017-03-01

      Mike,

      Thanks for getting back to me.

      I am trying to create a second signature that would be unique for anyone sending from within my platform. By doing this I can build custom repuation on each sender using a domain I own.

      SignTable has entry: @.example.com example_key
      KeyTable has entry: example_key %:selector:private.flie

      Emails could get 2 signatures.
      1) the from address domain
      2) xyz.example.com where xyz is custom identifier per sender.

      In Lua I am able to get xyz.example.com throught odkim.get_header(ctx,"HEADER",0), but when I pass it to odkim.signfor(ctx,Header) nothing happens.

      I do not want to have 2 opendkim processes running in order to add second signature.

      Thanks Again,

      Isaac

       
  • isaac

    isaac - 2017-03-03

    A followup.

    I took a look at the code inside the "dkimf_xs_signfor" method. I found that lua_pop(l,top) is causing ctx to be null. I commented it out and recompiled. The "signfor" method then did work, but it added a signature for the wrong domain.

    The only way I see I will be able to do what I am an looking to do is to add a second opendkim process running with a different config.

    Thanks,

    Isaac

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.