Re: [solved/workaround] Re: logcheck

2011-01-18 Thread Camaleón
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 


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110118155020.ga6...@stt008.linux.site



[solved/workaround] Re: logcheck

2011-01-17 Thread Informatik.hu

Hi!

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!


any suugestions?


On 2011.01.17. 16:04, Camaleón wrote:

On Mon, 17 Jan 2011 14:41:11 +0100, Informatik.hu wrote:


I am using logcheck on my squeeze, i have changed the domain name of the
machine from olddomain.com to newdomain.com, everything works fine, but
logcheck still sends the mails with r...@olddomain.com. How/where can i
a change the sender of logcheck emails?

In the configuration file /etc/logcheck/logcheck.conf there should be a
variable SENDMAILTO= that you can adjust.

But the main question still remains (unless you had manually changed the
default settings of that variable and now forgot to update it ;-P)...

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).

Greetings,




--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4d348bd0.8070...@informatik.hu



Re: [solved/workaround] Re: logcheck

2011-01-17 Thread Camaleón
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?
 
 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.

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

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2011.01.17.19.34...@gmail.com