LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-11-2009, 07:33 AM   #1
r.bhange
LQ Newbie
 
Registered: Mar 2009
Posts: 18

Rep: Reputation: 0
Unhappy how to block open relay in sendmail 8.12.8/8.14.3 on rhel 3


Hi All Experts

I am in very bad situation kindly help me.

I have problem of open relay in my sendmail 8.12.3 on rhel 3 platform

I did few things to stop open relay like SMTP AUTH Login Plain, I allow relaying only to my local ips in a LAN network using access file. And I have Anivirus server who take care of spams and viruses. all email will pass this test to go out side of firewall.

And finaly i upgrade my sendmail version to 8.14.3 but still i am facing same kind of problem.

I Try relay-domain file but yet facing problem.

Kidly give me any hint to stop open relay.

Please send me any solution for that.

I search a lot.. but not got any perfect solution.

Thanks...
 
Old 04-11-2009, 07:08 PM   #2
okcomputer44
Member
 
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 246

Rep: Reputation: 53
Hi,

I think in your network one or more computer has/have got a virus/trojan infection and that computer(s) sends out the spams.

Obvious the local network's computers can relay. So it does not depend on the sendmail version nor mail server.

Download the iptraf and start it.

Code:
yum install -y iptraf

iptraf
Then start to monitor the local traffic which computer sends out smtp packets. The iptraf is going to show you any network traffic like smtp.
So you can find out which one the "bad" computer in the network.

Laz
 
Old 04-13-2009, 06:41 AM   #3
r.bhange
LQ Newbie
 
Registered: Mar 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Unhappy

Quote:
Originally Posted by okcomputer44 View Post
Hi,

I think in your network one or more computer has/have got a virus/trojan infection and that computer(s) sends out the spams.

Obvious the local network's computers can relay. So it does not depend on the sendmail version nor mail server.

Download the iptraf and start it.

Code:
yum install -y iptraf

iptraf
Then start to monitor the local traffic which computer sends out smtp packets. The iptraf is going to show you any network traffic like smtp.
So you can find out which one the "bad" computer in the network.

Laz
Respected Sir,

Thanks for your reply.

Any othere possisiblity for closing open relay in sendmail.

give me suggesion for controling open relay.

becouse i have wast LAN setup here.

kinly gauid me.


Thanks
 
Old 04-14-2009, 02:11 AM   #4
okcomputer44
Member
 
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 246

Rep: Reputation: 53
Hi,

The sendmail controls relay through access file.

I suppose in access file the LAN part looks something like this:

Code:
Connect:192.168.1         RELAY
Connect:127.0.01          RELAY
Connect:muydomainname.com RELAY
So if you want to exclude computers under your LAN you can play with access configuration.
The 192.168.1 or whatever that numbers responsible for client computers for relaying.

I hope it helped.

Let me know what is going on and I'll try to help you mate.

Laz
 
Old 04-15-2009, 12:05 AM   #5
r.bhange
LQ Newbie
 
Registered: Mar 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by okcomputer44 View Post
Hi,

The sendmail controls relay through access file.

I suppose in access file the LAN part looks something like this:

Code:
Connect:192.168.1         RELAY
Connect:127.0.01          RELAY
Connect:muydomainname.com RELAY
So if you want to exclude computers under your LAN you can play with access configuration.
The 192.168.1 or whatever that numbers responsible for client computers for relaying.

I hope it helped.

Let me know what is going on and I'll try to help you mate.

Laz
Thanks again

In my sendmail access file i allow separet pc's for RELAY

like
192.168.1.23 RELAY
192.168.3.67 RELAY

there is around 25 pc's acros LAN. i put all these in access file.
and all these pc's are in behinde firewall.

but the problem is i configure sendmail 8.14.3 on RHEL3.
but from few weeks i am not able to sendmail emails to any domain excepts gmail.com. and sometimes yahoo.co.in.

The baounce emails error like

The following addresses had delivery problems
<confo-ng-mh@nic.in> Reply from 164.100.2.7[164.100.2.7]: 554-vastu12.nic.in
554 Your access to this mail system has been rejected due to the sending MTA's
+poor reputation. If you believe that this failure is in error, please contact

+the intended recipient via alternate means.
<r.bhange@live.com> Reply from col0-mc3-f.col0.hotmail.com[65.55.37.104]:
+550 OU-001 Mail rejected by Windows Live Hotmail for policy reasons. Reasons
+for rejection may be related to content with spam-like characteristics or
+IP/domain reputation problems. If you are not an email/network admin please
+contact your E-mail/Internet Service Provider for help. Email/network admins,
+please visit http://postmaster.live.com for email delivery information and
+support
<r.bhange@yahoo.co.in> Reply from 202.86.5.24[202.86.5.24]: 553 Mail from
+203.129.203.164 not allowed - [80]

[B]<r.bhange@rediffmail.com> Reply from 202.137.234.30[202.137.234.30]: 553
+Message from 203.129.203.164 rejected - see
+http://spamblock.outblaze.com/203.129.203.164[/B]<r.bhange@in.com> Reply from 123.108.40.2[123.108.40.2]: 554-mx2.in.com
554-Your ability to send mails to the IN.com Mail System has been restricted due
+to the Sending Mail Server's Reputation as a Spammer. This does not mean you
+are sending a spam message, it just means that the server you used has been
+used to send out spam in the recent past.
554-Please make sure you are using the appropriate outgoing mail server
+according to your email address, and not your ISP's generic SMTP server, or a
+third party server which may be sending mails that don't belong to its
+registered domain.
554-
554 If you believe that this failure is in error, please contact the intended
+recipient using a different mail address, or contact <mailadmin@web18.in> with
+details of this bounce mail.

As messege indicate it would be possibaly open relay problem.
or any othere in cant find it out.

Please suggest me any othere things i have to do in my setup or in configuration files of sendmail.

If ur getting any clue kindly suggest me.

I waitting for your reply.

Thanks Agains Sir

Last edited by r.bhange; 04-15-2009 at 12:09 AM.
 
Old 04-16-2009, 03:38 AM   #6
okcomputer44
Member
 
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 246

Rep: Reputation: 53
It looks like your domain was open-relay and your domain still listed in some open-relay database sites.

You can check your site here:http://www.dnsgoodies.com/ (the checks take minutes)

and here: http://www.au.sorbs.net/cgi-bin/db (needs registration)

If you find out that your site is listed somewhere you can delete from their site. To do that you can send an e-mail them for deleting request or use the delete request form. It takes 1-2 days to take off from their database but it depends on the site.

But if your client computer has got an infection and the virus scanner is not able to catch it the clients still able to send out spams.

The relaying is allowed from client computers so you must check them.

Laz
 
Old 07-12-2009, 10:34 AM   #7
Addison0
LQ Newbie
 
Registered: Jul 2009
Posts: 5

Rep: Reputation: 0
You can also check your site using web tools
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail Open Relay sulman Linux - Newbie 1 04-10-2009 10:05 AM
Relay on RHEL ES 3 with Sendmail 8.12.11 iamcaper Linux - Newbie 3 03-26-2008 12:26 PM
Sendmail Open Relay eman45008 Linux - Server 6 09-02-2007 01:28 PM
How can I tell if my sendmail is an open relay.. Bjorkli Linux - Networking 1 05-28-2004 03:35 AM
sendmail 8.9 open relay subhasis_ray Linux - Software 1 05-27-2003 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration