Server :: Write A Cron Job To Delete Imap Processes Every Minute
Jan 8, 2010
I'm running my website on a linux server. I'm using a mac. Apparently, mac mail has a bug where it creates too many imap processes.
Since I'm on a shared server with a 25 process limit, with 3 email accts x 4+ processes each = a lot of problems!
I'm trying to write a cron job to delete imap processes every minute.
I've tried two things
1) following this blog's advice [URL]
Code:
killall imap
i realised it was imapd not imap, but i tried another method anyway
2) create a kill-imap.sh file in my server folder.
Code:
#!/bin/bash
/usr/bin/killall imapd
then executing the file from the cron command /kill-imap.sh
both these cases, it didn't seem to work!
I would get a daemon emai reply with
imapd: no process killed
just to give more info, the existing imap processes look like this
/usr/lib/courier-imap/bin/imapd /home/sitename/mail/sitename.com/emailusername
honestly, I'm not too experienced in this, and i've searched the net without luck. can anyone advise what i'm supposed to do to kill these imap processes every 5 min via cron job?
View 2 Replies
ADVERTISEMENT
Dec 14, 2010
Previously I had posted a question on how to make it run every 7 minutes between 7 and and 11pm.However now I found out what I really need is every 7 minuted between 7:30 and 11pm BUT it has to be every 7 minutes, it cannot reset itself on the top of every hour, so the */7 wont work.How can it that it will be every 7 minutes, so it will go at 7:30, 37,44,51, 58, 8:05, etc..
View 4 Replies
View Related
Apr 23, 2010
I've been running Courier IMAP for many years now, but when I added gmail's IMAP to my Outlook I noticed something interesting: when you delete a message, it gets thrown into the trash instantly.
With Courier IMAP (or any other IMAP server, for that matter), when you delete, it first marks it for deletion. Then after you Purge Deleted Messages it either gets rid of them or moves them to trash.
Is there a way to implement this in Courier IMAP?
View 1 Replies
View Related
Dec 14, 2010
if i do a
ps aux | grep ftp
that would show me at least any active ftp connects started with the ftp command, right? Is there then a way to use that to somehow kill any stuck sessions that are older than an hour?
View 9 Replies
View Related
Feb 24, 2010
I have 5 mailboxes provided by my ISP, which I have been using since 2005 with IMAP.1 month ago my Thunderbird client under both 9.04 (desktop) and 9.10 (laptop) started refusing to delete any incoming mail in one of my mailboxes (but not in the other 4).
Error message: "(...) Mail server responded: System I/O Error" 1 week ago, same problem for another mailbox (but not for the other 3), again affecting both machines. Evolution does delete incoming mail on these 2 mailboxes, no issues at all. Have googled, found only one solution (imap folder corrupt), but nothing makes sense.
View 7 Replies
View Related
Apr 29, 2010
I'd like to configure Evolution (or Thunderbird) to delete Gmail messages. When I select messages and hit "Delete", the messages go to my local trash and they loose their Inbox label in Gmail. I would like that in Gmail, they loose their Inbox label and go to [Gmail]/Trash so that they'll be deleted after a month.
Could I configure the "delete" key of my keyboard to move msg to [Gmail]/Trash ? Could I configure another key to move msg to [Gmail]/Trash ?
What other solution ? Because moving to the trash is not convenient, it takes a lot of time without a key shortcut.
[Code]..
View 9 Replies
View Related
Mar 14, 2010
i was wondering if anyone could give some advice on how to write a bash script that would print processes using more than x mb or x% of the CPU?
View 2 Replies
View Related
Apr 1, 2011
I write a shell script below to add a job to cron.
#!/bin/sh
touch date.cron
echo '*/3 * * * * /usr/sbin/ntpdate 192.168.2.3' >date.cron
[code]....
View 4 Replies
View Related
Apr 2, 2010
I have installed a linux server in my office to run 16 machines. Its main use will be a internal mail server but will be also running websites.
I have installed Ubuntu 9.10 server x64 and have got apache running.
I am looking for the simplest more robust solution for smtp, pop3 and imap. I have only ever used qmail before and found it a pain to configure and its getting old so I though I should probably try something new. I have not much experience with running pop3 or imap on linux so would love a suggestion on that.
View 4 Replies
View Related
Mar 1, 2010
I'm looking for a method to sync my calendars on my IMAP server with both my Thunderbird/Lightning any my Blackberry. I found "IMAP Calendar Proxy" here recently, but it has been inactive for 5 years. I've seen people suggesting the use of services like Plaxo and such, but I don't like the idea of a third party messing with my calendars and contacts. Also, I've had to remove several viruses from computers with Plaxo, and I'm not sure if it in itself is a virus or not..... It certainly is a thorn in my side as is. This is for my personal IMAP server, so I'd prefer a free solution even if it is more difficult to install than a paid version. I mainly need it to just sync my calendar to my Blackberry and Thunderbird and couldn't care less about the contacts.
I've been Googling for things for quite some time now, and haven't really found anything that says that it will work with Blackberry and Thunderbird. They really only give a sense of maybe with nothing really defined. I can put on an Ubuntu server to sync everything? I don't want to leave my computer on all the time, and RIM has yet to come out with something decent to sync Blackberries and Thunderbird properly as far as I know.
View 5 Replies
View Related
Jul 28, 2011
How to write a cron jobs in linux to monitor my project diskspace usage?
check diskspce= du -h .
any clue for me as a beginner?
View 7 Replies
View Related
May 20, 2011
Code:
mount
/dev/sdd1 on /media/E0FD-1813 type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush)
cp 'Aankhon Aankhon Mein hum tum ho gaye deewane.mp3' /media/E0FD-1813/Music/sumeet/a
cp: cannot create regular file '/media/E0FD-1813/Music/sumeet/a/Aankhon Aankhon Mein hum tum ho gaye deewane.mp3': Read-only file system
The micro sd card mounts & works as fat32 in windows xp just fine.
View 14 Replies
View Related
May 4, 2010
I am having many mails transferred through my Sendmail server, so I want to configure it not to allow more than 60 mails to be sent by my sendmail server per minute. How to optimize my mail server's configuration.
View 6 Replies
View Related
Nov 12, 2010
Just started to encounter this problem recently: after entering a valid password for a given user during an SSH login, it takes at least one minute to get to a prompt. It usually takes only a second to check the password and drop me to a prompt.
I haven't had this problem before - it seems to have started this week. Only thing I've done this week is run updates. Has anyone encountered this problem recently? Any ideas or fixes that may help solve this? Server info: not exposed to the Internet, only running SSH, fully patched version of CentOS 5.5 x86_64.
View 2 Replies
View Related
Apr 4, 2011
I recently setup an email server on Fedora Core (14). Sendmail is running and I am trying to authenticate from a client pc using imaps. I installed Cyrus-imap and it is running and listening on 993. When I try to login, it doesn't accept authentication even though I verified the user's password is correct. (tested with ssh)Is there something I have to do with Cyrus or on the server to allow connections to email? I have not used Cyrus before. I am attempting to access my mail folders via Sendmail and did not make mailboxes in Cyrus. I did allow imaps through the firewall.
View 1 Replies
View Related
Jan 10, 2011
share a mount"/RAID" on my server: 192.168.0.2 with everyone on my network.192.168.0.*
From what I have listed below I am able to mount the share but I can not write or delete anything. It is almost like it is ro only permissions.
From the Server:
Code:
sudo cat /etc/exports
[sudo] password for jesse:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
[code]....
Eventually I need to share 192.168.0.2:/RAID on two OSX computers as well. I read some places where you need to add insecure to your /etc/exports on your server in order for the OSX client to access the the share.
View 1 Replies
View Related
Oct 14, 2010
Long time reader, first time poster. I've got, what has become to me, a brain bender. It seems ACL's are the best way to go, but I am not 100% sure. Each user should be able to create files and modify each others'files, but should not be able to delete any one elses files in a directory.chmod -1777?setfacl?
View 2 Replies
View Related
Mar 16, 2011
On a server in an office, I want a situation where people on the client PC are able to write to a particular file, but not have privileges to delete it -
View 3 Replies
View Related
Aug 25, 2010
I setup a qmail on a Debian 5 Lenny server with courier-imap server. I can send mails but cannot receive mails. I altered /etc/init.d/qmail as follows.
Code:
View 3 Replies
View Related
May 7, 2011
Whenever I try to login via SquirrelMail into my account I get this error message:
ERROR: Connection dropped by IMAP server.
View 1 Replies
View Related
Apr 26, 2010
This has been raised as redhat bugzilla bug 583054 - seeI am posting here in case anyone else has dealt with a similar problem. In brief, I have a print server running Fedora 12/CUPS dual boot WinXP. The attached printer is a Canon BJC-4100. When the server is booted in F12, it takes over a minute for a networked Fedora 12 box to bring up a print dialog, or for the printer to start after a page has been submitted. When the print server is booted in WinXP, printing is immediate.
Tim Waugh identified the problem in the CUPS Troubleshooter output:
'D [10/Apr/2010:09:00:20 +1000] cupsdNetIFUpdate: "lo" = localhost:631',
'D [10/Apr/2010:09:00:37 +1000] cupsdNetIFUpdate: "eth0" = 192.168.0.199:631',
[code]....
View 3 Replies
View Related
Apr 21, 2011
i have to write a shell script that will delete all the .dat files in /var/oracle/etl/incoming which the created date of the file is 7 days before the currrent date.
View 8 Replies
View Related
Oct 17, 2010
I work as a part-time consultant developing webpages, both back end and front end.When developing a back end application I'm using a server running ubuntu server edition to host the application while I'm developing it.The problem comes when I want to upload my changes to the server, now I'm using Dropbox both on the client and the server, the problem is that sometimes I have to wait over a minute for the changes to be downloaded (when I'm working out-of-home that is) so I'm looking for a better alternative. My options seems to be:Some open source version of dropbox which syncs directly to my server (haven't found anyting that sounds viable though)
Mount my server via some protocol (NFS, SSHFS etc)
Push changes manually via FTP, git, svn or something else
I'd like the sync to be as transparent as possible, meaning I'd like to do as little manual work as possible.The client I'd like to connect runs either OSX or Ubuntu.The ultimate solution would be to use NFS + VPN though that would be alot of work to set up and also I don't like the security in NFS (matching UID's doesn't seem very secure to me)
View 3 Replies
View Related
Nov 3, 2010
I have x11vnc server set up on my desktop PC. I can boot the computer and connect at the login screen if I want to. I can login to my computer as usual. But after about 1 minute of logging in, the computer logs off as if pressing Ctrl+Alt+Backspace and returns me to the login screen. This cycle repeats when I login and I have to kill the x11vnc process or remove the command from /etc/gdm/Init/Default.Have tried so many things now but the end result is the same. I have Ubuntu 10.10 fully updated and x11vnc 9.10-1 from the default repos. I am using the following command in the /etc/gdm/Init/Default file:
Code:
/usr/bin/x11vnc -rfbauth ~/.vnc/passwd -rfbport 5901 -display :0 -forever -bg
I don't think it matters now whether I add KillInitClients=false into /etc/gdm/gdm.conf-custom or /etc/gdm/gdm.conf because of the x11vnc version I have. The manual says its not really needed. But I have tried this too with no better luck.The computer will still log me out after about a minute of logging in. It can be between 1 min to 1.5 mins.Running out of ideas and have tried the -noxfixes and -reopen commands.
Why does x11vnc crash out (or it may be gdm or x server?) after about a minute of logging in? If I am currently viewing my desktop through VNC viewer on another computer, it will still crash out after 1 min of log in, and lose the connection. I can reconnect through VNC again but I have to log back in to the remote computer and it will just log out after another minute.At last, in 2 days I have finally solved it. As simple as creating my own version. The x11vnc 9.10-1 version my default Ubuntu 10.10 repos is buggy. Here's my fix (I used this site):
1. Downloaded latest x11vnc dev build from above site (x11vnc-0.9.13-dev.tar.gz at time of posting)
2. Extract it
3. Open Terminal > sudo -s > enter admin password
4. cd LocationOfExtracted folder
[code]...
View 9 Replies
View Related
Jul 7, 2010
I am using my Ubuntu machine to serve as a media server and network storage. The problem I have is iTunes on my desktop managed to make 2 copies of every song on the machine so instead of the 30GB I have its up to almost 100gb. I was wondering if there was a way to write a script to go through and delete the duplicates. The duplicates are the same filename as the original except a 1 or 2 following. Wasn't looking forward to deleting 12,000 files by hand.
View 1 Replies
View Related
Dec 22, 2010
I just got a new PC with 2TB of HDD space and it's running Ubuntu 10.04.1 32bit. I have created a user for networking, called share and have created a folder within the home folder called public. I then shared the folder and gave 777 access to it as I want this to be public - but for my local network and my later for ssh access. I have installed samba, and under the sharing options I allowed for guest logins and people to write and delete from folder. SO how would I be able to "see" this from my windows machine? It's running XP pro and it has a domain other than workgroup - but that shouldn't affect it should it?
Also, the laptop with XP is on the wireless with and internal IP of 10.0.0.135 and my PC is on the LAN connection with and internal IP of 10.0.0.1 I'm sort of familiar with networks, but I have NO clue as to how to do this.
View 3 Replies
View Related
Mar 31, 2011
I got this part from my script working that it will delete a folder is from 8 days agoEightDaysAgo=`(date --date="8 days ago" +%d-%m-%Y)`rm -rf $EightDaysAgoTarHowever I need to remove files that are older than 8days for example if the script is'nt run for a day it will remove both the 9th and 8th day one not just the 8th day one. If I'm making any sense lol
View 3 Replies
View Related
May 11, 2010
I need the IMAP IDLE features but I really prefer the POP way to manage my email. It is really important that all the email I download on my email client is automatically removed from the server but stored locally on my machine. As you have noticed this is the usually behaviour that all email client assumes with the POP server. Since I need the IMAP IDLE I can't use POP, do you know an email client that let me use an IMAP server like a POP one?
View 3 Replies
View Related
Aug 18, 2011
i want to write into the mac os x partition inorder to delete the appleintelcpupowermanagment.kext file
View 1 Replies
View Related
Mar 18, 2011
Does anyone know if there are only personal preferences between the two IMAP servers or does one of a slight advantage over the other? I've used Dovecot only in the past but my package manager loads tons of MySQL libraries with Dovecot which is a problem since that's not authorized on my server right now. I can either install it from source or try another application like Courier.
View 4 Replies
View Related