-
-
Notifications
You must be signed in to change notification settings - Fork 709
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
Email delivery failure messages no such grain with email not configured #3678
Comments
Does your config file say it's using port 25 for inbound email? In most cases, it's port 30025 by default. And is that port blocked? I'm wondering if port scanners or something might be causing it. |
My
Since this says 25, I assumed 25. I was (and still am) using a hosting mail port block feature, and after a quick test it appears to be working. Telnetting to 30025 gets connection refused, as it should. So it is unlikely to be an external port scanner. Bug 1: Incorrect docs or installation script. I can get to 25 via localhost, so that suggests one of the other sandstorm apps may be doing something. Sandstorm (tt-rss and davros) is all I am running on this VPS. The part that confuses me, is where it is getting the grain names from. As I understand it, the mail server maps randomly generated ids back into into grains then delivers them. None of the grain names is anything thing I have ever had running. Where did they come from? Is it residue from installation? And this appeared in in the last 20 minutes, so whatever it is it is still an issue.
So, lets see what the mail server does:
Gives me
Bug 2: Error message should probably be changed to "No such grain id" This implies that either Davros or TT-RSS is sending mail. Is that even allowed? I figured there would be a capability to allow mail sending. |
I believe the current mail implementation is a legacy hack, but I'm reasonably sure neither TTRSS nor Davros use it. I am almost positive this refers to mail coming from outside directed at Sandstorm. 🤔 |
How? Port 25 is blocked. Try
In Admin/Email Configuration, is says "Email is unconfigured. Email-related features like email login, notifications, sharing invitations, and requesting access will be unavailable until you configure email." and the SMTP host field is blank. Is there anything else that has to be done to turn outbound mail off? Is there any way of just turning inbound mail off? |
Is there anything locally on the machine that could be sending to port 25? 🤔 I mean, I'm not sure it can do any harm, you have no apps that can process inbound mail anyways. But it is strange. |
I've got a support email into the hosting provider to see if there is anything weird about the port block. Should be either a config option or something in the sandstorm admin pages to turn off incoming mail. The less attack surface the better. |
I agree. Honestly the docs suggest if you remove the config line entirely it will just use 30025, and it seems to me if the config is missing we should just not do inbound mail. It's currently not critical functionality to begin with. |
30025 as a default agrees with what it looks like the code does. I think I agree that the "right" behavior would be to just not listen via SMTP. I'm mildly hesitant to change it though since it is possible someone is relying on the current behavior. Either way, providing some way to disable inbound mail would probably be good. |
My attempt at fixing the error message: #3683 |
Have you had any luck determining the source of these? |
Apparently a config glitch at the hosting company, the port block was not applied to the internal datacenter IP. The hosting co is in the process of determining who is spamming us. |
Sadly, since the logs in sandstorm aren't very good, I can't help them with mail headers or anything. I've moved the mail port off to 30025 for now and stuck a python smtpd debugging server on 25 to see if it catches anything. |
With mail not configured in my selfhosted sandstorm, I got a piled of weird email failure messages. The especially weird part is there has never been grains with those names on my sandstorm installation. For that matter port 25 is blocked. Any idea what is happening?
As an aside, the lack of timestamps in the log file is making troubleshooting very difficult.
The text was updated successfully, but these errors were encountered: