#496029 exim4-config: Should use www-data user instead of www when generates /etc/aliases

#496029#5
Date:
2008-08-22 07:32:13 UTC
From:
To:
Here is a little patch to forward www-data mail to root by default

Index: debian/exim4-config.postinst
===================================================================
--- debian/exim4-config.postinst        (revision 2305)
+++ debian/exim4-config.postinst        (working copy)
@@ -60,7 +60,7 @@
 writealiases() {
 echo '# /etc/aliases' > /etc/aliases.tmp
 echo 'mailer-daemon: postmaster' >> /etc/aliases.tmp
-for i in postmaster nobody hostmaster usenet news webmaster www ftp abuse noc security ; do
+for i in postmaster nobody hostmaster usenet news webmaster www-data ftp abuse noc security ; do
        echo "${i}: root"
 done >> /etc/aliases.tmp
 mv /etc/aliases.tmp /etc/aliases

#496029#10
Date:
2010-09-10 09:21:51 UTC
From:
To:
I guess this is particularly important for cases when packages add cron jobs as www-data (which may be bad habbit ?).

Maybe an alternative is to have both www and www-data ?

In any case, it would be great to have maintainer's feedback on this.

Thanks in advance.

Best regards,

#496029#15
Date:
2012-12-26 10:34:46 UTC
From:
To:
[...]

"www" is listed in aliases because it is a role-address (rfc2142),
this is not a typo.

cu andreas