1

Topic: Logwatch send to root@myhostname instead of test@mydomain?

==== Provide required information ====
- iRedMail version and backend (LDAP/MySQL/PGSQL): iRedMail-0.8.1 LDAP Backend
- Linux/BSD distribution name and version: CentOS 6.2
- Any related log? Log is helpful for troubleshooting.
====

I have setup a new iRedMail-0.8.1 on CentOS 6.2. Evey thing work fine but i notice the logwatch is sending the daily report to root@myhostname instead of test@mydomain. On the previous version of iRedMail the daily report will send to www@mydomain but now iRedMail-0.8.1 use test@mydomain so I assume the daily report will send to test account instead of www account. Is there a way to change that?

----

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

2

Re: Logwatch send to root@myhostname instead of test@mydomain?

Please update alias address for root in /etc/postfix/aliases. For example:

root: user@domain.ltd

Then execute command 'newaliases'.

3

Re: Logwatch send to root@myhostname instead of test@mydomain?

this is my /etc/postfix/aliases

apache:root
policyd:root

4

Re: Logwatch send to root@myhostname instead of test@mydomain?

ok. that work...but i compare /etc/postfix/aliases that shipped with older version of iRedMail and notice a lot of different

#
#  Aliases in this file will NOT be expanded in the header from
#  Mail, but WILL be visible over networks or from /bin/mail.
#
#    >>>>>>>>>>    The program "newaliases" must be run after
#    >> NOTE >>    this file is updated for any changes to
#    >>>>>>>>>>    show through to sendmail.
#

# Basic system aliases -- these MUST be present.
mailer-daemon:    postmaster
postmaster:    root

# General redirections for pseudo accounts.
bin:        root
daemon:        root
adm:        root
lp:        root
sync:        root
shutdown:    root
halt:        root
mail:        root
news:        root
uucp:        root
operator:    root
games:        root
gopher:        root
ftp:        root
nobody:        root
radiusd:    root
nut:        root
dbus:        root
vcsa:        root
canna:        root
wnn:        root
rpm:        root
nscd:        root
pcap:        root
apache:        root
webalizer:    root
dovecot:    root
fax:        root
quagga:        root
radvd:        root
pvm:        root
amanda:        root
privoxy:    root
ident:        root
named:        root
xfs:        root
gdm:        root
mailnull:    root
postgres:    root
sshd:        root
smmsp:        root
postfix:    root
netdump:    root
ldap:        root
squid:        root
ntp:        root
mysql:        root
desktop:    root
rpcuser:    root
rpc:        root
nfsnobody:    root

ingres:        root
system:        root
toor:        root
manager:    root
dumper:        root
abuse:        root

newsadm:    news
newsadmin:    news
usenet:        news
ftpadm:        ftp
ftpadmin:    ftp
ftp-adm:    ftp
ftp-admin:    ftp
www:        webmaster
webmaster:    root
noc:        root
security:    root
hostmaster:    root
info:        postmaster
marketing:    postmaster
sales:        postmaster
support:    postmaster


# trap decode to catch security attacks
decode:        root

# Person who should get root's mail
#root:        marc
virusalert:    root
root: www@domain.org
policyd: www@domain.org

5

Re: Logwatch send to root@myhostname instead of test@mydomain?

If /etc/postfix/aliases doesn't exist, iRedMail will try to copy /etc/aliases to /etc/postfix/aliases.
But if /etc/aliases doesn't exist, iRedMail will create an empty file instead.

6

Re: Logwatch send to root@myhostname instead of test@mydomain?

thanks for the advise smile