sendmail error in ubuntu

95 views
Skip to first unread message

Tejas Darji

unread,
Dec 24, 2009, 12:56:22 AM12/24/09
to vg...@googlegroups.com
hi,

sendmail not work in my system
i am working in the Ubuntu 8.04.3 LTS \n \l sysytem
but when i restart sendmail then it give following errors is come

Restart sendmail
root@tejas:~# /etc/init.d/sendmail restart
* Restarting Mail Transport Agent (MTA) sendmail
Makefile:12: *** missing separator.  Stop.

log file of mail
root@tejas:~# tail -f /var/log/mail.log
Dec 24 00:40:02 #tejas
tejas sm-msp-queue[13853]: nBM1BG64004879: to=root, ctladdr=root (0/0), delay=2+04:28:46, xdelay=00:00:00, mailer=relay, pri=13170211, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Dec 24 00:40:02 #tejas
tejas sm-msp-queue[13853]: nBM1Ck4A004915: to=root, ctladdr=root (0/0), delay=2+04:27:16, xdelay=00:00:00, mailer=relay, pri=13170211, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Dec 24 00:40:02 #tejas

Can you help me...

Thanks
Tejas Darji
Linux Admin
GujaratHosting Private Ltd.
[O] :- 079-40043267
[M] :- +919714725777
skype:- td.ddssl

Nirmal Pathak

unread,
Dec 24, 2009, 1:03:47 AM12/24/09
to vg...@googlegroups.com
2009/12/24 Tejas Darji <te...@gujarathosting.com>:

> hi,
>
> sendmail not work in my system
> i am working in the Ubuntu 8.04.3 LTS \n \l sysytem
> but when i restart sendmail then it give following errors is come
>
> Restart sendmail
> root@tejas:~# /etc/init.d/sendmail restart
> * Restarting Mail Transport Agent (MTA) sendmail
> Makefile:12: *** missing separator.  Stop.
>
> log file of mail
> root@tejas:~# tail -f /var/log/mail.log
> Dec 24 00:40:02 #tejas
> tejas sm-msp-queue[13853]: nBM1BG64004879: to=root, ctladdr=root (0/0),
> delay=2+04:28:46, xdelay=00:00:00, mailer=relay, pri=13170211,
> relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused
> by [127.0.0.1]
> Dec 24 00:40:02 #tejas
> tejas sm-msp-queue[13853]: nBM1Ck4A004915: to=root, ctladdr=root (0/0),
> delay=2+04:27:16, xdelay=00:00:00, mailer=relay, pri=13170211,
> relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused
> by [127.0.0.1]
> Dec 24 00:40:02 #tejas
>
> Can you help me...
>

Sendmail service is not started and mails are getting defferred.

> Thanks
> Tejas Darji
> Linux Admin
> GujaratHosting Private Ltd.
> [O] :- 079-40043267
> [M] :- +919714725777
> skype:- td.ddssl
>

Have FuN!
--
Nirmal D Pathak.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
What I want is freedom, not life, nor pleasure, nor good!
FLOSS gives that.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Tejas Darji

unread,
Dec 24, 2009, 3:16:51 AM12/24/09
to vg...@googlegroups.com
Thanks
But how resolved this???


--
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
To stop receiving emails from this group, mail to VGLUG-un...@googlegroups.com
To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG



--

Sham Arsiwala

unread,
Dec 24, 2009, 8:57:04 AM12/24/09
to vg...@googlegroups.com
please check if sendmail-cf package is installed or not.

if not then install it..



--
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
To stop receiving emails from this group, mail to VGLUG-un...@googlegroups.com
To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG



--
Regards
SHAM ARSIWALA.
RHCE
M. 9327247499
Electromech

Tejas Darji

unread,
Dec 28, 2009, 12:10:53 AM12/28/09
to vg...@googlegroups.com
sendmail-cf package is already installed...

Rajendra

unread,
Dec 28, 2009, 3:38:52 AM12/28/09
to vg...@googlegroups.com
Hi,

Try this :-

There are other MTAs that use send mail on the back end.
#apt-get purge postfix

#apt-get purge exim4

After that you can check you services list via System -> Administration -> Services
  And If there is still a MTA listed in your services list then uncheck it
Then try to restart/start it.
 
Rajendra
Nobody can go back and start a new beginning, but anyone can start today and make a new ending



