Solved

OPTIONS="-4" in /etc/sysconfig/named

Posted on 2013-06-26
11
1,003 Views
Last Modified: 2013-06-26
I'm having some issues with spam overwhelming my server.

I contacting my hosting company. After look over things, they sent me a message saying:

-------------
I set OPTIONS="-4" in /etc/sysconfig/named and restarted named service.
------------

and that they would be monitoring the logs.

What does setting OPTIONS="-4" in named do?

Chris
0
Comment
Question by:St_Aug_Beach_Bum
  • 7
  • 4
11 Comments
 
LVL 28

Accepted Solution

by:
Jan Springer earned 500 total points
Comment Utility
It tells named to run in IPv4 only (no IPv6).

And which doesn't have a darn thing to do with spam.

Are you running an MTA?
0
 

Author Comment

by:St_Aug_Beach_Bum
Comment Utility
Yes, postfix.

Hmmm, I'm monitoring the logs and nothing has changed, but you suspected that :)

I'm getting thousands of what look like fake 'to' email address in maillog. My server passes all the 'relay check' tests I can find, I don't think this is a relay issue... not positive though.

I don't know if these 'to' addresses have bcc addresses that are going to users on my server, or if one of my users has a virus on their desktop and is sending these out unknowingly. I don't know enough about reading these to understand - but it would appear we are sending these out.

Here's an example:

