HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Is the SMTP safe? (http://www.howtoforge.com/forums/showthread.php?t=54336)

Kira 29th September 2011 02:45

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

till 29th September 2011 09:35

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.

Kira 29th September 2011 10:11

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

till 29th September 2011 10:13

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.

Kira 29th September 2011 11:00

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

Thanks a lot,
Kira


All times are GMT +2. The time now is 07:47.

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