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