System sending mail to [email protected]?

Richard G

Verified User
Joined
Jul 6, 2008
Messages
14,112
Location
Maastricht
System sending mail to [email protected]? [Fixed]

I got a mail with this content:
Code:
/etc/cron.daily/custombuild: line 6: mail: command not found
So I installed mailx (yum install mailx) to solve this.

After I did that, mails are being send to [email protected], I got a returned mail here:
Code:
[email protected]
    SMTP error from remote mail server after RCPT TO:<[email protected]>:
    host sentry.domainbank.com [64.85.73.28]: 505 5.0.0 User unknown

Return-path: <[email protected]>
Received: from root by server14.mydomain.nl with local (Exim 4.80.1)
	(envelope-from <[email protected]>)
	id 1UOqEw-0003Zm-8I
	for [email protected]; Sun, 07 Apr 2013 16:06:38 +0200
Date: Sun, 07 Apr 2013 16:06:38 +0200
To: [email protected]
Subject: Clamd on server14.mydomain.nl is down!
User-Agent: Heirloom mailx 12.4 7/29/08

It's really send to [email protected] I did not cloak that, I only cloaked the servers domain name.

How can I fix this so system messages will be send to the email address it's normally send to and not to [email protected]?

Edit: Just got two new ones.
One is send directly to the correct email address, the other is again one that came back which was send to [email protected]. Strange, isn't it?
 
Last edited:
in the options.conf you should add:

email=your email to send notifications


if you don't want notifications:

notifications=no
 
Well... that's not the issue, because I always have that in my options.conf.
As you can see from the latter added lines, I now got emails to both [email protected] and on the other server to the email address I put in options.conf.

I just did a ./build clean, ./build update, ./build update_versions and restart exim on both servers to see if that helps. That seems to be helping on 1 of the servers.

Both servers keep sending mails that clamd is not running, but it -is- running, I even restarted it just to be sure and the status says it's running.

So like I said, getting 2 notifications now.

This is the one that is still going to [email protected] and seens not to have a return path:

Code:
Return-path: <>
Envelope-to: [email protected]
Delivery-date: Sun, 07 Apr 2013 20:06:48 +0200
Received: from mail by server10.mycompany.nl with spam-scanned (Exim 4.80.1)
	id 1UOtzK-0002KF-1v
	for [email protected]; Sun, 07 Apr 2013 20:06:48 +0200
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	server10.mycompany.nl
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.5 tests=none autolearn=ham
	version=3.3.2
Received: from ns1.someserver.nl ([85.10.197.37] helo=server14.someserver.nl)
	by server10.mycompany.nl with esmtps (TLSv1:DHE-RSA-AES256-SHA:256)
	(Exim 4.80.1)
	id 1UOtzJ-0002KB-Vt
	for [email protected]; Sun, 07 Apr 2013 20:06:46 +0200
Received: from mail by server14.someserver.nl with local (Exim 4.80.1)
	id 1UOtzI-0006ud-VF
	for [email protected]; Sun, 07 Apr 2013 20:06:45 +0200
X-Failed-Recipients: [email protected]
Auto-Submitted: auto-replied
From: Mail Delivery System <[email protected]>
To: [email protected]
Subject: Mail delivery failed: returning message to sender
Message-Id: <[email protected]>
Date: Sun, 07 Apr 2013 20:06:44 +0200
X-Antivirus-Scanner: Clean mail though you should still use an Antivirus
X-Antivirus: avast! (VPS 130407-0, 7-4-2013), Inbound message
X-Antivirus-Status: Clean

So I have the notification email set, but something is still going wrong.
 
You were almost right Peter.
I wend looking and I had a script in /usr/local/directadmin/scripts/custom which checks if clamd is running.
On one server, the path was wrong in the beginning, on the other server there was no email address in the check file.
Normally I copy them from the older servers and it's always working, but this time I forgot that I made new ones, so these still had the default settings.

It's fixed now.
 
Back
Top