#1  
Old 29th September 2011, 03:45
Kira Kira is offline
Member
 
Join Date: Jun 2011
Posts: 41
Thanks: 0
Thanked 3 Times in 3 Posts
Default Is the SMTP safe?

Hi,

I just found out I can connect to my SMTP Server via pythons smtplib without the need to login and send mails to whatever address with a random 'from'-address.

I did some relay tests online and they all say it's relay safe.. but... is it a correct behaviour?

As an example:

Code:
smpt = smptllib.SMTP('myServer.de')
smpt.sendmail('bla@blubb.com', 'someone@somewhere.de', '....;)
smpt.quit()
This works, and I am doing this from remote, not locally on my Server.

Kira
Reply With Quote
Sponsored Links
  #2  
Old 29th September 2011, 10:35
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,006
Thanks: 840
Thanked 5,650 Times in 4,460 Posts
Default

Yes, thats the correct behaviour.

There are 3 possibilitys where every mailserver ahs to accept emails:

1) The email is from localhost
2) The email is sent from a server that we allow to relay. See mynetworks setting in main.cf
3) The recipient domain is a local domain of this server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 29th September 2011, 11:11
Kira Kira is offline
Member
 
Join Date: Jun 2011
Posts: 41
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hi,

thanks for your answer.

I did the test above from my machine at work.
None of the 3 points you mentioned match this machine - I think.

So is this realy correct?

Thanks,
Kira
Reply With Quote
  #4  
Old 29th September 2011, 11:13
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,006
Thanks: 840
Thanked 5,650 Times in 4,460 Posts
Default

Use this test to find out if your machine relays:

http://www.abuse.net/relay.html

Leave the email field empty or use a external address like gmail.

If you followed the perfect setup guide to install your server, then it is no open relay.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 29th September 2011, 12:00
Kira Kira is offline
Member
 
Join Date: Jun 2011
Posts: 41
Thanks: 0
Thanked 3 Times in 3 Posts
 
Default

Okay, seems to be safe..
Though I don't understand why I can do what I described above..

Thanks a lot,
Kira
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Email Working ISPConfig3 Squirrelmail and Courier etc Ian Wilson Installation/Configuration 17 19th June 2013 23:58
amavis rejects all inbound emails aclhkaclhk Installation/Configuration 5 28th February 2010 05:24
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 13:20
Postfix issues NewMee Installation/Configuration 7 20th April 2009 19:52
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 16:47


All times are GMT +2. The time now is 11:05.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.