Delete Mails In Exim
Dec 30, 2007I read this post:
[url]
I should delete older than 5 days emails, how can I do it? (on cpanel and exim)
I read this post:
[url]
I should delete older than 5 days emails, how can I do it? (on cpanel and exim)
can I delete certain emails from mail queue manager in SSH?
for example we have many emails for trying to send to email@email.com and I would like delete this emails.
one of my domainname has got too many crap emails. i want to delete all emails under that domain name..
emails like
Quote:
ur/1147413032.H680181P13997.myserver.***.com:2,
/home/***/mail/cur/1146844476.092499.mbox:2,
/home/***/mail/cur/1156427256.H96385P5958.myserver.***.com:2,
/home/***/mail/cur/1155811341
im on cpanel + centos how can i delete on ssh or whatever...
I have suddenly found myself in a really terrible situation ... I have just noticed that I am not receiving mails for sometime, and I tested that I can't send any mail as well ...
On some further search, I found that that is probably because of the huge number of emails present in my account .. I never cared before as I had set unlimited space in the set up, means, it could theoritically use all my server spaces.
Now, with 20600 mails (of course 99% of them are probably spams) I am totally hanged, and I tried to delete, and found that I can't even delete my mails.
The solution is probably to delete mails using SSH, to delete a few thousands starting from the last (earliest) or even better, to delete those marked as {Definitely Spam}.
Is there a script for whm that deletes all mails older than XX years for all accounts on the server?
View 1 Replies View Relatedim trying to delete emails sent to dbmaster@example.com. there are about 2000 emails like that in exim email queue
here's what i did:
SSH to my server
type: exiqgrep -ir dbmaster@example.com | xargs exim -Mrm
but it says: bash: exiqgrep: command not found
can it be done? because a dumb customer sent an email with like 500 recipients... and its stucked on the queue. So i wanna delete it... but when i go to Mail queue manager (i use WHM) i got this:
Message 1KRTsr-0006tc-F6 is locked
So what can i do? should i just sit and wait until its "unlocked"?
can i kill any process? i already tried restarting exim... but its still there... and btw the size of that message is of about 500 mb >.<
I recently got a server from leaseweb with directadmin on it, I have a big problem sending e-mails .
Most of my e-mails remains in queue:
Is there any way to check why the e-mail stays on queue , any log file i can read?
can i get my e-mails using imap?
we have a freebsd/cpanel box what seems to be trouble prone combination, specially for exim.
After cpanel upgrade, exim simple has stopped. Somehow I managed receiving on this way:
# /etc/init.d/exim start
/libexec/ld-elf.so.1: Shared object "libperl.so" not found, required by "sendmail"
I checked which perl version is running: perl -v
This is perl, v5.10.0 built for i386-freebsd-64int
then applied:
unix1# ln -s /usr/local/lib/perl5/5.10.*/mach/CORE/libperl.so /usr/local/lib
unix1# /etc/init.d/exim start
exim exim antirelaydunix1#
unix1#
but this solved only half of a problem, now we can receive e-mails, but not send them, what is really frustrating.
Here is the error which cpanel sends on each 5 min:
exim failed @ Fri May 1 16:06:15 2009. A restart was attempted automatically.
Service Check Method: [tcp connect]
Failure Reason: TCP Transaction Log:
<< 220-xxxxxxxxxx.xxxx ESMTP Exim 4.69 #3 Fri, 01 May 2009 16:06:41 +0200 << <<
>> EHLO localhost
<< 250-xxxx.xxxx.xxx Hello localhost [127.0.0.1] << << << << <<
>> AUTH PLAIN
>> AF9fY3BhbmVsX19zZXJ2aWNlX19hdXRoX19leGltX19Nd2NxU1pyUng1S3R5YTl2enZaV
>> zN4R3Q1MU5WdTh1MHBZcnI4NDhqaWVtWFhSY3VraERTSGZnZU1tQkpiVXNWAFRkbzNpY3
>> ZVTUg1N1Z0R0t5c2VLYW82T1U1UFlqRDEwVThpVXlGSUpFMkZDRWVFaWxzTTNZMHVaRGd
>> UWXM1WnU=
<<
exim: ** [ != 2]
and I can not find the solution for this almost two days (!), no help for host support either. Closest what I have found on net is this topic:
[url]
I have been seeing so many exim mail queue on server. I would like to clear for every one hour throuh crontab entry. So that I have used following script to run.
file path : /root/eximQueue.sh
Script:
#!bin/bash
exim -bpu |awk '{print $3}'|xargs exim -Mrm
crontab entry:
0 * * * * /bin/bash /root/eximQueue.sh
but the crontab is running every 1 hour but no mails cleared. Please guide to work this.
I have a customer that wants to send emails using Exim and SMTP (using outlook), withouth authentication. Now.. the big question is ... how can I configure the Exim server to work withouth any authentication?
I know the risks of this withouth any authentication, but is my customer's server and he want to work in this way.
He is also asking if he is able to send emails withouth authentication using SMTP for certain IP addresses.. is that possible? Can be done for only 1 domain, or for the entire server?
Im using Exim 4.6.8 and RHE 4 + cPanel.
We have running exim mail service in cpanel web server. Exim consumed some CPU% memory and lots of threads are opening. More than 2000 mails in queue everyday. How can we optimize the exim mail service?
top - 06:33:12 up 23:12, 1 user, load average: 0.03, 0.08, 0.08
PID USER PR NI %CPU TIME+ %MEM VIRT RES SHR S COMMAND
4777 mailnull 15 0 1 0:00.02 0.2 9324 3936 2680 S exim
1809 mailnull 16 0 0 0:00.09 0.1 8192 1156 808 S exim
1815 mailnull 24 0 0 0:00.00 0.1 8428 1100 764 S exim
4779 mailnull 16 0 0 0:00.00 0.0 8200 684 336 S exim
how to config exim to accepting mails from networks with address: something.fbc.local?
I saw that a lot if comanies using a internal mailserver in there network and the using a mailserver to send all mails coming from different pc's on that internal network. However the mailserver has the name as: 14g5nldo7.fbc.local and exim does not accept e-mails coming from this tipe of services.
I am having issues in receieving emails. For some reason, the rbl lists I had setup are causing the server to reject emails (retry - timeout). So, I need to take this rbl list completely. How can I do that? exim.conf is locked and using the advanced editor is no fun even though I tried it putting the dnslists without the rbl causing the problem.
View 3 Replies View Relatedi've created VPS with OpenVZ.And there is some problem i have access the vps and it's show some error
Code:
VM creation has failed. Reason: Private area already exists in /vz/private/250
.At the moment i forgot my SSH details..only i know my hypervm "root" details..where i log with admin password.I need to fix this because some clients of my hosting company is waiting and my number of VPS is limited.
im try to delete some file from cpanel but everytime i delete nad refresh they come back
also if i try to change the perms it does not let me?
I'm trying to use SSH to delete a directory. It won't delete via FTP.
I've tried variations of the below but nothing seems to work;
rm -f [folder]
rm /-f [folder]
the directory that should be deleted is test.crossroadsclub.net, so I use that as the folder.
Can I delete mysqld.log
Can I delete or empty mysqld.log
Its currently 850MB
If I can do I have to stop MYSQL first;?
i have installed the Domain Technologie Control Panel on Debian Etch, and have 2 folders that will not delete via FTP
I was wondering if anyone had a tutorial or could tell me how to be able to delete them....
[root@d7 ~]# fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 57 457821 83 Linux
/dev/sda2 58 15355 122881185 83 Linux
/dev/sda3 15356 15616 2096482+ 82 Linux swap / Solaris
/dev/sda4 15617 19457 30852832+ 8e Linux LVM
i want removed/deleted /dev/sda4
Can we delete sql logs ? as it occupies 2.97gb
All the log is under a single file, occupying huge amount of space on our server
use lxadmin for the vps
we are unable to even open up the file, as we have almost run out of space, we would atleast like to delete around old logs older than a month, this logs are from 3 months, so please help us in solving this problem
if we delete the sql log, will a new log be created automatically or it gives an error?
when people run a forum and the template and forumdate folders may created some files with nobody permission,
the user could not delete them by the user themself,
and need admin login as root with ssh to delete those,
and let the files permission can run as the user instead of nobody.
the server is centos with cpanel and suexec.
can i activate the deletion command for 10 or 30 mins and then stop it? i think by this way we cant delete some files from the dir and not all the files so i can edit my files
i want to do this because my server doesnt respond to any file system command because my hardisk is full! so i need to remove some files by any way
Question: Is it safe to delete the files in /var/log/mysql ? Also, is there some way I can disable logging so that this folder does not get filled up again?
Explanation:
Last night I started running a Perl script to process the data contained in some files, and then do a series of INSERTs to put them in a MySQL database. When I checked on it this morning, I found that it was very close to being done, but had locked up. I had trouble doing anything at all, actually, until I realized that 100% of the disk space on my hard drive had now been used. I went to investigate, and I quickly realized that my /var/log/mysql folder was over 120GB!
My intuition tells me that this folder is just used to store logs of what MySQL is doing. However, I have no need for these logs, and seeing as they are (unnecessarily) using over 120GB of my hard drive space, I would like to delete everything in that folder. But I'm still fairly new to Linux, and I'm not sure if this is safe. Can I just delete these files? And also, to prevent this from happening again, is there some way I can disable MySQL from creating such enormous log files?
I heard the following folders were used by frontpage.
_private
_vti_bin
_vti_cnf
_vti_log
_vti_pvt
_vti_txt
I was wondering can i delete these folders if i'm not using frontpage ?
I am currently freeing up some space on my VPS and want to know if it ok for me to delete the following files in: /var/log/
apf_log.3
apf_log.4
boot.log.3
boot.log.4
cron.3
cron.4
exim_mainlog.3.gz
exim_mainlog.4.gz
exim_paniclog
exim_paniclog.3.gz
exim_paniclog.4.gz
exim_rejectlog.3.gz
exim_rejectlog.4.gz
maillog.3
maillog.4
messages.3
messages.4
rpmpkgs.3
rpmpkgs.4
secure.3
secure.4
spooler.3
spooler.4
I have a cronjob that is still entered in my server, but due to my own lack of knowledge i deleted the domain from my server without removing the cronjob and now i keep getting the emails from my server
Code:
/bin/sh: line 1: /home/userID_Removed/public_html/cgi-bin/script-removed/cron.cgi: No such file or directory
I just need to know how to remove the cronjob via SSH, i logged in as Root to my SSH and then did crontab -l and I see the two cronjobs I want to remove, but can't find the code to do so anywhere via Google.
There is 3 total that I want to remove but there is about 10 cronjobs setup there so i want to remove those three and make sure the other 7 stay running as they should.