[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [solved/workaround] Re: logcheck



El 2011-01-18 a las 13:42 +0100, Informatik.hu escribió:

(resending to the list)

> On 2011.01.17. 20:34, Camaleón wrote:
>> On Mon, 17 Jan 2011 19:34:56 +0100, Informatik.hu wrote:
>>
>>> On 2011.01.17. 16:04, Camaleón wrote:
>> (..)
>>
>>>> Why e-mails to "root" are not delivered to the current and updated host
>>>> domain? Check your alises database ("cat /etc/alisases") and your
>>>> hostname (hostname -d).
>>> SENDMAILTO="logcheck"
>>>
>>> in aliases
>>>
>>> logcheck:root
>>> root:szun
>>> szun:[where i wanted to send the logcheck mai]
>>>
>>> so i changed the sendmailto= to my destination email, and voila, it
>>> comes with the newdomain!
>> Were you using the "/etc/aliases" file before making the domain name
>> change? Or to make it short, where did you exactly changed the "old"
>> domain name, what file did you edit?
>
> i have changed /etc/mailname, /etc/postfix/main.cf (myhostname,  
> mydestination lines).
> the hostname has not been changed.

Okay... and where did have defined the e-mail address for logcheck 
reports, I mean, what was the content of the "/etc/aliases" file?

There are many ways to set the e-mail, you can directly tweak the 
variable in "/etc/logcheck/logcheck.conf" or you can leave the default 
value and use the aliases file.

>>> any suugestions?

>> Hum... I dunno how Exim works with this file, but in Postfix you have to
>> reload the "/etc/aliases" database as soon as you edit it to update the
>> records.

> in the aliases file, was no reference for the old domain. a generated a  
> new hash file for postfix, and restarted postifx.

Hum, then you should have definitively reviewed your Postfix logs to 
find out why the e-mail was being delivered to the old domain after you 
changed the main.cf file, adjusted "myhostname"/"mydestination" and 
reloaded postfix to apply the changes.

>> What e-mail server/facility are you using? :-?
>>
>
> postfix :)

Ouch! :-)

Greetings,

-- 
Camaleón 


Reply to: