1

Topic: cron sends mail to www-data instead of www-data@bigmichi1.de

hello,

i have a little problem with my cron that sends mails. i have some cron jobs for my web-server user www-data. i have set up a mailbox for www-data and add an alias from www-data@bigmichi1.de to www@bigmichi1.de. when my script outputs now something the mail is delivered in the homedirectory of the www-data user which is the webserver-root in my case. how can this behaviour changend that this email goes to www@bigmichi1.de?
i tried also from commandline: "mail www-data" delivers mail in homedirectory /var/www; "mail www-data@bigmichi1.de" delivers mail to the vmail directory. mail client is heirloom-mailx on a debian 6.0.1 standard install with iredmail 0.7.1

----

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

2

Re: cron sends mail to www-data instead of www-data@bigmichi1.de

BigMichi1 wrote:

how can this behaviour changend that this email goes to www@bigmichi1.de?

Cron jobs will mail to system user by default, it's www-data@[server_hostname] in your case.
You can alias www-data to www@bigmichi1.com in /etc/postfix/aliases.