1

Topic: temporary failure of emails delivered to system user www-data

Hi Zhang,

I've got a fresh installed 0.7.4 stable on Ubuntu 11.10 64bit, everything looks ok except when i oprn the mail.log and sieve.log, there are always some error log doesn't looks right

/var/log/mail.log
.........
Apr 25 23:54:44 mail postfix/qmgr[1420]: DAB0C1064DF8: from=<www-data@mydomain.com>, size=1187, nrcpt=1 (queue active)
Apr 25 23:54:44 mail postfix/qmgr[1420]: 3CD7F1064E2D: from=<www-data@mydomain.com>, size=1187, nrcpt=1 (queue active)
Apr 25 23:54:44 mail postfix/local[2119]: DAB0C1064DF8: to=<www-data@mydomain.com>, relay=local, delay=11060, delays=11060/0.04/0/0.03, dsn=4.3.0, status=deferred (temporary failure)
Apr 25 23:54:44 mail postfix/local[2120]: 3CD7F1064E2D: to=<www-data@mydomain.com>, relay=local, delay=5080, delays=5080/0.01/0/0.03, dsn=4.3.0, status=deferred (temporary failure)
.........

/var/log/sieve.log
.............
Apr 25 23:54:44 lda(www-data): Fatal: setgid(1001(vmail) from mail_gid setting) failed with euid=33(www-data), gid=4(adm), egid=4(adm): Operation not permitted (This binary should probably be called with process group set to 1001(vmail) instead of 4(adm))
Apr 25 23:54:44 lda(www-data): Fatal: setgid(1001(vmail) from mail_gid setting) failed with euid=33(www-data), gid=4(adm), egid=4(adm): Operation not permitted (This binary should probably be called with process group set to 1001(vmail) instead of 4(adm))
.............

I've go through all the topic here and found some fix for older version like
usermod -G adm www-data
which dosen't make any different.

Could you please have a look inside this issue? Thanks very much.

----

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

2

Re: temporary failure of emails delivered to system user www-data

It's caused by Awstats cron job.

Please try one of below steps to fix it:

*) Add an alias for system user 'www-data' in /etc/postfix/aliases.
*) Disable Awstats cron job in /etc/cron*. iRedMail setups two cron jobs via command 'crontab', so the job under /etc/cron* is not necessary at all.

P.S. Please create new topic for new issue/question instead of replying in others' topic. smile

3

Re: temporary failure of emails delivered to system user www-data

ZhangHuangbin wrote:

It's caused by Awstats cron job.

Please try one of below steps to fix it:

*) Add an alias for system user 'www-data' in /etc/postfix/aliases.
*) Disable Awstats cron job in /etc/cron*. iRedMail setups two cron jobs via command 'crontab', so the job under /etc/cron* is not necessary at all.

P.S. Please create new topic for new issue/question instead of replying in others' topic. smile

Hi Zhang

Thanks very much for your quick reply, but the problem is not solved.
I've tried both methods.
1. add an entry in /etc/postfix/aliases
www-data: root

2. remove awstats from /etc/cron.d/  (Ubuntu 11.10 64bit)

the error still showing in both log files.

4

Re: temporary failure of emails delivered to system user www-data

purpletoad wrote:

1. add an entry in /etc/postfix/aliases
www-data: root

Did you execute command 'newaliases' to update it?

Was there any NEW email generated?

5

Re: temporary failure of emails delivered to system user www-data

ZhangHuangbin wrote:
purpletoad wrote:

1. add an entry in /etc/postfix/aliases
www-data: root

Did you execute command 'newaliases' to update it?

Was there any NEW email generated?

Ooops, forgot to do that. will do today to see how's go

6

Re: temporary failure of emails delivered to system user www-data

ZhangHuangbin wrote:

Did you execute command 'newaliases' to update it?

Was there any NEW email generated?

Hi Zhang

It's working perfectly, Thanks very much