Exim - Process all queue when startup

cachorroyayo

Verified User
Joined
Apr 17, 2008
Messages
21
Location
Lima, Peru
Hello Forum,

Yesterday we had a problem in the office.

When I see the server, the server was sick in all their services, was impossible to access using root and password.


When I took the decision to reboot, the System tried to boot normally but the system was unable to do it... then the system complained claiming for fsck in single user mode.

When the system reported "MARKED CLEAN" I'd rebooted the system but when Exim process mark [OK] the systems hang it again. and the process was a made a loop.


Thinking ...The solution.

A friend of mine, suggest me to force mount / and review what is happen in the lost+found folder because when the fsck was executed the output says "lost+found" is full or no free space... false, because my server has free space.

The we decide to see the queue of exim in /var/spool/exim/input
Surprise...

/var/spool/exim/input has hundred of hundred of mails queued, but when exim tried to start it tried handle all the queued mails... a impossible mission when you are the target of spammers.

We decided to rename /var/spool/exim/input to input.old and try to restart the system but immediately 600MB queue was allocated in it.

Since this time we have the following questions:

** Exists any way to customize system_filter file to tell to exim reject or deny a mail from a logged user, because the spammer used 3 accounts perfectly logged in the system?

** Can exim, process the queue part by part when the system was a spammers target and let the system to handle the others processes and services and not by one big chunk? Because if this option were configured on my server I'm sure that my server still alive.

We do some changes in the exim.conf file:

warn ratelimit = 10 / 1m / per_rcpt / strict
delay = 30s
log_message = Sender $sender_address rate $sender_rate / $sender_rate_period exc
edes limit delayed

and system_filter file:

if $header_from: contains ".br"^M
then^M
fail text "Temporalmente bloqueado"
seen finish^M
endif^M
but we want to block mails from users already logged which their accounts are used by the spammers to attack to other accounts from other domains.


Is widely known, that postfix has a better handle of mail queue, but exim really can do the same, I mean is not possible that when you are a target of spammer the mail queue bring down a hole system and freaking you out..


best regards.
 
/var/spool/exim/input has hundred of hundred of mails queued, but when exim tried to start it tried handle all the queued mails... a impossible mission when you are the target of spammers.
We're often the target of spammers (since we write anti-spam software) and yet we manage our queues very successfully. I strongly suggest you read the information on my site, concerning SpamBlocker exim.conf for DirectAdmin, Version 4, here (nobaloney.net).
We decided to rename /var/spool/exim/input to input.old and try to restart the system but immediately 600MB queue was allocated in it.
I'm not sure what you mean by immediately. Within a few seconds? A few minutes?
Exists any way to customize system_filter file to tell to exim reject or deny a mail from a logged user, because the spammer used 3 accounts perfectly logged in the system?
Yes, either the system filter file, or exim.pl. Teaching you how, here, is beyond the scope of these forums.
Can exim, process the queue part by part when the system was a spammers target and let the system to handle the others processes and services and not by one big chunk? Because if this option were configured on my server I'm sure that my server still alive.
Exim runs separate queue-runners already.
but we want to block mails from users already logged which their accounts are used by the spammers to attack to other accounts from other domains.
I'm not sure what you mean. How are their accounts being used? Do the spammers have the passwords? If so, change them. Are the account owners the spammers? If so, suspend them.
Is widely known, that postfix has a better handle of mail queue, but exim really can do the same, I mean is not possible that when you are a target of spammer the mail queue bring down a hole system and freaking you out..
I respectfully disagree that postfix has a better handle on managing the mail queue, but that may be a personal opinion, or may be based on the default settings. You can run multiple mail queues in exim as well; do some Googling.

You can hire us, or others, to clean your system. I wrote the exim.conf file for DirectAdmin, and over the years we've become good at managing exim. If you're interested, contact me privately by email; my address is below, in my siglines.

Jeff
 
Back
Top