Operating System - Linux
1829582 Members
3098 Online
109992 Solutions
New Discussion

Re: Mails sent to local mail addresses doesn't work

 
SOLVED
Go to solution
Carles Viaplana
Valued Contributor

Mails sent to local mail addresses doesn't work

Hello,

Mails sent to local mail addresses doesn't arrive since server was restarted.

I checked mail log. Here you're messages:

sidney:/var/log # tail mail
Feb 21 19:34:30 sidney postfix/qmgr[1899]: fatal: watchdog timeout
Feb 21 19:44:50 sidney postfix/master[1889]: fatal: watchdog timeout
Feb 21 23:12:43 sidney postfix/pickup[17659]: fatal: watchdog timeout
Feb 22 13:13:25 sidney postfix/postfix-script: starting the Postfix mail system
Feb 22 13:13:25 sidney postfix/master[18491]: daemon started
Feb 22 13:13:26 sidney postfix/pickup[18495]: 816D724CBD: uid=0 from=
Feb 22 13:13:26 sidney postfix/cleanup[18507]: 816D724CBD: message-id=<20060222082100.816D724CBD@sidney.localdomain.es>
Feb 22 13:13:26 sidney postfix/qmgr[18496]: 816D724CBD: from=, size=529, nrcpt=1 (queue active)
Feb 22 13:13:26 sidney postfix/local[18635]: 816D724CBD: to=, relay=local, delay=13946, status=sent (mailbox)
Feb 22 13:13:28 sidney postfix/master[18491]: terminating on signal 15
sidney:/var/log #

Do you have any idea about what's happening?
Should I restart mail service?

Thanks in advance for your help.
Regards,

Carles

PS: I forgot! OS is Linux 2.4.19-64GB-SMP
9 REPLIES 9
Vipulinux
Respected Contributor
Solution

Re: Mails sent to local mail addresses doesn't work

Hi

Ols check if sendmail is stopped.

If u r running postfix, sendmail service should not be running.
Also what command are u using to send mails


Cheers
Vipul
Carles Viaplana
Valued Contributor

Re: Mails sent to local mail addresses doesn't work

Hello,

I uses mail command. Here you're an example from script I have:

mail -s DIARI_SIDNEY operacio@hsp.localdomain.es < $FITXER_DADES

How can I check if mail daemon is running and how can I stop/start/restart?

Thanks and regards,

Carles
Alexander Chuzhoy
Honored Contributor

Re: Mails sent to local mail addresses doesn't work

service sendmail status
will reveal the status of service..

Carles Viaplana
Valued Contributor

Re: Mails sent to local mail addresses doesn't work

Hello,

I executed "service sendmail status" but system shows nothing. Are you sure this is right command?

Maybe sendmail is not the method installed on this system.

Regards,

Carles
Bill Thorsteinson
Honored Contributor

Re: Mails sent to local mail addresses doesn't work

It looks like you are using postfix as
your MTA (Mail Transfer Agent).
It looks like the mail was delivered.
Likely delivery points are /var/mail/'userid',
/var/spool/mail/'userid', ~'úserid/Mail', or
~'userid'/Maildir.

I suspect the problem lies in the tool used
to fetch the mail.

Check http://www.postfix.org/docs.html
for more details.

Alexander Chuzhoy
Honored Contributor

Re: Mails sent to local mail addresses doesn't work

execute:
alternatives --display mta

to see if you use sendmail or postfix...

Vipulinux
Respected Contributor

Re: Mails sent to local mail addresses doesn't work

Hi
Try /sbin/service sendmail status

If it is running do
/sbin/service sendmail stop

Cheers
Manuel Wolfshant
Trusted Contributor

Re: Mails sent to local mail addresses doesn't work

The following log fragment:
Feb 22 13:13:26 sidney postfix/pickup[18495]: 816D724CBD: uid=0 from=
Feb 22 13:13:26 sidney postfix/cleanup[18507]: 816D724CBD: message-id=<20060222082100.816D724CBD@sidney.localdomain.es>
Feb 22 13:13:26 sidney postfix/qmgr[18496]: 816D724CBD: from=, size=529, nrcpt=1 (queue active)
Feb 22 13:13:26 sidney postfix/local[18635]: 816D724CBD: to=, relay=local, delay=13946, status=sent (mailbox)
shows that
1) you are using postfix as MTA (so you have nothing to do whatsoever with sendmail... sendmail WOULD NOT START if postfix was started first, as they need to bind to the very same port)
2) the message sent to root was delivered (last line above)
Make sure that the settings for mailbox delivery are indeed those you need them to be.

However, those watchdog messages are an indication that something is indeed wrong there, they are related to a stuck queue. Did you happen to fiddle with the system clock ?
Carles Viaplana
Valued Contributor

Re: Mails sent to local mail addresses doesn't work

I executed YasT and postfix was stopped (we don't use sendmail).

I started daemon and it works fine now.

Thanks to all for your help. I've learnt a lot about linux due this issue!!

Regards,

Carles