1

Topic: postmaster@local

==== Required information ====
- iRedMail version:      v0.4.1 (LDAP)
- Store mail accounts with: (LDAP
- Web server: Apache
- Linux/BSD distribution name and version: Debian 7 Wheezy
- Related log if you're reporting an issue:
====

Hello iRedMail team,

usually i get status mails at postmaster@mail.local,

after using a second VM for testing the mails stopped and were sent to the postmaster of the
test machine. The test machine is gone no and i wont get any reports to postmaster@mail.local
which is annoying. I found it quite useful

Hope someone can help. From the looks of it i think it should be quick config to repair this.

Many thanks in advance

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: postmaster@local

Status emails from what?

3 (edited by neozimpi@gmail.com 2015-04-23 15:38:06)

Re: postmaster@local

log files info amavis update ntp status and so on.
By default active in iRedMail. Send to root (postmaster@)

I hope the description was helpful.
it was like watchdog could have been logwatch. smile

4

Re: postmaster@local

Run the following command, let us know whether you get something in your postmaster inbox:

echo "Test" | sendmail root

If yes: CRON is not sending to root.
If no: Postfix isn't forwarding root's e-mails.

5

Re: postmaster@local

7t3chguy wrote:

Run the following command, let us know whether you get something in your postmaster inbox:

echo "Test" | sendmail root

If yes: CRON is not sending to root.
If no: Postfix isn't forwarding root's e-mails.

Its working. for root and any other mail like postmaster etc.

6

Re: postmaster@local

Your CRON is at fault then
Maybe set up a CRON command to run every minute and watch the log. Then you can see what postfix is getting

7

Re: postmaster@local

I wonder why this was working from the beginning with a fresh system.
Are there entries in the crontab for sending mails by default?

8

Re: postmaster@local

I've no clue why or how a VM broke it but: unix.stackexchange.com/questions/26980/can-i-change-the-default-mail-recipient-on-cron-jobs

9

Re: postmaster@local

7t3chguy wrote:

I've no clue why or how a VM broke it but: unix.stackexchange.com/questions/26980/can-i-change-the-default-mail-recipient-on-cron-jobs

thx i will take a look

10

Re: postmaster@local

Logwatch is configured but seems to be missing in the crontab.
What was the default setting for iRedMail?

11

Re: postmaster@local

If you search logwatch configuration files, you sure will find how to configure the mail recipient address. Add this to in /etc/logwatch/conf/logwatch.conf:

# Default person to mail reports to.  Can be a local account or a
# complete email address.  Variable Print should be set to No to
# enable mail feature.
MailTo = root

12

Re: postmaster@local

ZhangHuangbin wrote:

If you search logwatch configuration files, you sure will find how to configure the mail recipient address. Add this to in /etc/logwatch/conf/logwatch.conf:

# Default person to mail reports to.  Can be a local account or a
# complete email address.  Variable Print should be set to No to
# enable mail feature.
MailTo = root

I checked the config file and everything is ok.
MailTo = root

must there be a crontab entry for this to be working?

if i use the following command its working:
"logwatch --detail Med --mailto root --service All --range All"

13

Re: postmaster@local

i did recheck the logwatch file where i found no errors did edit the and undo my settings
after that and reloading, it was working fine again.

Thanks.