Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - uacnix

Pages: [1]
1
Email and Groupware / Postgres process hogging HDD 90% of the time.
« on: December 08, 2016, 11:25:06 pm »
Hello, I have the following problem- the postgres process is reading something form disk all the time. Whats interesting, in iotop it has the COMMAND
postgres: ebox eboxlogs [local] SELECT
So I thought its somehow connected to the log module, which is also very laggy for me- so laggy it causes timeouts on the webinterface almost every time I try to do something. I tried disabling the log module, but the process is still hogging the HDD. I'd rather avoid restarting the postgres database, but its really eating the drive...
Do you guys have any ideas on what can I do to lower the disk usage by that process?

2
Hello, I have the following problem-
I have a lot of spam going in from @*.xyz TLD. Since I can't simply put @xyz in the blacklist (and anything with @.xyz or @*xyz can't be typed in) i decided to simply add the line to the /etc/spamassassin/local.cf:
blacklist_from *.xyz
According to SpamAssassin's manual, it should work.
I tried rebooting the mailfilter module, but it got overwritten and i had to redo it.
After I replaced it back with the modified version and did
Code: [Select]
spamassassin -t < [path_to_message_with_now_whitelisted_mail]in console, it worked (-100 score), but the mail was already in mailbox, and in the logs it had 3.6 score.
Now here's the deal - how do I reload the spamassassin/amavis module so that new file won't get overwritten AND will be in use?

[UPDATE]
I've edited the file /usr/share/ebox/stubs/mailfilter/local.cf.mas and added shortcircuiting for blacklisted emails (which was one of the things I also wanted to do) and it worked after restarting mailfilter service.
BUT
I think its a bad idea to tinker with those .mas files AND it takes whitelist/blacklist addresses from some unknown place. For example, I'd like to manually do whitelist_from_rcvd for some mails, but I can't do it manually.

3
Hello,
We have a mail server which uses Zentyal in 2.0.23. I received the passwords from guy who was going to retire, and basically nothing more, so forgive me my mistakes.
The server is running on Ubuntu 10.04 LTS, and from what I see, its overloaded most of the time (right now it has 3.23 long-term load, even though nothing seems to be hogging CPU for most of the time, except for postgres process, but it seems to be doing stuff on mail), so I thought on what I can kill, to make its "life" easier.
My idea is to kill the desktop GUI (windows - LXDE?), cause I login through SSH anyway.

But while googling the information on whether it is safe to do so, I found some guy talking that doing
Code: [Select]
sudo service gdm stopWill cause the display manager to also kill the foreground apps, and I don't want to kill the server.
Is it safe to do so? Or maybe there is another way of dealing with the desktop gui?

The second question is - how would I normally restart the whole server? I mean, it just seems too easy to go into
System ->
Stop/reboot ->
reboot system.
from the Browser interface. Is it the proper way?
Thanks in advance.

Pages: [1]