LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Open Relay test another server using linux (https://www.linuxquestions.org/questions/linux-general-1/open-relay-test-another-server-using-linux-35364/)

antken 11-13-2002 07:36 AM

Open Relay test another server using linux
 
hi,


how would i go about testing a mail server on my network for openrelay-ness using linux?

i am asking because i am replacing a huge mailserver that is a massive open relay and i want to make sure it is secure before it goes live again and we get black listed


any ideas?

unSpawn 11-13-2002 08:36 AM

I think you'll find this interesting: http://www.geocities.com/spamresourc....htm#test-self

antken 01-06-2003 08:58 AM

i found out how to do it manually eventually

step 1. ( joe.doe.com = your server ) telnet your server on the smtp port ( 25 ) to open a connection

telnet joe.doe.com 25

step 2. identify your self ( my.addr is your boxes ip address )


helo my.addr

step 3. tell the server who the message if from

mail from:spammer@badhost.com

step4. tell your server who the message is going to ( final destination )

rcpt to:tobespammed@targetuser.com

at this point it will either say:
ok... will forward ( or something to that effect ) - this is bad your mail server is an open relay, you need to fix it ASAP

relaying not allowed ( or something to that effect ) - this is good your attempted message has been blocked and your server is not an open relay


it may be best to test this from outside your network because some mail servers are setup to relay everything from inside its local network


All times are GMT -5. The time now is 07:17 AM.