Spamgourmet SMTP status checker

Discussion of items in the "What's New" log.

Spamgourmet SMTP status checker

Postby gourmet » Sat Oct 01, 2011 11:17 am

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
gourmet
 
Posts: 121
Joined: Thu Mar 27, 2008 4:46 pm

Postby TerDale » Mon Oct 03, 2011 9:05 am

Hi Sami,

Good initiative, bookmarked it.
Thanks.
TerDale
 
Posts: 20
Joined: Fri Oct 01, 2004 8:03 am
Location: France

Postby gourmet » Mon Nov 14, 2011 4:41 pm

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)
gourmet
 
Posts: 121
Joined: Thu Mar 27, 2008 4:46 pm

Postby lwc » Wed Nov 16, 2011 1:04 am

The link is dead. But I didn't understand what does it check. Spamgourmet only accepts incoming messages from outside.
lwc
 
Posts: 339
Joined: Sat Aug 28, 2004 9:09 am

Postby gourmet » Thu Jan 05, 2012 8:33 am

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
gourmet
 
Posts: 121
Joined: Thu Mar 27, 2008 4:46 pm

Re: Spamgourmet SMTP status checker

Postby gourmet » Wed Apr 11, 2012 4:35 pm

Working again.

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

But now it's running again.

http://s.sami-lehtinen.net/c/sc?sg
Last edited by gourmet on Fri Apr 20, 2012 5:11 am, edited 1 time in total.
gourmet
 
Posts: 121
Joined: Thu Mar 27, 2008 4:46 pm

Postby TerDale » Thu Apr 12, 2012 7:20 am

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>
TerDale
 
Posts: 20
Joined: Fri Oct 01, 2004 8:03 am
Location: France

Postby TerDale » Thu Apr 12, 2012 7:22 am

...while 2nd attempt was OK!?
TerDale
 
Posts: 20
Joined: Fri Oct 01, 2004 8:03 am
Location: France

Postby gourmet » Sat Apr 14, 2012 8:35 am

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
Last edited by gourmet on Fri Apr 20, 2012 5:11 am, edited 1 time in total.
gourmet
 
Posts: 121
Joined: Thu Mar 27, 2008 4:46 pm

Postby TerDale » Mon Apr 16, 2012 8:17 am

OK, thanks.
TerDale
 
Posts: 20
Joined: Fri Oct 01, 2004 8:03 am
Location: France


Return to What's New

Who is online

Users browsing this forum: No registered users and 7 guests

cron