The script works fine - it runs every 5 minutes and checks if certain environmental variables are set in place - if they are, it prints an output. If they're not, it dies.
The problem is that when it dies, it still sends me a blank email - one every 5 minutes, every time the cron job runs.
telling it not to send if it's blank?
I'm assuming some type of dirty awk script could do this, but I don't really know my shell well enough to do that.
I'm not good at putting these things into words, so let me write some psuedo code to explain what I mean:
I'm experimenting with with mail-servers now and I'm trying to configure postfix to send emails from one email(pop3 is gmail) to any email outside the local network. Server is Ubuntu 10.10 with the last updates.
I've just discovered that crontab is creating a new file in the root directory every time it executes a cronjob, and it doesn't erase over the old file so there are thousands of files in the root directory, they have the same name as the script file (appended with a numeral) but are all blank.here is what one of the cronjob's looks like[URL]
Does anyone know what might be causing the following situation?
Crontab emails are bouncing with the message "Message rejected as spam by Content Filtering." (I've contacted the mail server admin about this.)
But emails sent with the command "mail user@example.com" etc. are "stat=Sent ... Queued mail for delivery" (according to the log), but never arrive and never bounce. I've tried sending as root and as other users.
I install qmail server from source according to document on qmailrocks.org but when i add domain and email account and after press the button create the next window in explorer is blank.
I'm trying to learn how to send my self an email reminder using crontab, this is what I tried but I'm not getting the email.# m h dom mon dow command 33 13 * * 3 mail -s "This is a test" joedwalker.email@gmail.com < /home/joe/email.
Can any one recommend an email software that will let me read my emails on the pc without removing them from there original location in case i want to read them on another pc/work, also i need to be able to bounce spam like you can do in mail on the Mac.
I have sendmail setup and it works fine sending emails to outside email addresses. When I try and send email to our internal groupwise server the mail never gets there and I get an error message in the log user unknown.
Normally I just use the backup feature in evolution but how would I go about saving my emails if I wanted to import them into another email program?I am going to install Mint 9 KDE on a separate partition and I have found evolution does not play nicely in KDE so was hoping there was a way of importing my evolution mail into Mints KDE email program.
I have a Linux server running CentOS with 2GB RAM. I am searching in google and also in this forum but could not find any luck yet. I am searching the way that we can receive notification by system to a specified email when the memory reached a specified value we defined.
Is there any tool or sort of shell script we set via crontab every minute to check that?
I have a domain hosted with some remote host where I pay $10 a month and they provide me with, among other things, a bunch of email addresses. One of these addresses is my default address I use for everything and is blackberry@mydomain.com. I no longer have a Blackberry, I switched over to a HTC Hero with Google Android so I'm wondering how I could get that email address pushing emails out to my phone. Android supports Exchange but the licenses are too expensive for me. Is there an Ubuntu alternative to make this work somehow?
I am using Linux 64 bit Redhat Linux. I am trying to setup simple crontab as follow...1. Edited crontab file using crontab -e2. Listed the file once to verify it using crontab -l. This will display as.. 18 5 * * 2-3 ksh $HOME/testScript.sh > $HOME/testscript.out3. Logged in a root and restarted cron deamon using "/etc/init.d/crond restart"As per my understanding now my testScript should start running at 5:18 am Thuesday
I want to setup an email client in order to send/receive emails, but since i am experiencing some issues with my ISP, i decided to setup an SMTP server with Postfix on my machine.The problem is that i can receive emails but i can not send.I read almost every thread in here refering to Postfix, but i could not find the problem on my configuration.So here it is..
Code: # See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first
Have someone used Linux heartbeat to send email when the Slave server becomes the Master? I've read I can configure the MailTo under.
But I really don't know how to do it. I basically need my primary server to send an email when it becomes inactive and all the activities are manage by the secondary node.
I am running in a problem that i have put a postfix regex which needs to discard emails having no subjects, while it works fine for gmail,hotmail and other domains but it does not work for [URL] ultimate reason behind this is because yahoo does not send subject line if subject is not included in email.
I'm attempting to send email with a PHP application I got from a textbook. Do I need to start an email server in order to get the application to work?Using SuSE 11.2
Debian 5, apache 2.2 I've got Apache up and hosting multiple sites. Each site will have a php contact me page that will simply dump an email to a fixed address. What program should i be using to accomplish this? I've used nullmailer before but that assumes you have a fixed smarthost somewhere which I don't.
Is there a way of allowing only certain domain to send e-mails to certain specific e-mail address. I am using Sendmail, and I have an alias which translate to certain members of staff within my organization. I don't expect e-mails from outside our domain to be sent to this alias e-mail address.
I have recently setup a new mail server and have simulated sending and receiving on the new email server. The new email server will replace the primary one.I would like to setup the new email server in parallel with the existing one.This way i can observe issues that might occur and be aware of what could go wrong. I want to received mail to be delivered to both mail servers at the same time.I would like to use postfix, exim i find a bit to difficult to understand.I have thought of using transport maps, the only problem is that you can only forward mail to one server at a time using transport maps.I think recipient_bcc_maps and sender_bcc_maps could work, i would just like ideas of how i can do this.
I have a user who was getting constantly spammed so I deleted their email account but it's still coming in and trying to get delivered, how do drop all email for a specific email address?
is it possible disabling a crontab job without deleting the crontab description entry (by crontab -e)?I could also accept to change the entry itself. Now it's:0 0 * * 0-6 /home/me/cron/script.csh
my server and it had a load of 60 so i immediately took down apache and the load went back down to 0 in a few mins and every time i put it back on the cpu usage on both cores immediately goes to 100% and the load goes up to 20 in just 60 seconds until i take apache down again?
I am thinking about buying a domain name and hosting my web server.
I have seen pricing from $8 to $30 a year. Any favorites from fellow ubunters? Also this whole "whois" thing scares me, if I am correct my information I enter when buying the domain is enter into some big pool of information. People can find this information out and dig up important information. url Can I prevent this with private Whois or how do I set it up? This website examples some of my fears with this whole WhoIs thing, url whois/Private-Whois.html Does most/all domain registers come with email or just email forwarding or both? How does that work? At this moment, my only question about Web Hosting is how do I get Website Statistics as in: Stats, web analytics, web traffic stats and more? I will be web hosting through Ubuntu 9.10 gnome.
Could it be the IMAP file is corrupt?I have set up mail server on Centos to receive via dovecot.One of my user accounts (A single account out of a hundred)cannot receive their mails.