Server :: When Cron Is Running, Monit Loses Its Connection To Postfix?
Mar 18, 2011
I've run into a strange problem on one of the servers I maintain. It's running CentOS 5, fully up to date. The server has Monit installed via RPMforge, and runs Postfix as its MTA. Every day at about 4:20am, when cron is running, Monit loses its connection to Postfix. As far as I can tell, nothing is actually going wrong with Postfix and it's always restarted just fine. I run a couple of Debian servers with very similar setups, and the problem does not occur on them.
Perhaps related, other daemons on the CentOS box often lose their pid files at the time when cron runs, which results in Monit thinking they're not running. One service in particular (zarafa-dagent) is so bad for this that I've had to completely disable monitoring of it in Monit. Again, this problem doesn't occur on the Debian boxes I maintain.The problem isn't hugely urgent as everything still runs fine, but it does mean that pretty much every day I get false positive mail alerts from Monit, which is (a) annoying and (b) makes me more likely to miss a real alert.
View 5 Replies
ADVERTISEMENT
Feb 25, 2011
I recently moved over user from an old box running postfix(v 2.0.16) over to rhel 6 running postfix (v mail_version = 2.6.6). ive tried to make sure all the files are of correct permissions and that the main.cf file is configured corectly. However there is something wrong as when i run postfix: service postfix server i get no error but when checking the status:service postfix status i get: master dead but pid file exists Looking into /var/log/mailog i find this line being the issue:
Feb 25 16:24:39 puny1 postfix/master[3517]: fatal: fifo_listen: create fifo public/pickup: Permission denied
I gather this is a file permission issue and ive tried to make sure the public folder in /var/spool/postfix is correctly set but still no avail.
View 2 Replies
View Related
Jan 31, 2010
I want to make a cron job for my webserver, only it seems not to work...
I have now the followig to test (every 16th minute of the hour, write test to a file), but it doesn't show up. When I write out the cron, it is done to the file: /tmp/crontab.QXsBIO/crontab . How to make cron work? It must be very easy, but I have real troubles getting it fired up.
My Linux version is debian lenny and the cron file looks like (crontab -e):
(with trailing empty line at the end)
View 3 Replies
View Related
Jun 15, 2011
Cron on one of my boxes isn't running and I failed to determine why.
Here are what I have found so far:
Password:
View 6 Replies
View Related
Mar 23, 2011
Linux printing appeared to be working fine up until yesterday. Today typing lpq gives the following: lpq Printer 'sdst@other.domain' - cannot open connection - Connection timed out Make sure LPD server is running on the server
The /etc/cups/printers.conf file is properly set, the printers appear in localhost:631 and they are printing test pages. However, all command line print commands seem to be trying to print to sdst@other.domain I don't know why printers.conf is being ignored and why and how sdst@other.domain was added. Seems like it might have been auto-discovered?
# dit: sdst@other.domain was mentioned in /usr/local/etc/lpd.conf I'm not sure why lpd.conf is being used instead of /etc/cups/printers.conf
View 1 Replies
View Related
Jul 1, 2010
I want to create 2 cron jobs daily
1st cron: Every day by 13(1pm) I want to stop the httpd service
2nd cron: Every day by 13:30(1.30pm) I want to start the httpd service
I tried but only 1 cron job can able to run at a time.
View 7 Replies
View Related
Jul 27, 2011
I am using postfix as spam Mailscanner to protect my mail server running sendmail. The problem is that when I forward an email from MailScanner mail me back with the following error:
<postmaster@localhost.@mydomain.com.>... Real domain name required for sender address (in reply to MAIL FROM command))
Jul 27 13:15:59 smtp postfix/local[28465]: C68AC1000001: to=<root@smtp.mydomain.com>,
[code]....
View 1 Replies
View Related
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
Jul 17, 2010
im trying to setup a mail server i am with fedora core, postfix and i have a dsl internet connexion my ip is dynamic so i readed some tutorial on how to configure postfix
Quote:
myhostname = mta1.domain.com
mydomain = domain.com
View 3 Replies
View Related
Feb 9, 2011
Is my vixie-cron broken? i have "0-59 * * * * root /usr/sbin/logrotate /etc/logrotate.conf" but it is not running in /etc/cron.d.
Code:
View 2 Replies
View Related
Aug 7, 2010
I have just built a new postifx open relay server to allow my ISP clients to send emails. During testing of the SMPT protocol, I can managed to send emails to my localhost however, I can't send emails to other external mail server. Below is a test to a yahoo account. Aug 7 15:03:55 mx2 postfix/smtp[4050]: connect to g.mx.mail.yahoo.com[98.137.54.238]: Connection refused (port 25) Aug 7 15:03:55 mx2 postfix/smtp[4050]: F084EC8D76: to=<ellyu4@yahoo.com>, relay=none, delay=8.5, delays=1.2/0.05/7.3/0, dsn=4.4.1, status=deferred (connect to g.mx.mail.yahoo.com[98.137.54.238]: Connection refused)
[Code]....
View 16 Replies
View Related
Oct 28, 2010
i have an ubuntu server box as my gateway and firewall. for days at a time itll run fine, then one or two days out of the week, it will drop connection often because it drops its ip addr. when renew an ip, itll work fine for about 5 minutes and drop again.ive tried different nics, different wire, my logs dont mention anything, my cron files dont have anything suspicious.
View 8 Replies
View Related
Mar 1, 2009
I am setting up a fresh Fedora 10 install on an older computer for a roommate and have one odd little problem, everything else appears to be working just fine.
The network connection drops after about 2 minutes (somewhere between 90-120 seconds). This only happens in the installed Fedora 10; it does not happen at all when I boot a Kubuntu LiveCD.
Here's what I know:
The machine is a Dell Dimenision 4500, 2.0 GHz, 512Mb ram.
The ethernet card is 21x4x DEC-Tulip compatible 10/100 Ethernet.
Unplugging the ethernet cord and plugging it back in allows the network interface to come back up, grabs the right IP, but only holds it for another two minutes.
ifconfig and route show all the right info while the connection is good, but inet disappears once it goes down.
'ifdown eth0' and 'ifup eth0' do not bring it back up.
Is this a driver issue perhaps?
View 1 Replies
View Related
Mar 24, 2011
I am fairly new to linux. I have Ubuntu 10.10 on my Dell Inspiron E1705. While browsing my internet connection suddenly stops working. It says that I am still connected but the internet doesn't work. When I try to disconnect then reconnect it will not connect to the network. To get it to reconnect i have to turn of the wireless card, delete the connection then restart, turn the card back on and reconnect.
View 9 Replies
View Related
Oct 24, 2010
I have Vortexbox (fedora distro) installed on a laptop which I am using as a media server. I would have issues where I thought the laptop would go to sleep and disconnect itself from the internet. The computer boots in command line mode and what I would notice is that the screen would go blank and then I would have to go to the computer and jiggle the trackpad and it would wake up. I posted about it and got responses related to the gnome desktop which I could not find the files referred to in the answer.
I tried using setterm to keep the computer awake setting blank to 0 and powersave off. The same thing happens even with the monitor on and the screen display on. A gesture on the trackpad seems to wake the ethernet back up. Here's my old post: [URL]. Everything else about this situation is perfect. Vortexbox is easy to set up and it does everything I want, DLNA, streams to my squeezeboxes, etc, but this ethernet cutting out is exasperating.
View 8 Replies
View Related
May 24, 2010
Since today morning we are getting this error, could not track down the cause
We are running :
Postfix
Amavist and Clam
70A6C45A1CE: to=<actualemailid@yahoo.com>, relay=none, delay=0, status=deferred (delivery temporarily suspended: lost connection with 127.0.0.1[127.0.0.1] while sending end of data -- message may be sent more than once).
View 6 Replies
View Related
Apr 18, 2011
I currently have a personal use server setup in my home and would like to be able to send emails from my domain name.
At&t blocks the standard ports used so some form of forwarding would have to be used. I've looked at other guides and followed them to the key but it appears I'm always missing something.
So my question here is could anyone write a detailed guide from start to finish on how to install a postfix server behind an at&t connection complete with MX record and firewall configuration information?
View 4 Replies
View Related
Aug 25, 2010
I have windows 7 dual-booted with ubuntu. Im having issues with ubuntu however and i am very new to using linux (sorry). When i intalled ubuntu and ran on it a seperate partition everything seemed to work fine until i tried connecting to the wireless internet in my university. This is what's driving me crazy. When i first turn ubuntu on it connects normally to the internet, and i can usually get onto google for 30 seconds. After 30 seconds, the wireless loses its connection and the internet shuts off, even though it can still detect the wifi in the area. I try to reconnect but it consistently fails... I also get some sort of .local avashi error message (dont remember what it said exactly) for a brief moment and then it fades away. Can someone tell me what to do? This is driving me crazy. btw, i have a realtek rtl8191 wlan nic driver installed on windows, so im assuming thats the driver installed on linux to. Do i need to install a different version like kubuntu or xubuntu?
View 1 Replies
View Related
Apr 22, 2011
I just installed the Natty Beta and plugged in a Netgear WG111v3 USB wifi adapter. It is using the RTL8187B driver and worked out of the box. The problem it loses my connection every few minutes. Sometimes not for 10 or 15, sometimes like a minute or less. After it loses the connection, I have to uncheck "enable wireless" (which I assume is the equivalent of bringing down my wireless interface) and then check it again before it will let me reconnect. I don't want to try ndiswrapper because the card works great when it works, including monitor mode and packet injection!
View 3 Replies
View Related
May 7, 2010
When using a Verizon UM150 aircard, it is quickly recognized in Ubuntu 10.04. It installs and connects quickly and seamlessly. After anywhere from a few seconds to a few minutes it disconnects and then disappears from the network manager. To reconnect I have to exit and reboot into Ubuntu. I suspect that there is a conflicting driver that needs to be blacklisted.
View 5 Replies
View Related
Sep 5, 2010
I am using Ubuntu Studio 10.04 LTS and I am experiencing the following problem: my computer loses its Internet connection and appears to require several reboots to re-establish an Internet connection.
As suggested on a similar post relating to wireless connection loss, I supply the output of sudo lshw -C network
*-network
description: Ethernet interface
product: NetLink BCM5789 Gigabit Ethernet PCI Express
vendor: Broadcom Corporation
[Code].....
Note that I have REMOVED my wireless card in case there was some kind of hardware conflict or failure. I am using a wired connection through a Linksys WRT54G router that is supplying an Internet connection to another computer and an IP phone without any problem.
When I run the command network-admin (or select System > Administration > Network) I can see only 3 tabs (General, DNS and Hosts) It seems that the Connections tab has disappeared (and I believe this happened when I upgraded from Ubuntu 9/Karmic Koala). If I click Help it shows me that there should be 4 tabs, not 3.
The connection dropping began prior to my decision to upgrade. In fact it took several attempts to complete the upgrade. Should I attempt to re-install the upgrade? I am not sure how to do it without losing my connection. When I visit System > Administration > Update Manager, I am informed that my system is up to date.
View 3 Replies
View Related
Jun 1, 2010
My root Vixie cron crontab is set to perform a system snapshot via fsarchiver: 0 0 * * * fsarchiver savefs -o -A /backups/p30_root.fsa /dev/sda2 /dev/sda3 The command itself works fine, generating about a 7G snapshot of my Suse server. I then wish to rsync this to a NAS I have located in another building: 0 3 * * * rsync -av -e ssh --delete /backups/ root{at address}:/DataVolume/os_backups/
(yes, I'm rsyncing as root. I absolutely loathe it, but I got thrown into an quasi-SA position with a ridiculous to-do list and no time to do it. I'm having to make things just work and then go back and try to improve them/learn how. I couldn't make it work in a non-root way quick enough, so for now I'm having to cron rsync jobs as root because of all the differing file permissions on this samba/MySql server. I set the NAS to only accepts ssh from the server IP, and we're behind a campus firewall... It's serious trial by fire.) The crontab also has rsync commands for the samba areas, our specialized chemistry software and affiliated MySQL databases............
View 2 Replies
View Related
Mar 19, 2010
Somehow Bind dns, Postfix, Cron all fail to start automatically at boot time? All of them need to be started manually after the system is up in order to function.
View 1 Replies
View Related
Sep 25, 2010
is there any HOWTO for configuring Webmin Postfix server with multiple postfix virtual hosts? Seems to be a tough challenge to set it up without any easy manual..
View 1 Replies
View Related
Oct 4, 2010
so i set out to change the default smtp port the server uses because my ISP blocks port 25 and i need the email to work in outlook. this morning i could receive email, but not send it. so i did some research and thought that i needed to edit the master.cf file in /etc/postfix/ by commenting out this line: smtp inet n - n - - smtpd -oand replace it with587 inet n - n - - smtpd (587 being the port i want to use)somewhere along the lines postfix server stopped running and now i cannot get it to start.if i try using SSH it crashes immediately and if i restart it in simple control panel nothing happens
View 7 Replies
View Related
Mar 23, 2010
I have an NFS client that loses connectivity with an NFS volume about once a week. The NFS client has several other volumes mounted to the same NFS server but this is the only volume that appears to have problems. It is mounted with these options: intr,rw,rsize=8192,wsize=8192
Before I start messing with the timeout options, what else could I look at to troubleshoot this?
View 1 Replies
View Related
Aug 1, 2011
I have 2 servers..
let say server A and server B
On server A open ssh is configured and is running on port 2298. So from my machine I can login there using ssh on port 2298
But when I login to server B and from there I try to connect to server A I cannot.
ssh: connect to host <ipaddress here> port 2298: Connection refused
View 2 Replies
View Related
Oct 22, 2010
I am still an openSUSE noob and have been struggeling to get cron jobs running for the past couple of hours...without having success Hopefully a more experienced user can give me a hand As root I used crontab to setup some cron jobs:
Code:
crontab -u api-cebian -e
The resulting cronjob looks like this:
[code]....
View 7 Replies
View Related
Jan 6, 2010
why my second cron job isn't running? The first one runs fine but the second one does not run at all. If I manually run the script using ./check.sh then it does what it is supposed to but will not run from cron. It should run every weekday at 9:45am, it looks good to me but clearly I am doing something wrong.
Code:
# m h dom mon dow command
#This will backup my hosted websites.
0 2 * * * /home/bob/scripts/websitebakscript.sh
#This will run check and upload it's contents to the net.
45 9 * * 1,2,3,4,5 /home/bob/scripts/check.sh
View 9 Replies
View Related
Oct 25, 2010
Cron refuses to work for a newbie.I am trying to setup a cron job to backup a folder in my home directory ('/home/scratch') to a folder ('home/internet_backup') that is mounted (using nfs) to a network folder.the folder ('home/internet_backup') is mounted correctly to the network folder upon system startup, so this part works.
View 4 Replies
View Related