Small question: how do I see in the log on which port the connection is made?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Small question: how do I see in the log on which port the connection is made?

Gerben Wierda
If I am open on 25 and 587, how can I see in the log on which port a connection has been established?

G
Reply | Threaded
Open this post in threaded view
|

Re: Small question: how do I see in the log on which port the connection is made?

Bradley Giesbrecht-2
On Jan 3, 2017, at 4:01 PM, Gerben Wierda <[hidden email]> wrote:
>
> If I am open on 25 and 587, how can I see in the log on which port a connection has been established?
>
> G

Add syslog_name to the appropriate service in master.cf.

-o syslog_name=postfix-25
-o syslog_name=postfix-587


Brad
Reply | Threaded
Open this post in threaded view
|

Re: Small question: how do I see in the log on which port the connection is made?

Viktor Dukhovni

> On Jan 3, 2017, at 7:36 PM, Bradley Giesbrecht <[hidden email]> wrote:
>
> Add syslog_name to the appropriate service in master.cf.
>
> -o syslog_name=postfix-25
> -o syslog_name=postfix-587

The recommended name format is postfix/detail not postfix-detail.
See the stock master.cf in Postfix 3.2:

   https://github.com/vdukhovni/postfix/blob/master/postfix/conf/master.cf (lines 17,18):

    #submission inet n       -       n       -       -       smtpd
    # -o syslog_name=postfix/submission

--
--
        Viktor.

Reply | Threaded
Open this post in threaded view
|

Re: Small question: how do I see in the log on which port the connection is made?

Robert Chalmers
Is there a list somewhere of just what options can be logged with “-o syslog_name=xxxxx” ?


> On 4 Jan 2017, at 04:12, Viktor Dukhovni <[hidden email]> wrote:
>
>
>> On Jan 3, 2017, at 7:36 PM, Bradley Giesbrecht <[hidden email]> wrote:
>>
>> Add syslog_name to the appropriate service in master.cf.
>>
>> -o syslog_name=postfix-25
>> -o syslog_name=postfix-587
>
> The recommended name format is postfix/detail not postfix-detail.
> See the stock master.cf in Postfix 3.2:
>
>   https://github.com/vdukhovni/postfix/blob/master/postfix/conf/master.cf (lines 17,18):
>
>    #submission inet n       -       n       -       -       smtpd
>    # -o syslog_name=postfix/submission
>
> --
> --
> Viktor.
>