Topic: cron sends mail to www-data instead of email@example.com
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 firstname.lastname@example.org to email@example.com. 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 firstname.lastname@example.org?
i tried also from commandline: "mail www-data" delivers mail in homedirectory /var/www; "mail email@example.com" delivers mail to the vmail directory. mail client is heirloom-mailx on a debian 6.0.1 standard install with iredmail 0.7.1