o4oren / Ad-Hoc-Email-Server

An ad-hoc disposable temporary mail server. Create and use ad hoc disposable mailboxes for testing or any other purpose.
Apache License 2.0
381 stars 92 forks source link

Internal server error #6

Closed thamerla closed 4 years ago

thamerla commented 5 years ago

While calling https://www.ahem.email/api/mailbox/tester123: "error": "Error | Cannot find module 'html'"

o4oren commented 5 years ago

It means you are not running from the root of the project and the path to the distance folder is wrong.

erm3nda commented 5 years ago

@nonyy same problem, check this: https://github.com/o4oren/Ad-Hoc-Email-Server/issues/4

bhargavi6776 commented 5 years ago

Hi @o4oren and @quoctru99 I followed the same instructions mentioned. I edited the properties file to according to my requirement. But still, I am unable to receive an email to the mail I mentioned. image

o4oren commented 5 years ago

There is no indication here of an email session starting. I cannot debug why an email doesn't reach the server. Verify that it listens on port 25 (on some Linux distribution this port is already in use by postfix by decault). And that the server is accessible to the send email server.

On Mon, May 27, 2019, 12:52 bhargavi6776 notifications@github.com wrote:

Hi, I followed the same instructions mentioned. I edited the properties file to according to my requirement. But still, I am unable to receive an email to the mail I mentioned. [image: image] https://user-images.githubusercontent.com/51079380/58411972-24f38e00-8093-11e9-9864-af89d89d5fd8.png

— 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/6?email_source=notifications&email_token=AFTF65ULFKG7TJAJEXUIIVLPXOVMDA5CNFSM4GSYBJJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWJLNTI#issuecomment-496154317, or mute the thread https://github.com/notifications/unsubscribe-auth/AFTF65UZ26ULCO4YNKL2HY3PXOVMDANCNFSM4GSYBJJQ .

bhargavi6776 commented 5 years ago

@o4oren I am using windows not Linux and I am using default setting as mentioned in Git. NodeJS and MongoDB installed and following as these steps https://www.ahem.email/blog/post/how-to-set-up-your-own-disposable-email-server

o4oren commented 5 years ago

But you can see that the default port is 2525. The paragraph below states: Note that by default it is set to 2525 — this is done for testing purposes, as on many systems only a system account can listen on port 25. To receive standard SMTP email, change this to 25.

On Mon, May 27, 2019 at 2:04 PM bhargavi6776 notifications@github.com wrote:

@o4oren https://github.com/o4oren I am using windows not Linux and I am using default setting as mentioned in Git. NodeJS and MongoDB installed and following as these steps https://www.ahem.email/blog/post/how-to-set-up-your-own-disposable-email-server

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/o4oren/Ad-Hoc-Email-Server/issues/6?email_source=notifications&email_token=AFTF65XIDBCMKKX3XEM2DRTPXO52BA5CNFSM4GSYBJJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWJQI4Y#issuecomment-496174195, or mute the thread https://github.com/notifications/unsubscribe-auth/AFTF65V2NK3WJPMLLRKITFTPXO52BANCNFSM4GSYBJJQ .

bhargavi6776 commented 5 years ago

@o4oren Yes, I kept it is 25 but still I am unable to receive the mail. After connecting to the mongodb on this port it is still showing waiting for the connection image. I guess this is the problem how can I solve this?

o4oren commented 5 years ago

What is this log? It looks like a mongodb log, not the ahem server log....

bhargavi6776 commented 5 years ago

I created my domain and I logged in with some random name it is giving "404" image

bhargavi6776 commented 5 years ago

@o4oren If I try working with API it is giving me this error. Please help me with this.

image

o4oren commented 5 years ago

Tgat is because there is no email in the mailbox.

On Mon, May 27, 2019, 15:26 bhargavi6776 notifications@github.com wrote:

I created my domain and I logged in with some random name it is giving "404" [image: image] https://user-images.githubusercontent.com/51079380/58419631-c5a07880-80a8-11e9-971c-ba62d566dc74.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/o4oren/Ad-Hoc-Email-Server/issues/6?email_source=notifications&email_token=AFTF65UMNNJMITNY47IZ27TPXPHQFA5CNFSM4GSYBJJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWJVR2Y#issuecomment-496195819, or mute the thread https://github.com/notifications/unsubscribe-auth/AFTF65VNJIFPREYMYFA2I7LPXPHQFANCNFSM4GSYBJJQ .

bhargavi6776 commented 5 years ago

@o4oren what about the above screenshot even when I tried to check the mail is up or not it is still showing 404

o4oren commented 5 years ago

Its 404 BECAUSE an email does nkt exist for this mailbox. The mailbox is created WHEN an email arrives at the server with its address. So it really doesn't exist.

On Tue, May 28, 2019, 09:59 bhargavi6776 notifications@github.com wrote:

@o4oren https://github.com/o4oren what about the above screenshot even when I tried to check the mail is up or not it is still showing 404

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/o4oren/Ad-Hoc-Email-Server/issues/6?email_source=notifications&email_token=AFTF65WGXYCOTNFBCYVVKF3PXTJ4FA5CNFSM4GSYBJJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWLE4WQ#issuecomment-496389722, or mute the thread https://github.com/notifications/unsubscribe-auth/AFTF65WSCPO6LOSWGIGERPLPXTJ4FANCNFSM4GSYBJJQ .

bhargavi6776 commented 5 years ago

Okay, if I sent mail to test123@mydomain.com then if I go and check in the mailbox I should get a mail right?

o4oren commented 5 years ago

You can try calling: [server address]/api/alive It should respond with something like: {"success":true,"api":true,"smtp":true,"db":true} Which means api server responded, smtp server responded and managed to receive an email, and db connection succeeded. Then browse to [server address]/mailbox/alive-test and you should see an email there. This will mean all is working fine with the ahem server. It managed to send (it can only send internally to itself), receive and store an email. And its a proof that your problem is that emails from wherever you are sending emails cannot reach the ahem server...

bhargavi6776 commented 5 years ago

@o4oren So, I can't send mail from other domains like Gmail to my created domain?

o4oren commented 5 years ago

You can if your server is accessibke from the outside world on port 25 and you have the mx and other dns records of your domain set right. Its all documented. It is beyond the scope of my project.

On Tue, May 28, 2019, 10:24 bhargavi6776 notifications@github.com wrote:

@o4oren https://github.com/o4oren So, I can't send mail from other domains like Gmail to my created domain?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/o4oren/Ad-Hoc-Email-Server/issues/6?email_source=notifications&email_token=AFTF65QMOOFPKZ636KWAX33PXTM3TA5CNFSM4GSYBJJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWLGXCY#issuecomment-496397195, or mute the thread https://github.com/notifications/unsubscribe-auth/AFTF65WQE2OU6AVDZHMDIS3PXTM3TANCNFSM4GSYBJJQ .