Re: yum-updatesd "From" lines

seth vidal <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <1192476349.2393.29.camel@cutter>
On Mon, 2007-10-15 at 16:03 +0100, Iain Hallam wrote:
> Hi.
> 
> This is a possibly somewhat minor issue, but I thought it was worth
> asking about.
> 
> I'm running yum=updatesd on a few CentOS boxes, and because of the local
> SMTP policies, have to change the From address of mail from servers to
> be a locally deliverable address on our mail hubs. I'm loathe to create
> an address per machine, and the problem is really that I can't tell
> except by looking at the headers which box a message has come from.
> 
> Really, I'd like to see yum-updatesd put the name of the server in its
> outgoing mail messages. I've personally done this by importing the
> socket module and adding a string from socket.gethostname(), but I'm not
> sure whether that's portable. It'd be nice to see something like this in
> the main code; is that possible and would others want to see this?
> 

it would probably be easier to make the subject line configurable and
then you could fill in whatever you wanted in there in the config file.

what do you think?


-sv
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.