[Pkg-exim4-users] root emails - "From:" - no details of server.domain.com

John Mchugh John.Mchugh at stanleybet.com
Wed Jan 19 10:41:55 UTC 2011


Hi Peter,

Many thanks for your solution, it worked a treat!
When I went back over the debug info again the elegance of the solution became very apparent.

Please keep up the good work

Kind Regards 

John McHugh	
2nd Level Linux Administrator	
Tel:	 +44 151 235 2034 	
Fax:	 +44 151 235 2100 	
john.mchugh at stanleybet.com 	
www.stanleybet.com 	
Stanley International Betting Ltd 	
201-210 Mercury Court, Tithebarn Street, Liverpool, L2 2QP, UK	

	
-----Original Message-----
From: pkg-exim4-users-bounces+john.mchugh=stanleybet.com at lists.alioth.debian.org [mailto:pkg-exim4-users-bounces+john.mchugh=stanleybet.com at lists.alioth.debian.org] On Behalf Of pkg-exim4-users-request at lists.alioth.debian.org
Sent: Sunday, January 16, 2011 12:08 PM
To: pkg-exim4-users at lists.alioth.debian.org
Subject: Pkg-exim4-users Digest, Vol 65, Issue 8

Send Pkg-exim4-users mailing list submissions to
	pkg-exim4-users at lists.alioth.debian.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users
or, via email, send a message with subject or body 'help' to
	pkg-exim4-users-request at lists.alioth.debian.org

You can reach the person managing the list at
	pkg-exim4-users-owner at lists.alioth.debian.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Pkg-exim4-users digest..."


Today's Topics:

   1. Re: root emails - "From:" - no details of server.domain.com
      displayed (Peter Gossner)
   2. Re: Spam sent to user from user's email address (Marc Haber)


----------------------------------------------------------------------

Message: 1
Date: Sun, 16 Jan 2011 12:56:30 +1030
From: Peter Gossner <gossner at internode.on.net>
Subject: Re: [Pkg-exim4-users] root emails - "From:" - no details of
	server.domain.com displayed
To: pkg-exim4-users at lists.alioth.debian.org
Message-ID: <20110116125630.138405ecgossner at internode.on.net@joni.tux>
Content-Type: text/plain; charset=US-ASCII

On Fri, 14 Jan 2011 00:47:18 +0100 (CET)
Maarten Bezemer <mcbexim at robuust.nl> wrote:

> Hi,
> 
> On Thu, 13 Jan 2011, John Mchugh wrote:
> 
> > We have a shed load of Debian servers running exim4 and mailing
> > management info (ie cron-apt completions) to head office MS
> > Exchange (Sorry!) The issue is that the root emails are displayed,
> > in outlook as: From                Subject root
> > xxxxxxxxxxxxxxxxxx
> >
> > To find out which server has mailed we have to open the message and
> > find the info displayed as: root [root at server.domain-name.com]
> > a bit of a pain! - my management would like to see the following:
> >
> > From                                     Subject
> > root at server.domain-name.com              xxxxxxxxxxxxxxxxxxxxxxxxxxx
> >
> > which it does fine for none priv users.
> 
> Although the Subject line includes hostnames for quite a number of 
> cron-triggered emails, there is an easy way to get this done.
> 
> The From-line displayed in outlook is just the contents of the "From:
> " header line. If, for non-priv users, this displays an email
> address, that probably means those users haven't configured their own
> names. (Which, in an MS Exchange setup, could be either by policy or
> by the user's ignorance.)
> 
> When sending emails from cron (or command line or whatever) that do
> not include a "From: " header, it is added by the mail software (in
> this case, Exim) based on the GECOS information of the user.
> This is the 5th field of the line defining the user in /etc/passwd.
> For root, this simply says "root" on default Debian installs.
> 
> Using "chfn" you could for example change the description of the root 
> account into something like "Root @ computername". That value will
> then be displayed in outlook.

Sweet solution !
Very nice.
(and simple)

> 
> 
> > *************************************************************************
> >
> > This email and its attachments are intended for the above named
> > only and may be confidential.
> 
> Cut that legal crap.
> If the company policy is to allow sending confidential information by 
> non-encrypted and not even digitally signed email, then it should 
> seriously reconsider that policy, not add silly disclaimers.
> 
> 


-- 
Message made on joni.tux: Sun Jan 16 02:25:07 UTC 2011
Calendar events:
Jan 16 	Set uid bit patent issued, to Dennis Ritchie, 1979
Jan 16 	Prohibition begins, 1920
Jan 16 	Martyrs Day in Benin
     
Peter Gossner <gossner at internode.on.net>
<pete.gossner at gmail.com>



------------------------------

Message: 2
Date: Sat, 15 Jan 2011 12:42:41 +0100
From: Marc Haber <mh+pkg-exim4-users at zugschlus.de>
Subject: Re: [Pkg-exim4-users] Spam sent to user from user's email
	address
To: Pkg-exim4-users at lists.alioth.debian.org
Message-ID: <20110115114241.GF7118 at torres.zugschlus.de>
Content-Type: text/plain; charset=utf-8

On Thu, Jan 13, 2011 at 08:00:19AM +0000, Peter Sparkes wrote:
> My Exim4 users are getting spam sent to them which appear to come from
> there own email address.

That's normal.

> Assuming that these emails are originating from my exim server

Most probably wrong assumption.

If you _know_ that none of your users are using their mail address as
sender for messages that are delivered via other SMTP servers, you can
block messages with sender addresses from your domain that come in
from elsewhere on an unauthenticated connection, but that prerequisite
is seldomly filled.

You might get some more insight on the upstream mailing list as this
is not a Debian issue.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 3221 2323190



------------------------------

_______________________________________________
Pkg-exim4-users mailing list
Pkg-exim4-users at lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users

End of Pkg-exim4-users Digest, Vol 65, Issue 8
**********************************************

*************************************************************************

This email and its attachments are intended for the above named only and may be 
confidential. If you have received them in error please notify the sender immediately 
and delete all records of the email and its attachments from your computer. Unless you 
are the intended recipient you must not read, copy, distribute, use or retain this email 
or any attachments or any part of them.

Although we aim to use efficient virus checking procedures for emails and attachments 
we accept no liability for viruses and it is the recipient's responsibility to ensure they 
are actually virus free.

Stanley International Betting, registered in England with no.3357517.

**************************************************************************



More information about the Pkg-exim4-users mailing list