Sendmail daemon is inactive, but still i can send emails


 
Thread Tools Search this Thread
Operating Systems AIX Sendmail daemon is inactive, but still i can send emails
# 1  
Old 01-06-2016
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.

Code:
Code:
[root@aixlpar]/>lssrc -s sendmail
Subsystem         Group            PID          Status
 sendmail         mail                          inoperative

As per my understanding;
in order to "send" mail, the mail server is not required to accept connections on port 25 or any other port. Listening mail server is used for receiving mail.

is that correct ?
if yes, so i can disable the sendmail daemon on aix forever right ?


another question is
i see some error/entry in mail logs all the time.but, I do not see this error after stopping the sendmail daemon.

Code:
"
Jan  1 10:10:10 AIXLPAR mail:info sendmail[1234567]: xxxxxx4: to=myuser.name@domain.com, ctladdr=root (0/0), delay=10:10:39, xdelay=00:02:15, mailer=esmtp, pri=35000, relay=domain.com., dsn=4.0.0, stat=Deferred: Name server: domain.com.: host name lookup failure"

Please let me know, if this error can be ignored.

Last edited by system.engineer; 01-06-2016 at 05:34 PM..
# 2  
Old 01-06-2016
If you don't care that mail is sitting in your machine's outgoing queue and is will not be delivered, then you can ignore the message.

And, since you have turned off the sendmail, why are you surprised that you are no longer seeing the error messages it would print if it were running?
# 3  
Old 01-06-2016
Thanks for the reply Don.

coming to my 2nd question
Yeah you're correct. I stopped the sendmail, should not see any error messages related to mail.

but i did not know why got that error message.

my first question was,
i was able to send emails even after stopping daemon. I believe my assumption(mentioned first post) was correct. But, i wanted to double check with experts.
# 4  
Old 01-06-2016
You say you are able to send e-mail after you disable the sendmail daemon. That is not surprising. Tools that add e-mail messages to be sent out are independent of the sendmail daemon that would pick up those messages after they are queued and forward them to the desired recipients.

Did anyone receive any of those messages that were sent after you disable the sendmail daemon, or are they just sitting, unprocessed, it the outgoing mail queue?
# 5  
Old 01-07-2016
yes Don, those emails were received by desired recipients. one more last question for now, can I just disable send mail daemon on AIX servers ?
i mean, if we can not use AIX LPAR as mail server. I just want to send email alerts from my scripts to desirable recipients. just need some idea on how others doing, in what case they enable this daemon.

thanks for your time.

Last edited by system.engineer; 01-07-2016 at 11:35 AM..
# 6  
Old 01-07-2016
You can explicitly configure sendmail to not require a daemon, example
But if it seems to work already, you can disable the daemon.
--
As an alternative, there is a way to have a sendmail daemon running that only listens to localhost.
In /etc/mail/sendmail.cf add , Addr=127.0.0.1 to the
Code:
O DaemonPortOptions=...

# 7  
Old 01-07-2016
Thanks for the reply MadeInGermany. I like your idea, will give a try. Thank you.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

How to configure mutt to send emails on Linux.?

Hello, I am trying to use mutt in order to send emails. I have installed mutt using yum and pasted some details about it later in the post. When I try to run: echo test | mutt -s "Test Email" user@id.com It doesn't do anything. I dont receive any emails. I have the SMTP details for... (1 Reply)
Discussion started by: vaibhavraj
1 Replies

3. 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

4. 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

5. UNIX for Dummies Questions & Answers

send emails

hi guys I need to send emails to some accounts 1. I need sendmail up and running right? 2. I need my local sendmail to use an existing SMTP server to send emails (10.x.x.x)? in that case what I need to configure to send emails? since using mail myaccount@companyame.com is not sending emails... (3 Replies)
Discussion started by: karlochacon
3 Replies

6. 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

7. UNIX for Dummies Questions & Answers

Send Emails in Sco

I am trying to setup unix to send an email to an outside email address. I have searched the web and found a lot of sites. The problem is I can't figure out what I am supposed to do exactly. I have tried installing sendmail but I get m4 version errors. I then tried to install m4 which seemed to... (1 Reply)
Discussion started by: stufine
1 Replies

8. Shell Programming and Scripting

send emails to groups

Hi, I am trying to send alert emails through my script to users using a group name like DL_Failure Group@company.com but I am not able to send it, I thought it is because of the space in between and I tried to sedn is with quotes "DL_Failure Group@company.com" but that too did not work....I... (2 Replies)
Discussion started by: mgirinath
2 Replies

9. Shell Programming and Scripting

Check sendmail is not receiving any emails

Hi all, Need some advise again. I am new to sendmail service which is already configured by some other administrators. I would need to write a script to check whether sendmail service is enabled in Solaris and Linux. Using this command "ps -ef | grep sendmail | grep -v grep". Or is there... (6 Replies)
Discussion started by: Kinki
6 Replies

10. UNIX for Dummies Questions & Answers

Using mail to send HTML emails

Hi, I'm a programmer not a sys admin, so please excuse this if it seems a little out of place, but I think it applies to this forum. When I send my HTML newsletter from the server it comes in as plain text on some email programs and not others. Eudora is fine; Outlook Express, Hotmail, and... (2 Replies)
Discussion started by: dmennis
2 Replies
Login or Register to Ask a Question