Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2001
    Location
    Pakistan
    Posts
    74

    Optimizing Server

    Hi,

    I have a server on which I am hosting around 50 domains of my own. Here is a top output just taken 5 minutes back

    154 processes: 146 sleeping, 2 running, 6 zombie, 0 stopped
    CPU states: 25.3% user, 15.5% system, 0.1% nice, 58.8% idle
    Mem: 514124K av, 448184K used, 65940K free, 0K shrd, 90172K buff
    Swap: 1052216K av, 126568K used, 925648K free 218372K cached

    PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
    25250 mailnull 9 0 0 0 0 Z 3.1 0.0 0:00 exim <defunct>
    25233 mailnull 9 0 3240 3228 2468 S 2.3 0.6 0:00 exim
    25118 mailnull 11 0 2708 2644 1984 S 2.1 0.5 0:00 exim
    25115 mailnull 9 0 2696 2632 1984 S 1.9 0.5 0:00 exim
    25234 mailnull 9 0 0 0 0 Z 1.9 0.0 0:00 exim <defunct>
    23151 named 10 0 7800 7800 1964 S 1.5 1.5 0:14 named
    25272 mailnull 12 0 2672 2608 1984 S 1.3 0.5 0:00 exim
    25144 mailnull 9 0 2648 2584 1972 S 1.1 0.5 0:00 exim
    25273 mailnull 12 0 2668 2604 1980 S 0.9 0.5 0:00 exim
    25288 mailnull 10 0 0 0 0 Z 0.9 0.0 0:00 exim <defunct>
    25120 mailnull 9 0 2636 2572 1952 S 0.7 0.5 0:00 exim
    25229 mailnull 9 0 2636 2572 1952 S 0.7 0.5 0:00 exim
    22860 nobody 9 0 3724 3284 2448 S 0.5 0.6 0:00 httpd
    23153 named 10 0 7800 7800 1964 S 0.5 1.5 0:01 named
    25145 mailnull 9 0 2636 2572 1952 S 0.5 0.5 0:00 exim
    25152 mailnull 9 0 2636 2572 1952 S 0.5 0.5 0:00 exim
    7091 nobody 9 0 3904 3364 2536 S 0.3 0.6 27:13 httpd


    You can see there are lots of exim processes which takes up lots of memory. How can I completely shutdown emails from all domains except one which is my main domain to be used for communicating with outside world.

    I have tried sending emails to blackhole using cpanel, but it still puts load on server. What will be the effect if I remove the MX line from the Zone File.

    Looking forward for your expert advice.

    Thanks
    Peace

  2. #2
    Join Date
    Apr 2003
    Location
    NC
    Posts
    3,093
    For the domain you do want to work set the mail.domain.com record to point to an ip OTHER then your main ip. Then simply block 25 incoming so no mail can be recieved on it and they are blocked at the firewall. Or change the dns for the mail records to an ip that has port 25 blocked.
    John W, CISSP, C|EH
    MS Information Security and Assurance
    ITEagleEye.com - Server Administration and Security
    Yawig.com - Managed VPS and Dedicated Servers with VIP Service

  3. #3
    Join Date
    Jul 2002
    Location
    Malaysia
    Posts
    702
    it is not recommended to use :blackhole: for your Cpanel server but instead :fail: is recommended :

    http://www.configserver.com/free/fail.html

    You can either remove out the entries for the domain in /etc/localdomains or clear the MX for the domains as you said. However, for long term solution, you should tail -f /var/log/exim_mainlog when the loads is high so you can know what's actually happening on your server especially for the exim.

  4. #4
    Join Date
    Aug 2001
    Location
    Pakistan
    Posts
    74
    Originally posted by andy18
    [ However, for long term solution, you should tail -f /var/log/exim_mainlog when the loads is high so you can know what's actually happening on your server especially for the exim. [/B]
    Hi,

    I have checked the exim main log and it seems that someone is hammering few of my domains sending emails at all sorts of junk which are going to :blackhole:. Is there anyway that these emails are dropped before even entering my server. I am not that technical but I assume that if I remove MX line from the DNS zone, the emails will never be reached the server. Any thoughts?

    Regards
    Peace

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •