Ad-Hoc-Email-Server icon indicating copy to clipboard operation
Ad-Hoc-Email-Server copied to clipboard

Error: failed to verify token... renewing

Open bizfreak22 opened this issue 5 years ago • 9 comments

Hello,

Not sure why I am getting this error. The docs state that jwtExpiresIn:-1 will not enforce authentication..not sure what else to do at this point.

bizfreak22 avatar Aug 19 '20 07:08 bizfreak22

It should work, i see the code there, though i haven't used it in a while. How are you configuring it? And why not just use the token? I left this backdoor mostly for backwards compatibility with automation systrms in a place i worked for a long time ago...

o4oren avatar Aug 19 '20 22:08 o4oren

It should work, i see the code there, though i haven't used it in a while. How are you configuring it? And why not just use the token? I left this backdoor mostly for backwards compatibility with automation systrms in a place i worked for a long time ago...

Hi bro, Great tool you made there, but I’m having the same issue ... not working really .. Any chance you’re helping an Israeli out ? ;) hhhhhh I’m about to give up on this lol .. I can hire your services , just need to fix it , hehe Rak bibi

Vastelo avatar Aug 20 '20 18:08 Vastelo

What is the error? How did you configure it? Env variables? Or properties.json?

On Thu, Aug 20, 2020, 21:37 Vastelo [email protected] wrote:

It should work, i see the code there, though i haven't used it in a while. How are you configuring it? And why not just use the token? I left this backdoor mostly for backwards compatibility with automation systrms in a place i worked for a long time ago...

Hi bro, Great tool you made there, but I’m having the same issue ... not working really .. Any chance you’re helping an Israeli out ? ;) hhhhhh I’m about to give up on this lol .. I can hire your services , just need to fix it , hehe Rak bibi

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/o4oren/Ad-Hoc-Email-Server/issues/32#issuecomment-677830922, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFTF65QWIO777P7ZAWJBER3SBVUNTANCNFSM4QETPDFA .

o4oren avatar Aug 20 '20 19:08 o4oren

What is the error? How did you configure it? Env variables? Or properties.json?

Ok now I see it’s fine , it was ports issue But now I have a question ... If I set 2 domains, to the same ip (dns settings) , including Mx etc ... Is there a way to have it work as “catch all” ? Depending on the url I’m coming from ?

I mean some setting on the env so it’ll allow all Domains and not just specific ones

Vastelo avatar Aug 20 '20 19:08 Vastelo

No... It was this way initally, i had to make it specific because it was exploited by spammers as a mail relay. So it only accepts emails where the recipient is on these domains. And won't allow relaying otherwise...

But you can fork the code and remkve the check quite easily. Its in the smtp.js file under server.

On Thu, Aug 20, 2020, 22:29 Vastelo [email protected] wrote:

What is the error? How did you configure it? Env variables? Or properties.json? … <#m_5109917104518087944_>

Ok now I see it’s fine , it was ports issue But now I have a question ... If I set 2 domains, to the same ip (dns settings) , including Mx etc ... Is there a way to have it work as “catch all” ? Depending on the url I’m coming from ?

I mean some setting on the env so it’ll allow all Domains and not just specific ones

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/o4oren/Ad-Hoc-Email-Server/issues/32#issuecomment-677856794, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFTF65Q7J7G2D3GAERXM623SBV2QZANCNFSM4QETPDFA .

o4oren avatar Aug 20 '20 19:08 o4oren

No... It was this way initally, i had to make it specific because it was exploited by spammers as a mail relay. So it only accepts emails where the recipient is on these domains. And won't allow relaying otherwise... But you can fork the code and remkve the check quite easily. Its in the smtp.js file under server.

I can see that the emails are received, although it doesn’t let me enter to the second domain mailbox ..

So if I have two domains pointed at: xx ip

Wether I go from domain1 or domain2 It always gets to the same inbox .. And only domain 1 is getting the emails Although I can see in the logs the mails are received

Vastelo avatar Aug 20 '20 20:08 Vastelo

Check serveraddress/api/properties, see that the server recognizes all the domains in a json array?

On Fri, Aug 21, 2020, 00:02 Vastelo [email protected] wrote:

No... It was this way initally, i had to make it specific because it was exploited by spammers as a mail relay. So it only accepts emails where the recipient is on these domains. And won't allow relaying otherwise... But you can fork the code and remkve the check quite easily. Its in the smtp.js file under server. … <#m_-3194045365004997194_>

I can see that the emails are received, although it doesn’t let me enter to the second domain mailbox ..

So if I have two domains pointed at: xx ip

Wether I go from domain1 or domain2 It always gets to the same inbox .. And only domain 1 is getting the emails Although I can see in the logs the mails are received

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/o4oren/Ad-Hoc-Email-Server/issues/32#issuecomment-677894678, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFTF65UJFVQHYNQYC6GPABLSBWFN7ANCNFSM4QETPDFA .

o4oren avatar Aug 20 '20 21:08 o4oren

Check serveraddress/api/properties, see that the server recognizes all the domains in a json array? On Fri, Aug 21, 2020, 00:02 Vastelo @.***> wrote: No... It was this way initally, i had to make it specific because it was exploited by spammers as a mail relay. So it only accepts emails where the recipient is on these domains. And won't allow relaying otherwise... But you can fork the code and remkve the check quite easily. Its in the smtp.js file under server. … <#m_-3194045365004997194_> I can see that the emails are received, although it doesn’t let me enter to the second domain mailbox .. So if I have two domains pointed at: xx ip Wether I go from domain1 or domain2 It always gets to the same inbox .. And only domain 1 is getting the emails Although I can see in the logs the mails are received — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#32 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFTF65UJFVQHYNQYC6GPABLSBWFN7ANCNFSM4QETPDFA .

bro, maybe I give you access and you help ? lol ive been breaking my head about this for the past 5 hours .. seems like you know how to fix it .. lol

Vastelo avatar Aug 20 '20 21:08 Vastelo

@Vastelo I have it working with receiving emails for multiple domains. I use the .env method of setting my params. I have one of the following lines (I changed the domains of course). allowedDomains=domain1.com,domain2.com

brainomite avatar Sep 01 '20 00:09 brainomite