YunoHost / packages_old

[not used anymore] YunoHost Debian package sources
http://yunohost.org
8 stars 7 forks source link

Forward root mail to ldap admin account #9

Closed julienmalik closed 10 years ago

julienmalik commented 10 years ago

Make it possible to forward root mail to the ldap admin account.

Suggestions from beudbeud.

julienmalik commented 10 years ago

on two different ynh instances I have two behaviors. on one of them I can see root mails by running mutt as root.

on the other mail to root seem to be lost. there is no /var/mail/root directory.

sending a mail to root@mydomain.com from local shell :

Jan 23 15:20:11 yunohost postfix/pickup[4504]: EC3F88013E0: uid=0 from=<root>
Jan 23 15:20:11 yunohost postfix/cleanup[5240]: EC3F88013E0: message-id=<20140123142011.EC3F88013E0@mydomain.com>
Jan 23 15:20:12 yunohost postfix/qmgr[4505]: EC3F88013E0: from=<root@mydomain.com>, size=413, nrcpt=1 (queue active)
Jan 23 15:20:13 yunohost postfix/smtpd[5245]: connect from localhost[127.0.0.1]
Jan 23 15:20:13 yunohost postfix/smtpd[5245]: 02A29800C90: client=localhost[127.0.0.1]
Jan 23 15:20:13 yunohost postfix/cleanup[5240]: 02A29800C90: message-id=<20140123142011.EC3F88013E0@mydomain.com>
Jan 23 15:20:13 yunohost postfix/qmgr[4505]: 02A29800C90: from=<root@mydomain.com>, size=916, nrcpt=1 (queue active)
Jan 23 15:20:13 yunohost postfix/smtpd[5245]: disconnect from localhost[127.0.0.1]
Jan 23 15:20:13 yunohost amavis[3761]: (03761-03) Passed CLEAN {RelayedInbound}, <root@mydomain.com> -> <root@mydomain.com>, Message-ID: <20140123142011.EC3F88013E0@mydomain.com>, mail_id: vPq4KBL5TbuF, Hits: -0.001, size: 413, queued_as: 02A29800C90, 1024 ms
Jan 23 15:20:13 yunohost postfix/smtp[5242]: EC3F88013E0: to=<root@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.5, delays=0.49/0.01/0.01/1, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 02A29800C90)
Jan 23 15:20:13 yunohost postfix/qmgr[4505]: EC3F88013E0: removed
Jan 23 15:20:13 yunohost postfix/pipe[5246]: 02A29800C90: to=<root@mydomain.com>, relay=dovecot, delay=0.21, delays=0.08/0.01/0/0.11, dsn=5.1.1, status=bounced (user unknown)
Jan 23 15:20:13 yunohost postfix/cleanup[5240]: 34E6A8013E7: message-id=<20140123142013.34E6A8013E7@mydomain.com>
Jan 23 15:20:13 yunohost postfix/qmgr[4505]: 34E6A8013E7: from=<>, size=2655, nrcpt=1 (queue active)
Jan 23 15:20:13 yunohost postfix/bounce[5248]: 02A29800C90: sender non-delivery notification: 34E6A8013E7
Jan 23 15:20:13 yunohost postfix/qmgr[4505]: 02A29800C90: removed
Jan 23 15:20:13 yunohost postfix/pipe[5246]: 34E6A8013E7: to=<root@mydomain.com>, relay=dovecot, delay=0.18, delays=0.07/0/0/0.1, dsn=5.1.1, status=bounced (user unknown)
Jan 23 15:20:13 yunohost postfix/qmgr[4505]: 34E6A8013E7: removed
Jan 23 15:20:14 yunohost dovecot: imap-login: Login: user=<someuser>, method=PLAIN, rip=::1, lip=::1, mpid=5254, secured, session=<+uqq8KPwhgAAAAAAAAAAAAAAAAAAAAAB>
Jan 23 15:20:14 yunohost dovecot: imap(someuser): Disconnected: Logged out in=90 out=825
Kloadut commented 10 years ago

See https://github.com/YunoHost/moulinette/issues/76