Sponsored Content
Top Forums Shell Programming and Scripting Check sendmail is not receiving any emails Post 63295 by Neo on Wednesday 23rd of February 2005 09:58:23 PM
Old 02-23-2005
Dear Kinki,

Please do not "bump up" your posts. This is a rule violation. Thank you.

As far as your question, here is the code I use in the crontab file for sendmail to make sure it *IS* running:

Code:
www# cat checksendmail
#!/usr/bin/perl

open(PS,"/bin/ps x|") || die "Can't Open PS";
while(<PS>) {
if (/sendmail: accepting/) { close PS; exit;}
}
close PS;
system("/usr/lib/sendmail -bd -q5m");

You can easily modify my little script to make sure sendmail is *NOT* running....

Neo
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Help me in receiving,validating emails and save them in local directory

hi, I'm working on a project where I get mails from different customers, what I need to do is I need to check if it is genuine mail and if there is any attachment I need to validate them and extract the message and save in the local directory as a text file say and then I need to direct it to... (4 Replies)
Discussion started by: sudharsanc
4 Replies

2. AIX

sendmail only sends emails to its own domain

Hi, folks! I have a problem with an AIX 5.3 server running sendmail where it is able to send messages within its own domain just fine. This is being used for a web email service portion of a web site. However, when it attempts to send email to any other domain -- i.e., hotmail.com -- it... (3 Replies)
Discussion started by: jjwood64
3 Replies

3. UNIX for Dummies Questions & Answers

run a perl.script upon receiving an email in Sendmail

Hi All I am newbie with Sendmail and Linux in general. We use sendmail for outgoing and incoming mails. Once our server receives a certain email xxx@yyy.com we would like to run a PERL script doing some task wiht it. Can you address me a little bit on that topic? In order to do that the... (0 Replies)
Discussion started by: manustone
0 Replies

4. Programming

how to check port binding in pcap receiving program?

hi, I am writing one packet receiving program using libpcap library. Now, I want to check port is already using or not. how to check in receiver program.. If normal program, bind return value we can able to check the port using or not. but, in pcap program how can i check? thank... (1 Reply)
Discussion started by: ram.sj
1 Replies

5. Red Hat

Sendmail fails receiving mail since the IP changed on Redhat Server

Hi, Since i move my Linux Redhat server on another Network with new IP address. WE'RE ABLE TO SEND MAIL OUTSIDE BUT we can not receive any incoming mail. It alway points to the old IP. I updated new IP in /etc/hosts and /etc/sysconfig/network then reboot the system. 10.117.32.20 is an old ip... (3 Replies)
Discussion started by: lamoul
3 Replies

6. Solaris

How to check the number of emails sent out from the Solaris server

Our solaris are configured to send out email and i would like to know the number of emails sent out from the solaris server. Anyone know can this be done? Thanks (1 Reply)
Discussion started by: sirius20d
1 Replies

7. UNIX for Advanced & Expert Users

mailx Vs sendmail to send internal emails to exchange

Hi Gurus, I have been searching for this around, but sendmail seems complicated and not sure if "mail" command would do, since all what I need to send internal emails from my solaris 10 box to our exchange server. Would the mailx or mail command do ? I tried the : # mailx -s test... (2 Replies)
Discussion started by: aladdin
2 Replies

8. Linux

Sendmail takes too long to start and the host is unable to send emails

Hello All, Sendmail takes too long to start and the host is unable to send emails, below are the steps followed, Please let me know if I'm missing anything, is there a debug mode for mailx? # time service sendmail restart Shutting down sm-client: Shutting... (6 Replies)
Discussion started by: lovesaikrishna
6 Replies

9. AIX

Sendmail daemon is inactive, but still i can send emails

Hi, I did setup sendmail on one of AIX LPARs. Its working as expected. But, would like to clarify something with you all. I stopped the sendmail daemon on AIX LPAR, now it is inactive(&commented it on /etc/rc.tcpip ). But still, am able to send the emails even after stopping daemon. ... (6 Replies)
Discussion started by: system.engineer
6 Replies

10. Shell Programming and Scripting

Sendmail Fails to send emails from Linux server.

I m using free zoho mail client application (similar to microsoft outlook) on my mobile for all my emails to mohtashim@techx.com I wish to only recieve emails from my Linux Server details of which are: techx 3.10.0-514.10.2.el7.x86_64 #1 SMP CentOS release 7.3.1611 (Core). I try the below... (20 Replies)
Discussion started by: mohtashims
20 Replies
SENSIBLE-MDA(8) 					      System Manager's Manual						   SENSIBLE-MDA(8)

NAME
sensible-mda - a generic local MDA router for Debian systems SYNOPSIS
sensible-mda from to detail client-addr DESCRIPTION
sensible-mda is used to simplify the installation and configuration of sendmail(8) , or other MTAs for use on Debian systems. With sensi- ble-mda, sendmail can support a plethora of MDAs (procmail, maildrop, deliver, etc.) without having pick any one of them as required. FUNCTION
sensible-mda is called by sendmail as a local mailer when the following exists in sendmail.mc: define(`LOCAL_MAILER_ARGS', `sensible-mda $g $u $h ${client_addr}')dnl sensible-mda will look for the following MDAs (in this order), and pass the mail on to the first SUID MDA found (Or first found MDA, if run w/euid=root): procmail(1), maildrop(1), deliver(8), mail.local(8) OPTIONS
Available command line options are the following: from The sender of this email (sendmail $g variable) to The recipient of this email (sendmail $u variable) detail The detail portion of the recipient userid (sendmail $h variable) - ie: cowboy+sendmail@debian.org client-addr TCP/IP address of the sender (sendmail ${client_addr} variable) Not used (for the nonce) FILES
/etc/mail/sendmail.mc sendmail m4 input to generate sendmail.cf /etc/mail/sendmail.cf actual sendmail configuration file (treated as a binary file) SEE ALSO
sendmail(8), procmail(1), maildrop(1), deliver(8), mail.local(8) BUGS
None known so far. AUTHOR
Richard Nelson <cowboy@debian.org> HISTORY
4th Berkeley Distribution October 21 1999 SENSIBLE-MDA(8)
All times are GMT -4. The time now is 07:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy