Upgrade to 2012 1.7 stops all email notifications

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
aap
Posts: 180
Joined: Wed Oct 12, 2011 4:01 am

Re: Upgrade to 2012 1.7 stops all email notifications

Post by aap »

Hi,

I already replied with the ouput of the commands, please see earlier posts also.

I have re-ran and the results are in bold below:

cat /etc/postfix/main.cf | grep mailbox_size - blank
cat /etc/postfix/main.cf | grep message_size - blank
cat /etc/postfix/main.cf | grep virtual_mail

# the $virtual_mailbox_maps files.
# - destinations that match $virtual_mailbox_domains.


/etc/init.d/postfix reload
Reloading postfix: [ OK ]

I have successfully reloaded postfix but still the problem persists.

I will really appreciate any help. This is seriously really impacting our production environment.

Thanks.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Upgrade to 2012 1.7 stops all email notifications

Post by sreinhardt »

We will probably double post here... what is returned with the following commands?
ll /var/mail/
ll /var/spool/mail
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Upgrade to 2012 1.7 stops all email notifications

Post by abrist »

How large is the mail queue?

Code: Select all

mailq
Have you tried flushing the queue to retry delivery?

Code: Select all

postfix -f
You could also look at http://www.postfix.org/postsuper.1.html - Is your mail on hold?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
aap
Posts: 180
Joined: Wed Oct 12, 2011 4:01 am

Re: Upgrade to 2012 1.7 stops all email notifications

Post by aap »

Hi,

The outputs are below in order...

total 50012
-rw-rw----. 1 nagios mail 4644 Jul 3 2012 nagios
-rw------- 1 root mail 51199656 Apr 8 21:05 root
-rw-rw---- 1 rpc mail 0 May 29 2012 rpc
-rw-rw---- 1 snmptt mail 0 Feb 26 2012 snmptt



total 50012
-rw-rw----. 1 nagios mail 4644 Jul 3 2012 nagios
-rw------- 1 root mail 51199656 Apr 8 21:10 root
-rw-rw---- 1 rpc mail 0 May 29 2012 rpc
-rw-rw---- 1 snmptt mail 0 Feb 26 2012 snmptt



Mail queue is empty


postfix: invalid option -- 'f'
postfix: fatal: usage: postfix [-c config_dir] [-Dv] command
aap
Posts: 180
Joined: Wed Oct 12, 2011 4:01 am

Re: Upgrade to 2012 1.7 stops all email notifications

Post by aap »

Hi,

In answer to your last question, I do not believe mail is on hold. Is there a way I can check. There has been another report of the same incident by someone else that installed 2102R1.7 on this thread.

I appreciate your assistance.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Upgrade to 2012 1.7 stops all email notifications

Post by abrist »

Are you still receiving the following error (file too large . . . .)?

Code: Select all

Apr 5 08:25:02 linapp20prdv postfix/local[2802]: 0770D22EBD: to=<[email protected]>, orig_to=<root>, relay=local, delay=0.33, delays=0.27/0.01/0/0.04, dsn=5.2.2, status=bounced (cannot update mailbox /var/mail/root for user root. error writing message: File too large)
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
aap
Posts: 180
Joined: Wed Oct 12, 2011 4:01 am

Re: Upgrade to 2012 1.7 stops all email notifications

Post by aap »

Hi,

Yes I am still receiving the message....

See below just now:


Apr 8 21:30:02 linapp20prdv postfix/qmgr[14925]: 3ABA523012: from=<>, size=4704, nrcpt=1 (queue active)
Apr 8 21:30:02 linapp20prdv postfix/bounce[18062]: 1ED1623011: sender non-delivery notification: 3ABA523012
Apr 8 21:30:02 linapp20prdv postfix/qmgr[14925]: 1ED1623011: removed
Apr 8 21:30:02 linapp20prdv postfix/local[18030]: 3ABA523012: to=<[email protected]>, relay=local, delay=0.02, delays=0/0/0/0.01, dsn=5.2.2, status=bounced (cannot update mailbox /var/mail/root for user root. error writing message: File too large)
Apr 8 21:30:02 linapp20prdv postfix/qmgr[14925]: 3ABA523012: removed
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Upgrade to 2012 1.7 stops all email notifications

Post by abrist »

Looks like the root mailbox is full. postfix defaults to around 50Mb. Try setting it to a larger value:

Code: Select all

postconf -e mailbox_size_limit=512000000
Or just edit the file:

Code: Select all

vi /etc/postfix/main.cf
And add:

Code: Select all

mailbox_size_limit=512000000
Restart postfix for good measure. If the mail is still not being sent, post another tail from the maillog here.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
aap
Posts: 180
Joined: Wed Oct 12, 2011 4:01 am

Re: Upgrade to 2012 1.7 stops all email notifications

Post by aap »

Hi,

Done but still no emails. See tail of log below:


Apr 8 21:50:02 linapp20prdv postfix/pickup[25799]: 4FA3B242BF: uid=0 from=<root>
Apr 8 21:50:02 linapp20prdv postfix/cleanup[29178]: 4FA3B242BF: message-id=<[email protected]>
Apr 8 21:50:02 linapp20prdv postfix/qmgr[25798]: 4FA3B242BF: from=<[email protected]>, size=2712, nrcpt=1 (queue active)
Apr 8 21:50:02 linapp20prdv postfix/local[29183]: 4FA3B242BF: to=<[email protected]>, orig_to=<root>, relay=local, delay=0.33, delays=0.31/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Apr 8 21:50:02 linapp20prdv postfix/qmgr[25798]: 4FA3B242BF: removed
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Upgrade to 2012 1.7 stops all email notifications

Post by abrist »

Is the hostname: linapp20prdv.xxxxxxxx your XI box?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked