I want the admin/root (not sure about the difference) email to be [email protected]. So all problems should report there (from munin, monit, whatever). I think the server tries to send error messages to [email protected], I get those from gmail: Code: Mail Delivery Subsystem [email protected] 9:00 AM (49 minutes ago) to me Delivery to the following recipient failed permanently: [B][email protected][/B] Technical details of permanent failure: Google tried to deliver your message, but it was rejected by the server for the recipient domain surf-anonymous.info by eforward1.registrar-servers.com. [38.101.213.200]. The error that the other server returned was: 550 unknown user ----- Original message ----- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:content-type:message-id:date; bh=ft2zV/sGVtjIsWJfO/1BJzrqweicPEnFuMjVNB3FwOU=; b=SwTHXap4S7bysw7OmABdW5YkCVVul8oFrMAqLp2QSud5oKiWRtairRUayvSYgUWqui /XD7Y1YTCX//EO8fV4G8oZtvAlSq7Vbb5J+UFz67PUQhO00LWY/mrjoLmJbC6XOqLtQs 7bPpT9IdcffQ1YF0f5VGqhS92zm4S58lKAJjaPJ9sn5M4s3funzGf8wZHYhd9lQJ66zr A3ezI+wppjqBAkHiTgYuNl5B2baINKeaHL42nhzeJX61kj6WcI3duoxORiJi7a4gYali 4A/lGhAd2sc2eJorBiJ8S2wffwKA/c2e8W7Yr/e6fdKeLXaXeruVWWUPNqyZnAYHVXCx s7AQ== X-Received: by 10.236.81.82 with SMTP id l58mr77490yhe.146.1392534022657; Sat, 15 Feb 2014 23:00:22 -0800 (PST) Return-Path: <[email protected]> Received: from server1.surf-anonymous.info ([192.210.214.129]) by mx.google.com with ESMTPSA id h23sm35769868yhc.0.2014.02.15.23.00.21 for <[email protected]> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 15 Feb 2014 23:00:22 -0800 (PST) Received: by server1.surf-anonymous.info (Postfix, from userid 115) id 341A19DBF8F; Sun, 16 Feb 2014 07:00:03 +0000 (GMT) From: Cron Daemon <[email protected]> To: [email protected] Subject: Cron <munin@server1> if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi Content-Type: text/plain; charset=ANSI_X3.4-1968 X-Cron-Env: <MAILTO=root> X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/var/lib/munin> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=munin> Message-Id: <[email protected]> Date: Sun, 16 Feb 2014 07:00:03 +0000 (GMT) [B]Failed to create rundir (/var/run/munin): Permission denied at /usr/share/munin/munin-update line 38[/B] So how do I change [email protected] to [email protected]? I think I found the files I need to change, but I am afraid this has to be done from inside ispconfig, otherwise I will mess things up. I am googling and searching the manual, but I cannot find the answer to such a simple thing. Code: root@server1:~# grep -r -l "[email protected]" /etc/* grep: /etc/blkid.tab: No such file or directory grep: /etc/mail/smrsh/mail.local: No such file or directory [B]/etc/postfix/virtual /etc/postfix/virtual.db[/B] Next I will worry about the actual error from munin: Code: Failed to create rundir (/var/run/munin): Permission denied at /usr/share/munin/munin-update line 38
Since I replaced postfix with msmtp (http://www.howtoforge.com/forums/showpost.php?p=309989&postcount=18), I don't know if I still have this problem. This returned nothing: Code: grep -r -l "[email protected]" /etc/* So my question now is: Is [email protected] still part of the system? If yes, how can I redirect all emails from [email protected] to my private gmail address?
For postfix, you just would have set a alias in /etc/aliases to the external address and then restart postfix. I dont use msmtp, so I cant tell you how to configure it in this smtp server.