-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standalone server starts and serves back "success" messages, but no texts are received #98
Comments
I tried to debug this today but didn't make a lot of useful progress. Just got a better understanding of how textbelter works. What I'm trying to see is if I can use mutt to send out a text message by itself. Based on what is generated in textbelter, I used the following command + args:
This forces me to go through the interactive message prompts to write and send my message, which I do. Mutt then outputs a message stating the mail was sent successfully, but I still don't get a text. I'm not sure what could be causing this. I'll keep looking into it, but if someone has some insight as to what's needed to send a text through mutt, it'd be greatly appreciated as I could debug my own issue much more easily. |
Added the following to my Vagrantfile so DNS resolution would happen in my host:
After running mutt again, checking my /var/log/mail.log (mutt logg) gave me some more information:
All the carriers mutt attempted this with returned the same result. At this point this issue is clearly not a result of textbelt. However, it would be nice to know the DNS settings for the machine running textbelt. It could help those of us trying to run it standalone. |
After a lot of effort I discovered and fixed a few things. While I'm not sending out smtp directly from mutt to the recipient, I'm ok with my setup now that it works - I'm using Gmail as a relayhost now after fighting for 3 days through weird DNS problems. Not exactly how I want it to work (I'd prefer to send SMTP directly from the machine to the recipient) but at least it works for development purposes. The first thing I did was check my Windows host machine's DNS settings. Under
This fix allowed me to However, it did not fix hostname resolution from inside the VM. To fix this, in vagrant, my Feeling confident, I tried running textbelt standalone again with |
I should mention that I also configured postfix to use a port other than 25 in the
with this one:
Then restarted postfix with this command: Did not help the At least I tried a bunch of things before giving up and using a relayhost! If any devs have any insight as to why the connection keeps timing out, I'd love to hear it. I would definitely prefer to not have a relayhost. |
I'm going to leave this open as I am still hoping for a better solution than being forced to use a relayhost to run textbelter. Namely, I'd just like to send outgoing mail directly to recipients (as I've stated). |
Thanks for debugging this so thoroughly. The mail sending mechanism has always been a headache, and the dependency on mutt is pretty weird. I have not run this on vagrant before and haven't had issues with hostname resolution, but let's keep this issue open in case it's useful or relevant to someone in the future. |
I'm in the US for what it's worth.
If no one has an answer I'll start looking into this one. If someone knows why this doesn't work on standalone servers that would also be great.
The text was updated successfully, but these errors were encountered: