Page 1 of 1

Spamgourmet SMTP status checker

PostPosted: Sat Oct 01, 2011 11:17 am
by gourmet
Hi,

I know many people are using "home internet connection" where firewalls block SMTP connections. Therefore I wrote simple webapp which checks SMTP status for spamgourmet when ever requested:
http://s.sami-lehtinen.net/c/sc?sg
It either gives you green OK and red ERROR describing the problem. So next time when you find out that spamgourmet isn't working normally or mail delivery is taking exceptionally long time you can check status and report it here.
I assume server is giving out 421 messages bit too often.
Any comments or thoughts?

Br.
Sami

PostPosted: Mon Oct 03, 2011 9:05 am
by TerDale
Hi Sami,

Good initiative, bookmarked it.
Thanks.

PostPosted: Mon Nov 14, 2011 4:41 pm
by gourmet
TerDale wrote:Hi Sami,
Good initiative, bookmarked it.
Thanks.


Yeah. My VPS hosting company crashed yesterday. I need to look for new VPS hosting and set up services again. Which should be quite trivial task. But service is going to be down for a while.

(I was kind of expecting this, I have full backup)

PostPosted: Wed Nov 16, 2011 1:04 am
by lwc
The link is dead. But I didn't understand what does it check. Spamgourmet only accepts incoming messages from outside.

PostPosted: Thu Jan 05, 2012 8:33 am
by gourmet
lwc wrote:The link is dead. But I didn't understand what does it check. Spamgourmet only accepts incoming messages from outside.


Yep, when I have right time and feeling. I'll set it up on my new server. Unfortunately new platform is using Nginx and uWSGI and old solution was CGI based (Apache & Python 3). I assume it'll take about one hour to get it working.

Service checks for SpamGourmet's SMTP availability. It doesn't send anything and closes connection immediately after check and caches result for 5 minutes.

I'll write here when it's online again. - Thanks

Re: Spamgourmet SMTP status checker

PostPosted: Wed Apr 11, 2012 4:35 pm
by gourmet
Working again.

Unfortunately I had some WSGI and VPS issues... ;)

But now it's running again.

http://s.sami-lehtinen.net/c/sc?sg

PostPosted: Thu Apr 12, 2012 7:20 am
by TerDale
Oops... told me that this morning:
Code: Select all
AttributeError: 'str' object has no attribute 'decode'
      args = ("'str' object has no attribute 'decode'",)
      with_traceback = <built-in method with_traceback of AttributeError object>

PostPosted: Thu Apr 12, 2012 7:22 am
by TerDale
...while 2nd attempt was OK!?

PostPosted: Sat Apr 14, 2012 8:35 am
by gourmet
TerDale wrote:...while 2nd attempt was OK!?


Yep, it was about string content if it failed or not. I have to do bit more debugging. Of course I can try to catch the error.

I also added a few more parameters, now that script is able to check few more services. http://s.sami-lehtinen.net/c/sc for help.

Issue was caused by python version upgrades. Those aren't absolutely compatilbe. Good tip. Now it seems to be working, if you encounter any problems, please send full stack trace to me privately.

- Thank you

PostPosted: Mon Apr 16, 2012 8:17 am
by TerDale
OK, thanks.