Re: [exim] Logging used port

2018-04-20 Thread Jethro R Binks via Exim-users
You can add all sorts of things using log_selector, this is documented in 
the spec.

Disk space is cheap these days so I just set:

log_selector = \
+all \
-queue_run \
-ident_timeout

which gives me very chatty lines, including:

 [aa.bb.cc.dd]:46458 I=[ee.ff.gg.hh]:25

which I guess is what you want.

Jethro.


On Fri, 20 Apr 2018, Luca Bertoncello via Exim-users wrote:

> Hi list!
> 
> Is it possible to log the used port for the incoming E-Mail in the mainlog?
> Currently I have something like:
> 
> 2018-04-20 11:57:02 1f9Sms-wer857-24 <= b...@blah.de H=(mail.blah.de)
> [1.2.3.4] P=esmtps X=TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256 S=4980
> id=kcim.5ad9b96d.3343.319236551223c...@mail.blah.de
> 
> And I'd like to have:
> 
> 2018-04-20 11:57:02 1f9Sms-wer857-24 <= b...@blah.de H=(mail.blah.de)
> [1.2.3.4:25] P=esmtps X=TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256 S=4980
> id=kcim.5ad9b96d.3343.319236551223c...@mail.blah.de
> 
> How can I do that?
> 
> Thanks a lot
> Luca Bertoncello
> (lucab...@lucabert.de)
> 
> 
> -- 
> ## 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 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/


Re: [exim] Logging used port

2018-04-20 Thread Jeremy Harris via Exim-users
On 20/04/18 10:58, Luca Bertoncello via Exim-users wrote:
> Is it possible to log the used port for the incoming E-Mail in the mainlog?


http://exim.org/exim-html-current/doc/html/spec_html/ch-log_files.html#SECTlogselector

-- 
## 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/


Re: [exim] Logging used port

2018-04-20 Thread Mike Brudenell via Exim-users
Read the description of *log_selector* in the *Exim Specification* chapter
on Log Files, and the options you can set with it. :-)

Be careful when thinking about what you're wanting to achieve. The "H="
field logs the IP address (and optionally port) of the remote server,
whereas the "I=" field records the IP address (and optionally port) of the
interface on your own server. In your example you indicate you're expecting
something like ":25" to be logged, which suggests you're possibly
interested the port number your Exim has received the connection on rather
than the port at the far server that sent you the message.

Cheers,
Mike B-)

On 20 April 2018 at 10:58, Luca Bertoncello via Exim-users <
exim-users@exim.org> wrote:

> Hi list!
>
> Is it possible to log the used port for the incoming E-Mail in the mainlog?
> Currently I have something like:
>
> 2018-04-20 11:57:02 1f9Sms-wer857-24 <= b...@blah.de H=(mail.blah.de)
> [1.2.3.4] P=esmtps X=TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256 S=4980 id=
> kcim.5ad9b96d.3343.319236551223c...@mail.blah.de
>
> And I'd like to have:
>
> 2018-04-20 11:57:02 1f9Sms-wer857-24 <= b...@blah.de H=(mail.blah.de) [
> 1.2.3.4:25] P=esmtps X=TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256 S=4980 id=
> kcim.5ad9b96d.3343.319236551223c...@mail.blah.de
>
> How can I do that?
>
> Thanks a lot
> Luca Bertoncello
> (lucab...@lucabert.de)
>
>
> --
> ## 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/
>



-- 
Systems Administrator & Change Manager
IT Services, University of York, Heslington, York YO10 5DD, UK
Tel: +44-(0)1904-323811

Web: www.york.ac.uk/it-services
Disclaimer: www.york.ac.uk/docs/disclaimer/email.htm
-- 
## 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] Logging used port

2018-04-20 Thread Luca Bertoncello via Exim-users

Hi list!

Is it possible to log the used port for the incoming E-Mail in the mainlog?
Currently I have something like:

2018-04-20 11:57:02 1f9Sms-wer857-24 <= b...@blah.de H=(mail.blah.de)  
[1.2.3.4] P=esmtps X=TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256 S=4980  
id=kcim.5ad9b96d.3343.319236551223c...@mail.blah.de


And I'd like to have:

2018-04-20 11:57:02 1f9Sms-wer857-24 <= b...@blah.de H=(mail.blah.de)  
[1.2.3.4:25] P=esmtps X=TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256 S=4980  
id=kcim.5ad9b96d.3343.319236551223c...@mail.blah.de


How can I do that?

Thanks a lot
Luca Bertoncello
(lucab...@lucabert.de)


--
## 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/