From: Tejas Darji <te...@gujarathosting.com>
To: vg...@googlegroups.com
Sent: Mon, December 28, 2009 10:40:53 AM
Subject: Re: [VGLUG] sendmail error in ubuntu

Tejas Darji

unread,
Dec 28, 2009, 4:53:21 AM12/28/09
to vg...@googlegroups.com
Hi Rajendra,

this package is already install....

root@u15369819:/home/tejas# apt-get purge postfix
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package postfix is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
root@u15369819:/home/tejas# apt-get purge exim4
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package exim4 is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.


This is the mail.log

root@u15369819:/home/tejas# tail -f /var/log/mail.log
Dec 28 04:44:27 u15369819 sendmail[23765]: nBS9iRJx023765: to=<My...@u15369819.onlinehome-server.com>,<Bac...@u15369819.onlinehome-server.com>,<te...@gujarathosting.com.com>, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=90201, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

Nirmal Pathak

unread,
Dec 28, 2009, 5:02:43 AM12/28/09
to vg...@googlegroups.com
2009/12/28 Tejas Darji <te...@gujarathosting.com>:

> Hi Rajendra,
>
> this package is already install....
>
> root@u15369819:/home/tejas# apt-get purge postfix
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Package postfix is not installed, so not removed
> 0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
> root@u15369819:/home/tejas# apt-get purge exim4
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Package exim4 is not installed, so not removed
> 0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
>
>
> This is the mail.log
>
> root@u15369819:/home/tejas# tail -f /var/log/mail.log
> Dec 28 04:44:27 u15369819 sendmail[23765]: nBS9iRJx023765:
> to=<My...@u15369819.onlinehome-server.com>,<Bac...@u15369819.onlinehome-server.com>,<te...@gujarathosting.com.com>,
> ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay,
> pri=90201, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred:
> Connection refused by [127.0.0.1]
>

Check whether the port 25 is open or not using,

#netstat -ntlp |grep 25

You need to check system logs after trying to restart the sendmail
service the mail log will not
give us exact idea as why the sendmail service is not starting.

Tejas Darji

unread,
Dec 28, 2009, 5:37:31 AM12/28/09
to vg...@googlegroups.com
Thank Nirmal,

i can not get any result of netstat that's conform the port 25 is not open..
then How to open port 25 without iptable in the ubuntu?

root@u15369819:/home/tejas# netstat -ntlp |grep 25
root@u15369819:/home/tejas#

root@u15369819:/home/tejas# nmap localhost

Starting Nmap 4.53 ( http://insecure.org ) at 2009-12-28 05:33 EST
Interesting ports on localhost.localdomain (127.0.0.1):
Not shown: 1710 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
80/tcp   open  http
3000/tcp open  ppp
3306/tcp open  mysql

Nmap done: 1 IP address (1 host up) scanned in 0.233 seconds



How to open the port in the ubuntu server??

Thanks
Tejas


--
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
To stop receiving emails from this group, mail to VGLUG-un...@googlegroups.com
To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG

Nirmal Pathak

unread,
Dec 28, 2009, 5:51:31 AM12/28/09
to vg...@googlegroups.com
2009/12/28 Tejas Darji <te...@gujarathosting.com>:

> Thank Nirmal,
>
> i can not get any result of netstat that's conform the port 25 is not open..
> then How to open port 25 without iptable in the ubuntu?
>

The port can not be opened using IPTables.

> root@u15369819:/home/tejas# netstat -ntlp |grep 25
> root@u15369819:/home/tejas#
>
> root@u15369819:/home/tejas# nmap localhost
>
> Starting Nmap 4.53 ( http://insecure.org ) at 2009-12-28 05:33 EST
> Interesting ports on localhost.localdomain (127.0.0.1):
> Not shown: 1710 closed ports
> PORT     STATE SERVICE
> 22/tcp   open  ssh
> 80/tcp   open  http
> 3000/tcp open  ppp
> 3306/tcp open  mysql
>
> Nmap done: 1 IP address (1 host up) scanned in 0.233 seconds
>
>
>
> How to open the port in the ubuntu server??
>

You should have an application running on the system which runs on
specific port. Try to restart the sendmail service on the system and
monitor the system logs and mail logs at the particular time, which
should give us idea to investigate the issue.

> Thanks
> Tejas

Reply all
Reply to author
Forward
0 new messages