1

Topic: issues after fresh install. 0.7.3/Ubuntu 10.04LTS iredmail

Hi,

I just installed a fresh install of 0.7.3 iredmail.
on ubuntu 10.04 LTS.


When i check the logs, i see

(/var/log/sieve.log)

Oct 19 21:46:55 deliver(www-data): Error: mkdir(//var/www/Maildir/cur) failed: Permission denied (euid=33(www-data) egid=33(www-data) missing +w perm: //var/www)
Oct 19 21:46:55 deliver(www-data): Error: mkdir(//var/www/Maildir/.Sent/cur) failed: Permission denied (euid=33(www-data) egid=33(www-data) missing +w perm: //var/www)
Oct 19 21:46:55 deliver(www-data): Error: mkdir(//var/www/Maildir/.Trash/cur) failed: Permission denied (euid=33(www-data) egid=33(www-data) missing +w perm: //var/www)
Oct 19 21:46:55 deliver(www-data): Error: mkdir(//var/www/Maildir/.Drafts/cur) failed: Permission denied (euid=33(www-data) egid=33(www-data) missing +w perm: //var/www)
Oct 19 21:46:55 deliver(www-data): Error: mkdir(//var/www/Maildir/.Junk/cur) failed: Permission denied (euid=33(www-data) egid=33(www-data) missing +w perm: //var/www)
Oct 19 21:46:55 deliver(www-data): Error: mkdir_parents(//var/www/Maildir) failed: Permission denied
Oct 19 21:46:55 deliver(www-data): Error: mkdir_parents(//var/www/Maildir) failed: Permission denied
Oct 19 21:46:55 deliver(www-data): Error: mkdir_parents(//var/www/Maildir) failed: Permission denied
Oct 19 21:46:55 deliver(www-data): Error: mkdir_parents(//var/www/Maildir) failed: Permission denied
Oct 19 21:46:55 deliver(www-data): Error: mkdir_parents(//var/www/Maildir) failed: Permission denied
Oct 19 21:46:55 deliver(www-data): Error: sieve: failed to stat user's sieve script: stat(/var/vmail/sieve//www-data/dovecot.sieve) failed: Permission denied (euid=33(www-data) egid=33(www-data) missing +x perm: /var/vmail) (using global script path in stead)
Oct 19 21:46:55 deliver(www-data): Error: sieve: main_script: failed to stat sieve script: lstat(/var/vmail/sieve/dovecot.sieve) failed: Permission denied (euid=33(www-data) egid=33(www-data) missing +x perm: /var/vmail)
Oct 19 21:46:55 deliver(www-data): Error: sieve: main_script: internal error occurred: refer to server log for more information. [2011-10-19 21:46:55]
Oct 19 21:46:55 deliver(www-data): Error: sieve: failed to open script /var/vmail/sieve/dovecot.sieve
Oct 19 21:46:55 deliver(www-data): Error: mkdir(//var/www/Maildir/cur) failed: Permission denied (euid=33(www-data) egid=33(www-data) missing +w perm: //var/www)
Oct 19 21:46:55 deliver(www-data): Info: msgid=<20111019193700.808E8107E707@FQDN>: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2011-10-19 21:46:55]

(/var/log/mail.log)

Oct 19 21:56:55 mail postfix/local[1188]: 6C410107E705: to=<www-data@FQDN>, relay=local, delay=2813, delays=2813/0.02/0/0.03, dsn=4.3.0, status=deferred (temporary failure)
Oct 19 21:56:55 mail postfix/local[1189]: 7EFCD107E708: to=<www-data@FQDN>, relay=local, delay=4613, delays=4613/0.02/0/0.02, dsn=4.3.0, status=deferred (temporary failure)
Oct 19 21:56:55 mail postfix/local[1188]: 7B8A5107E70B: to=<www-data@FQDN>, relay=local, delay=5213, delays=5213/0.04/0/0.02, dsn=4.3.0, status=deferred (temporary failure)
Oct 19 21:56:55 mail postfix/local[1189]: 799D8107E70A: to=<www-data@FQDN>, relay=local, delay=2213, delays=2213/0.04/0/0.02, dsn=4.3.0, status=deferred (temporary failure)
Oct 19 21:56:55 mail postfix/local[1189]: 3C026107E731: to=<www-data@FQDN>, relay=local, delay=1013, delays=1013/0.06/0/0.01, dsn=4.3.0, status=deferred (temporary failure)
Oct 19 21:56:55 mail postfix/local[1188]: 7D133107E6FA: to=<www-data@FQDN>, relay=local, delay=4012, delays=4012/0.06/0/0.02, dsn=4.3.0, status=deferred (temporary failure)
Oct 19 21:56:55 mail postfix/local[1199]: B7AB4107E732: to=<www-data@FQDN>, relay=local, delay=413, delays=413/0.07/0/0.01, dsn=4.3.0, status=deferred (temporary failure)
Oct 19 21:56:55 mail postfix/local[1189]: 81704107E70C: to=<www-data@FQDN>, relay=local, delay=3413, delays=3413/0.08/0/0.01, dsn=4.3.0, status=deferred (temporary failure)
Oct 19 21:56:55 mail postfix/local[1188]: 808E8107E707: to=<www-data@FQDN>, relay=local, delay=1613, delays=1612/0.09/0/0.01, dsn=4.3.0, status=deferred (temporary failure)

How can i solve this?

----

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

2

Re: issues after fresh install. 0.7.3/Ubuntu 10.04LTS iredmail

Is there any special reason why you want you're mailboxes saved within the default Apache2 webserver path (/var/www)?

Obviously the use who runs postfix, dovecot & co (which is "vmail" by default, I guess) doesn't has all necessary permissions for the mentioned folder.

You can change the owner and group to "vmail" - but this will probably cause some issues with your webserver.

What's the output of "ls -l" within the /var directory?

3

Re: issues after fresh install. 0.7.3/Ubuntu 10.04LTS iredmail

Jochie wrote:

Oct 19 21:46:55 deliver(www-data): Error: mkdir(//var/www/Maildir/cur) failed: Permission denied (euid=33(www-data) egid=33(www-data) missing +w perm: //var/www)

The root cause of this error message is, some web application was trying to send out email, but it was returned/bounced by some reason. So mail server will try to deliver this returned/bounced mail to Apache user, it's system user www-data by default, and its HOME directory (/var/www) is considered as maildir.

The solution is simple, choose one of them:

- Disable sending email in web applications. I guess this is impossible for you, so here comes second one:
- Create an alias in Postfix (/etc/postfix/aliases), forward all mails for www-data to a real mail user.
- Do nothing if you don't need/want to check these returned/bounced mails. Simply ignore them.

4

Re: issues after fresh install. 0.7.3/Ubuntu 10.04LTS iredmail

Ok thanks.

I don't know why it occured, but i will make an alias.