(my-ip-was-here) 26 17:51:59 julia postfix/smtp[11660]: 2E38C8C09D: host mx00.gmx.net[213.165.67.114] refused to talk to me: 421-gmx.net (mxgmx006) Nemesis ESMTP Service not available 421-Service unavailable 421-Reject due to policy violations. 421 For explanation visit http://postmaster.gmx.com/en/error-messages?ip=216.119.158.65
(my-ip-was-here) 26 17:51:59 julia postfix/smtp[11486]: 1D21866B04: host mta5.am0.yahoodns.net[66.196.118.36] refused to talk to me: 421 4.7.0 [TS01] Messages from 216.119.158.65 temporarily deferred - 4.16.55.1; see http://postmaster.yahoo.com/errors/421-ts01.html
(my-ip-was-here) 26 17:51:59 julia postfix/error[11571]: 2D5F5D4A69: to=<carlosmay17@yahoo.com>, relay=none, delay=118080, delays=118080/0.05/0/0.04, dsn=4.7.0, status=deferred (delivery temporarily suspended: host mta5.am0.yahoodns.net[98.138.112.37] refused to talk to me: 421 4.7.0 [TS01] Messages from 216.119.158.65 temporarily deferred due to user complaints - 4.16.55.1; see http://postmaster.yahoo.com/421-ts01.html)
(my-ip-was-here) 26 17:51:59 julia postfix/qmgr[11330]: 40C7416F5C5: from=<>, size=4164, nrcpt=1 (queue active)
(my-ip-was-here) 26 17:51:59 julia postfix/error[11571]: 2D5F5D4A69: to=<okinyisikinisamuel@yahoo.com>, relay=none, delay=118080, delays=118080/0.05/0/0.08, dsn=4.7.0, status=deferred (delivery temporarily suspended: host mta5.am0.yahoodns.net[98.138.112.37] refused to talk to me: 421 4.7.0 [TS01] Messages from 216.119.158.65 temporarily deferred due to user complaints - 4.16.55.1; see http://postmaster.yahoo.com/421-ts01.html)
(my-ip-was-here) 26 17:51:59 julia postfix/qmgr[11330]: 9B4C51FEF8C: removed
(my-ip-was-here) 26 17:51:59 julia postfix/error[11571]: 2D5F5D4A69: to=<t.bean252@yahoo.com>, relay=none, delay=118080, delays=118080/0.05/0/0.1, dsn=4.7.0, status=deferred (delivery temporarily suspended: host mta5.am0.yahoodns.net[98.138.112.37] refused to talk to me: 421 4.7.0 [TS01] Messages from 216.119.158.65 temporarily deferred due to user complaints - 4.16.55.1; see http://postmaster.yahoo.com/421-ts01.html)
(my-ip-was-here) 26 17:51:59 julia postfix/error[11529]: 1347776C2B: to=<geauxk@yahoo.com>, relay=none, delay=132611, delays=132610/0.11/0/0.05, dsn=4.7.0, status=deferred (delivery temporarily suspended: host mta5.am0.yahoodns.net[98.138.112.37] refused to talk to me: 421 4.7.0 [TS01] Messages from 216.119.158.65 temporarily deferred due to user complaints - 4.16.55.1; see http://postmaster.yahoo.com/421-ts01.html)
(my-ip-was-here) 26 17:51:59 julia postfix/qmgr[11330]: 1518D379BD: from=<tami@mysite.org>, size=685, nrcpt=9 (queue active)
(my-ip-was-here) 26 17:51:59 julia postfix/qmgr[11330]: 259C1110392: from=<tami@mysite.org>, size=805, nrcpt=4 (queue active)
(my-ip-was-here) 26 17:51:59 julia postfix/error[11570]: 2E47A8714B: to=<blake.cuny@yahoo.com>, relay=none, delay=129357, delays=129356/0.07/0/1.2, dsn=4.7.0, status=deferred (delivery temporarily suspended: host mta5.am0.yahoodns.net[98.138.112.37] refused to talk to me: 421 4.7.0 [TS01] Messages from 216.119.158.65 temporarily deferred due to user complaints - 4.16.55.1; see http://postmaster.yahoo.com/421-ts01.html)
(my-ip-was-here) 26 17:51:59 julia postfix/error[11570]: 2E47A8714B: to=<k8steveog0817@yahoo.com>, relay=none, delay=129357, delays=129356/0.07/0/1.2, dsn=4.7.0, status=deferred (delivery temporarily suspended: host mta5.am0.yahoodns.net[98.138.112.37] refused to talk to me: 421 4.7.0 [TS01] Messages from 216.119.158.65 temporarily deferred due to user complaints - 4.16.55.1; see http://postmaster.yahoo.com/421-ts01.html)
(my-ip-was-here) 26 17:51:59 julia postfix/error[11392]: 40C7416F5C5: to=<piju@mysite.org>, relay=none, delay=8020, delays=8020/0.14/0/0.05, dsn=5.0.0, status=bounced (User unknown in virtual alias table)
(my-ip-was-here) 26 17:51:59 julia postfix/qmgr[11330]: 1F25FB3D50: from=<myvet@mysite.org>, size=660, nrcpt=9 (queue active)
(my-ip-was-here) 26 17:51:59 julia postfix/smtp[11486]: 1D21866B04: host mta5.am0.yahoodns.net[63.250.192.45] refused to talk to me: 421 4.7.0 [TS01] Messages from 216.119.158.65 temporarily deferred due to user complaints - 4.16.55.1; see http://postmaster.yahoo.com/421-ts01.html

Open in new window

0
 

Author Comment

by:St_Aug_Beach_Bum
Comment Utility
(mysite.org) being where our domain name was.
0
 
LVL 28

Expert Comment

by:Jan Springer
Comment Utility
So, two ways to lock down smtp relaying:  by IP/subnet and SMTP AUTH.  Are you doing one or both?

If by IP, a customer has to be infected.  If by auth, then someone's credentials are compromised (and are probably also infected).

If you go through your maillog for yesterday, you should be able to see a pattern of who is sending a lot of email or who is sending from multiple foreign addresses.
0
 

Author Comment

by:St_Aug_Beach_Bum
Comment Utility
SMTP AUTH.

I do have one particular user sending mail - but I deleted that user account from the server, and still it's showing in the log that she's sending........  odd.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 28

Expert Comment

by:Jan Springer
Comment Utility
You need to stop Postfix, kill all the connections and restart it.
0
 

Author Comment

by:St_Aug_Beach_Bum
Comment Utility
Ok, I did restart postfix, even rebooted the server, would that have killed all the connections or could something have persisted, seems like that would have killed it.

The hosting company is running a maldet scan on it now...
0
 

Author Comment

by:St_Aug_Beach_Bum
Comment Utility
(and in the meantime, I'm setting up a new server)
0
 
LVL 28

Expert Comment

by:Jan Springer
Comment Utility
I see compromised credentials get used to send spam on a regular basis.  It doesn't mean that your server is compromised (unless your accounts have shell access -- that can be a game changer), it just means that a user has a compromised machine.

If Postfix is like Sendmail in that any existing connections get pushed to PID 1 on a restart, then that won't do any good.  A reboot, on the other hand, will take care of any existing open channels.
0
 

Author Comment

by:St_Aug_Beach_Bum
Comment Utility
Ok, thank you. They don't have shell access, just email. I don't even host any websites on the server, we just use it for email.

So after the reboot, that should have killed all connections, if I understand you correctly..

I'll let them finish the scan and see what that does, I don't want to try another reboot while they are running the scan, and I'm setting up a vps as a backup just in case they find something and I have to move users to another - hopefully leaving any issues behind.

Thank you, it has been great to have someone to staff this with a bit -

Chris
0
 

Author Closing Comment

by:St_Aug_Beach_Bum
Comment Utility
Thank you for the original answer and ongoing help!
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now