Server :: Running Process That Sends Email When Returns 0?
Jul 20, 2010
a file or a process that is always running and pinging for example [URL]. returning 1 or 0, when returns 0 (that means have no response) do something else. i already made the something else, basicly sends an email etc.
Using CentOS. I have a cron setup to run this command: Code: /var/test.sh | mail -s "Test Cron" mr182@somewhere.com The email is sent but the output of the script is not in the email body, it's just blank. I know there is some output because there are some echo statements in the script.I don't want to get an email for all cronjobs, just this one.
I'm running ubuntu 10.04 as a server that hosts a website and our email. I set up the email (Postfix) to work with Dovecot to enable IMAP and POP support.The mails can be retrieved and sent through this server with no hassles. We just have an issue that all emails sent via a client to any other address (be it on the same domain or not) will return to the inbox of that client.So basically, I open MS Outlook. Click new message and send it off to my GMail address. After I send it, it pops into my inbox on Outlook (stating that it came from me). The intended recipient also gets the message.
A question that I've asked myself (and google) many times but never got to an answer.Scenario:ServerA) postfix Primary MXServerB) postfix Backup MXAccording to the rfc a source mailserver can decide where to send email e.g.send an email to backup even is primary is reachable up and running.So my questions are: 1) how do I (live I mean) replicate messages arrived on any server to the other?2) How do I synchronise sent messages, message deletion, folder creation/deletion.Imapsync goes half way towards the solution but it needs to be run manually one off and you must specify source and destination.All I wanted really is a user to be able to use either server without having to worry about primary/secondary or what so ever.
recently i setup new LAMP server , after some days faced a strange problem? suddenly the server load goes to 100 or 80 but there is no wearied process running? the normal lod is between 0.5 to 1.5? the server have 2 hdd on hardware raid 0
Hi I am running a fedora 10 desktop. when i send an email using evolution the message was not sent but returns a error message:"Error while performing operation.DATA command failedError: 550 Viagra SPAM - Hi in Subject" and the message did not have an attachment just plain words. what might have gone wrong for i have been using this for sometime without a problem. or what security measures should be in place to remove this viagra spamAm I infected by virus on this fedora, all my updates are up to date.
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.
Since /etc/rc2.d/S19mysql does not exists anymore, and then init.d/mysql uses /sbin/start, I am unable to use mysql server anymore: me@mycomputer~#start mysql [ret] ...... for hours this command never returns so that ^C aborts...
me@mycomputer~#ps axw |grep mysql ( no results, no mysql!!! ) me@mycomputer~#stop mysql [ret] no returns either!!! This upstart [start|stop] thing seems a total failure for mysql!!!
I'm trying to sign up to office-live but I'm getting this error. Is it possible to report to office-live that I'm using windows so I should be able to use the service.
I have a dhcpd server running CentOS and Webmin. I noticed in my lists of expired leases some of the lease times are only a few hours even thought I have lease length set to 1 week. I want to keep a lease for a week even if the device requests that it be expired. Is there some way I can do this in dhcpd? I am attaching a screenshot of some of my lease times listed in Webmin.
I'm new here and I'm sure this question has been thrown around a lot but I just couldn't find a solution. I have a networking website I've setup and we need to send notification mails to our members depending on activity related to their profiles(messages, comments etc).We are hosting the site on Centos5.6 with VirtualMin and are using Postfix as our MTA. We also use google apps for email on the site. Heres the problem, the mails go through for some gmail users but more often than not, they end up in gmail,hotmail and yahoo spam.We've setup the appropriate SPF codes on the server, DKIM and rDNS works fine.v=spf1 ip4:xx.xx.xx.xx a mx include:_spf.google.com ~all Below is a sample email that goes directly into gmail spam. I've replaced the actual values with dummy text (Ip, Domain etc)
Delivered-To: my.email@gmail.com Received: by 10.143.165.5 with SMTP id s5cs223598wfo; Fri, 15 Apr 2011 08:38:22 -0700 (PDT)
Sometimes I connect to my Debian box from another computer (using SSH on Cygwin or Linux), and once ina while I want to run some console apps. And sometimes some of these apps might complain about "another intance, Error: an instance of newsbeuter is already running (PID: 2496)". Is there a work around for this issue at all(without killing the original instance") ? The reason I do not want to kill the app because there might be 2 users connected to the same machine that might be using the same app.
i have a website, there is a button that u click fill out a form and sends u a link to download a trial version of our software, the message gets sent with out html.. i copied a sample below (edited out some personal info)
I am trying to process an email form using PHP.It is working okay so far but I want the Items to be displayed as a list when the email is received. eg.
one two three four
and not
one two three four
here is a copy of the variable that displays the message
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?
I have a function in my SOAP server that returns an array. When the client calls this function, it only receives "array", and when I use foreach to print each member of this array, it tells me that this is not an array. If I change the returned value of the function to a string or integer type everything works fine though, so I don't think that there is any problem with the client.I am using NuSOAP library on php to achieve that.I had doubt when declaring the type of return value of the function. In XML schema there is no array type, so I specified the return value as a string like this:
I have all of these "archival" email messages and attachments. Most are Mozilla Thunderbird format. Others are Evolution format. Some are win-dose. Most are linux. Where can I find software that will me format, organize, store, and retrieve email messages for long term archives? I'd like to collect all of each thread together with any of the relevant attachments. I'd like something that is searchable. I'd like something that is "pretty print-able" -- PDF or similar -- should I want to share an historical thread with others. I suspect there are commercial-grade, "compliance oriented" application suites for message and document storage.
Brand new to Linux. Sort of got thrown in front of the bus if you know what I mean. The company I work for has a Linux server running CentOS 5.4 Company uses Linux for their Email, FTP and Web Server. Have been here a few years dabbling in and out of Linux and now that the old Admin has left the company.....I need to learn it ASAP. The server has run pretty solid until today.
The email server runs SendMail and SpamAssasin. Received lots of complaints today regarding extra SPAM. Noticed that SpamAssassin was not running. Tried to restart it through the WebMin tools and got the following error: Starting spamd: child process [3956] exited or timed out without signaling production of a PID file: exit 255 at /usr/bin/spamd line 2588.
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.
I'm attempting to use REGEX to isolate media (video and audio) essence that relate to alias/reference Quicktime movies. The Quicktime movie filename (excluding ".mov" can always be found in the media-essence filename.Stages of my process are:I cache the contents of a text file into an array ($file). This text file/array contains a list of Quicktime movies and media essence. Essence for each Quicktime movie is contained in this text file. An example text file is below:
I have vnc server 4.1 installed in server and setup /root/.vnc/xstartup and /etc/sysconfig/vncservers as below.
/root/.vnc/xstartup #!/bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc xhost +localhost +'hostname'
[Code]...
now i tried connecting to this server by vnc vnc viwer from my windows Vista machine..But only getting blank screen without a terminal window or anything opened.
Server Distro: Debian Testing (Squeeze) FreeSWITCH ver.: 1.0.6
Client (Dual-Boot Setup) Problem: Both Windows Vista Ultimate 64-Bit and Ubuntu 10.04 LTS versions of Ekiga, including SFLphone in Ubuntu 10.04 seems to be ignored by FreeSWITCH. FreeSWITCH fails to register. In the client side, the Windows firewall gets turned off for testing while everything in iptables under Ubuntu has everything set to accept in the filter section. In the server side, the firewall configuration is quite basic.eth0: Cable Modem plugged in via USB cable eth1: nVidia Gigabit that connects to my 1Gbit switch