Koozali.org: home of the SME Server

Open Relay Advice

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Open Relay Advice
« on: December 07, 2005, 06:15:51 PM »
All of a sudden ISP's are refusing mail from our SME6 server. I checked the mail logs and followed links to test for blacklist inclusion. We (our IP) is indeed on several lists. From what I have read on here SME in its default form cannot be used as an open relay (OK I addedd Jespers AV)

My qustions are as follows ;

1) How did we get blacklisted ?

Could this be a spyware zombie on our winclients sending out crap all day ? We have updated BitDefender on the Wintops and of course Clam etc on SME

2) How do we get un-blacklisted ?

The setup is as this ;

We are on an ADSL line with BT (UK) and I have let SME talk to smtp servers itself. What is happening is that ISP's smtp are refusing to talk back because of the blacklisting!!

If I try and use our ISP smtp for forwarding it also wont talk to us because it wants smtp with auth (can this be done on SME ?) and assumes we are using Lookout Excuse !!!

Any advice greatfully appreciated !!
"If you don't know what you want, you end up with a lot you don't."

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Open Relay Advice
« Reply #1 on: December 08, 2005, 04:36:59 AM »
Quote from: "gbentley"

1) How did we get blacklisted ?


You'll have to ask the blacklists.

Quote

2) How do we get un-blacklisted ?


You'll have to ask the blacklists.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Open Relay Advice
« Reply #2 on: December 08, 2005, 06:40:53 AM »
gbentley

> by default sme cannot be used as an open relay..

You best run a test on your server just to be sure it is not an open relay, see
www.abuse.net/relay.html
or do
telnet relay-test.mail-abuse.org


> If I try and use our ISP smtp for forwarding...

That will get you out of immediate trouble as the ISP's IP will appear to be the source IP.


>... it also wont talk to us because it wants smtp with auth...

By default sme 6.0 or 6.0.1 does not do this but you can install newer rpms and get the functionality, search for forums posts particularly one by Gordon Rowell.
Also check the contribs.org FAQ's etc.


sme 6.5 has the functionality but you need to enable it.
sme 7beta8 has the functionality also.

I had trouble with one obscure RBL list and eventually I had to get my reverse dns lookup altered by my ISP to match my domain name before the RBL list maintainers would remove my static IP from their list. It took me about 5 months to get this done. I was lucky it was an obscure list that not many people used.

good luck !

...
...

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Open Relay Advice
« Reply #3 on: December 08, 2005, 10:50:06 AM »
Charlie and Ray, thanks for your replies.

Charlie, I *did* ask and got replies from a couple of the list maintainers who's attitude seems to be "If we say it is like this, it is - go away and sort out your own problems"

Thats why I asked here as I have had great help in the past from people who seem to have more knowledge and experience than the people running large services / organisations etc.

I have deployed several SME's over the years starting somewhere round v4.x and I have never had to deal with this one - guess we are all learning still ...

I appreciate your help and will investigate further.

First test :-

[root@mailserver qmail]# telnet relay-test.mail-abuse.org
Trying 168.61.4.13...
Connected to relay-test.mail-abuse.org.
Escape character is '^]'.
/proj/maps/bin/in.relaytest: socket failed [Bad file descriptor]
Connecting to 86.130.145.xxx ...
Connection closed by foreign host.

Not sure what this means ... am now registering for their other testing services ...
"If you don't know what you want, you end up with a lot you don't."

Offline p-jones

  • *
  • 594
  • +0/-0
Open Relay Advice
« Reply #4 on: December 08, 2005, 01:03:08 PM »
I wonder whether you have a static or dynamic IP address. From time to  time (and just this morning) I have had mail rejected because one of the spam lists rejects all mail from dynamic IP's. Below is the response:

x.x.x.x does not like recipient.
Remote host said: 554 Service unavailable; Client host [x.x.x.x] blocked using dul.dnsbl.sorbs.net; Dynamic IP Addresses See: http://www.sorbs.net/lookup.shtml?x.x.x.x
Giving up on x.x.x.x.

The only way to resolve this is for my SME to hand mail over to my ISP to deliver rather than deliver it directly. There is an option for this in the server-manager under email

Maybe this helps
Rgds
Peter
...

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Open Relay Advice
« Reply #5 on: December 08, 2005, 01:18:28 PM »
Thanks for that Peter. After resetting the router several times and getting the same WAN IP I assume  it is static (left it for over 20 mins at one point)

Anyway, the awkward thing about BT in the UK is that they want you to do SMTPAUTH if you want to use another domain (other than theirs) in your relayed mail envelopes.

In some cases I have had to fax them so that they will include the clients domain on a list of 'accepted' addresses.

I wouldnt have chosen BT myself.

A registered test at abuse.net cant even find any open ports / relays / proxies etc

The NAT Router is stealthed with only port 22 opened occasionaly for some remote admin.

I am starting to suspect some Spam Zombie on one of the 10 machines and am getting them to install Adaware and Spybot right now.

Of course I could be barking up the wrong tree altogether as I am a domestic electrician really - LOL !
"If you don't know what you want, you end up with a lot you don't."

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Open Relay Advice
« Reply #6 on: December 08, 2005, 04:05:24 PM »
Quote from: "gbentley"

Charlie, I *did* ask and got replies from a couple of the list maintainers who's attitude seems to be "If we say it is like this, it is - go away and sort out your own problems"


If you know which list or lists you are on, then you have a start.

Each list is different. They each have different criteria for listing, and different rules for removal. You'll need to do specific research to find out.

Or deliver outbound mail via your ISP and avoid the issue. Since you need SMTPAUTH, you'll need to use a contrib and do some fiddling - unless you use 7.0beta. Search here for "smtp auth proxy" and you should find the details.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Open Relay Advice
« Reply #7 on: December 08, 2005, 04:06:56 PM »
BTW, you should have called this thread "DNS blacklist advice", not "open relay advice". I don't see anything here which suggests you ever had an open relay.

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Open Relay Advice
« Reply #8 on: December 09, 2005, 03:32:37 PM »
Out of interest DSBL reported that we had an Open SOCKS4 Proxy running on port 559

How would I go about checking if we have acually gotten rid of this beast ?

(We have removed a ton of Spyware and had words with Lunchtime surfers)
"If you don't know what you want, you end up with a lot you don't."

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Open Relay Advice
« Reply #9 on: December 09, 2005, 04:40:36 PM »
Quote from: "gbentley"
Out of interest DSBL reported that we had an Open SOCKS4 Proxy running on port 559


My guess is that some previous user of your IP address had an open SOCKS4 Proxy running. The only ways you could have had one running was if you installed it yourself or you had a root compromise of your system.

Get DSBL to retest your system and clear the report. If you are not on a static IP address, attempt to get one. If you can't get one, then use your ISP's SMTP server for outbound mail. If you need SMTPAUTH for that, you've got some fiddling to do. Start a new thread if you need help in getting SMTP AUTH working on 6.x.

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Open Relay Advice
« Reply #10 on: December 12, 2005, 09:15:27 AM »
Thanks everyone for all the advice on this - just thought I would report back with the results.

The client had no clue or record (other than the monthly invoice / password) of his account details with the provider. BT would not give specific info without me being abel to answer the security questions.

Out of curiosity I switched off the router and left it off for over an hour. After re-boot I had a different WANIP. I checked for it on the black lists and it was not present.

So, easy solution I guess as we are all back up and sending mail (even to AOL accounts LOL !)

Of course I am still getting them to scan for Spyware and use Firefox instead of IE :)

Thanks again.

Seasons Greetings Everyone !
"If you don't know what you want, you end up with a lot you don't."