Able to send mail without running MTA (sendmail)?


 
Thread Tools Search this Thread
Operating Systems AIX Able to send mail without running MTA (sendmail)?
# 1  
Old 06-11-2010
Able to send mail without running MTA (sendmail)?

Hi,

I am facing a (for me and coworkers) strange behaviour. When I stop sendmail on a plain AIX 5.3 testing box (there is definetly no sendmail process left running anymore), I am still able to send mails to remote addresses via the mail command. I tried that on another box which is not a testing box just to make sure there is nothing awkward on the testing box.

If I try that on a Linux box after having postfix stopped, it doesn't send any mail but queues it, as expected.

I have no clue what is still enabling the AIX box to send mail after sendmail is stopped. Any ideas? Thanks in forward.

Cheers
zaxxon
# 2  
Old 06-11-2010
I can reproduce this behavior on Solaris 10. Even when sendmail is stopped, mailx is able to send mails.

I looked into this with "truss" and found, that mailx is executing /usr/lib/sendmail to deliver the mail. This happens no matter if sendmail is running as daemon or not.

I suppose this is true for AIX too.
# 3  
Old 06-11-2010
Now I started this thread after some time of searching I just found this:

IBM Info Center - bellmail

So it seems that mail is calling bellmail as MDA to transfer mail. That might explain it, ok, sorry for the trouble but any confirmations on that are welcome though.
# 4  
Old 06-11-2010
No trouble at all, glad I could help.
This User Gave Thanks to hergp For This Post:
# 5  
Old 06-11-2010
truss did not show which tool has been called (maybe wrong parameters, not sure), sadly, but it seems bellmail is the one being called to deliver. Thanks again though ^^
# 6  
Old 06-11-2010
Did you call truss with the -f switch to follow childs? In this case you can see the execve system call. Here it looks like this:

Code:
...
22307:  fork1()                                         = 22315
22307:  lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
22307:  llseek(6, 0, SEEK_CUR)                          = 0
22315:  fork1()         (returning as child ...)        = 22307
...
22315:  execve("/usr/lib/sendmail", 0x08084B40, 0x08047D00)  argc = 3
22315:      *** SGID: rgid/egid/sgid = 0 / 25 / 25  ***
22315:  resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12
...

This User Gave Thanks to hergp For This Post:
# 7  
Old 06-11-2010
That was the one, thanks Smilie
Code:
331994: execve("/usr/sbin/sendmail", 0x200CAD18, 0x2FF22AD4)  argc: 4
331994: access("/usr/lib/nls/msg/en_US.8859-15/sendmail811.cat", 0) = 0
331994: statx("/etc/mail/sendmail.cf", 0x2FF1EFB0, 76, 0) = 0
331994: open("/etc/mail/sendmail.cf", O_RDONLY)         = 4
331994: auditlog("SENDMAIL_Config", 0, "Sendmail configuration file read.", 34) Err#22 EINVAL
331994: open("/usr/lib/nls/msg/en_US.8859-15/sendmail811.cat", O_RDONLY) = 5
278564: open("/usr/lib/nls/msg/en_US.8859-15/sendmail811.cat", O_RDONLY) = 4

So it is calling sendmail as well, not bellmail.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies

2. UNIX Desktop Questions & Answers

Need to send mail only when the job is not running

I have set up a cron, which will send the mail with not runnnig jobs in the script.sh 15,30,45 * * * * /a/b/c/script.sh | grep not | mail -s "test mail" learner987@gmail.com But i dont want mail when all the jobs are running, but with the above cron i will get mails without the content(if all... (2 Replies)
Discussion started by: learner987
2 Replies

3. UNIX for Beginners Questions & Answers

Grep the 'not running' jobs and will send the update in mail with its name(job)

my request is: i have to create a script , which will grep the 'not running' jobs and will send the update in mail with its name(job) Scenario: logged in to machine abc went to particular path: cd /a/b/c then ./script1.sh status (script.sh is a script,whose status gives info about 10 jobs... (1 Reply)
Discussion started by: learner987
1 Replies

4. Proxy Server

How to send mail (sendmail) for php mail()?

PHP mail() function doesn't work. Nor does sendmail: loaded system configuration file /etc/msmtprc ignoring user configuration file /home/xi/.msmtprc: No such file or directory falling back to default account using account default from /etc/msmtprc host = xsi port = 25 proxy host = (not... (1 Reply)
Discussion started by: Xcislav
1 Replies

5. UNIX for Dummies Questions & Answers

Configure sendmail to Only send mail to one domain

On both Solaris 10 and RHEL, we would like to configure sendmail in such a way that the email sent from the server should only go to a particular domain. For eg. We want our server to ONLY send the mail to <user_name>@abc.com. All other domains should be blocked/restricted. The server should not... (0 Replies)
Discussion started by: sk2code
0 Replies

6. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

7. What is on Your Mind?

Most popular mail server(MTA)

Which among the following is most popular choice as a mail server - 1)Sendmail 2)Postfix 3)Qmail Which is the industry preferred one? (2 Replies)
Discussion started by: proactiveaditya
2 Replies

8. UNIX for Dummies Questions & Answers

MTA problems; root gets no mail

Hello, I am afraid that I goofed up my mailing system. I have an Ubuntu 9.10 system $ uname -smor Linux 2.6.31-14-generic x86_64 GNU/Linux I am wanting to receive cron job mails. I noticed that cron jobs were trying to send mail to sendmail. I had installed ssmtp so I could send mail... (1 Reply)
Discussion started by: Narnie
1 Replies

9. UNIX for Dummies Questions & Answers

localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA

hardware = raq550 running on strongbolt2. my sendmail log is littered with this entry all through the day: localhost did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA it occurrs every 15 minutes. I don't have any problem sending or receiving mail. I did a search on google but couldn't... (0 Replies)
Discussion started by: tonj
0 Replies

10. Shell Programming and Scripting

send mail after script finishes running

Hi All, We now have a Log file which has time stamps of all the scripts ran. It has start time and end time. I now have a requirement to send mail to the Admin after the script finishes running. Can some one help me with a Script which will send mail with Start time and End time of the... (2 Replies)
Discussion started by: srikanthgr1
2 Replies
Login or Register to Ask a Question