Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

logging the mail client used

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


ojhowe at gmail

Jan 17, 2012, 3:29 AM

Post #1 of 4 (241 views)
Permalink
logging the mail client used

Is it possible to log the type of mail client used in mainlog?
Then eximstats could give a summary.

This would help us decide which clients to test our software against.

Thanks

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


exim-users at lists

Jan 17, 2012, 3:41 AM

Post #2 of 4 (231 views)
Permalink
Re: logging the mail client used [In reply to]

On 17/01/12 11:29, Oliver Howe wrote:

> Is it possible to log the type of mail client used in mainlog?
> Then eximstats could give a summary.
>
> This would help us decide which clients to test our software against.

We use something like this:

warn log_message = Client: ${if
def:header_X-Mailer:{$header_X-Mailer:}{$header_User-Agent:}}

It logs the X-Mailer or User-Agent header if they exist. This seems to
cover most clients.

--
Mike Cardwell https://grepular.com/ http://cardwellit.com/
OpenPGP Key 35BC AF1D 3AA2 1F84 3DC3 B0CF 70A5 F512 0018 461F
XMPP OTR Key 8924 B06A 7917 AAF3 DBB1 BF1B 295C 3C78 3EF1 46B4
Attachments: signature.asc (0.58 KB)


graeme at graemef

Jan 17, 2012, 3:46 AM

Post #3 of 4 (231 views)
Permalink
Re: logging the mail client used [In reply to]

On Tue, 2012-01-17 at 11:29 +0000, Oliver Howe wrote:
> Is it possible to log the type of mail client used in mainlog?

It's possible to log *anything* in the mainlog using log_message at an
appropriate point in an appropriate ACL, for example:

acl_check_mail:
accept hosts = +relay_from_hosts
warn log_message = ACL_MAIL: $sender_address

However: how will Exim determine what the mail client is?

Graeme


--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


jethro.binks at strath

Jan 17, 2012, 4:08 AM

Post #4 of 4 (231 views)
Permalink
Re: logging the mail client used [In reply to]

On Tue, 17 Jan 2012, Graeme Fowler wrote:

> However: how will Exim determine what the mail client is?

I have a rather complex (and slightly messy) set of rules that divulge
this information from various mail headers and logs it. I did it for fun
mostly, not 'cos I had a great need, but it was an interesting exercise.
I haven't looked at it in a while to see if the rules could be tweaked to
get more information from some unknown clients.

It also extracts stuff like mailing list systems in use.

Sample output, probably not very useful for eximstats as it is:

ClientId: agent="Microsoft Outlook Express 6.00.2600.0000 Microsoft MimeOLE V6.00.2600.0000"

ClientId: agent="Workspace Webmail 5.6.10" mlm="Mailman 2.1.14-1" msgid=...

ClientId: agent="vBulletin Mail via PHP" (auto-generated) msgid=...

ClientId: agent="ZuckMail [version 1.00]" msgid=...@www.facebook.com

ClientId: agent="PHPMailer [version Moodle 2007101591.04]" msgid=moodlepost...

(Interesting to note for security heads, one of the common Java mail
packages by default includes the userid under which the process is running
in the message ID it generates, doh!).

I can publish the rules somewhere if there is an interest.

Jethro.

. . . . . . . . . . . . . . . . . . . . . . . . .
Jethro R Binks, Network Manager,
Information Services Directorate, University Of Strathclyde, Glasgow, UK

The University of Strathclyde is a charitable body, registered in
Scotland, number SC015263.

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.