Menu

not logging external connections

jp7010
2022-10-25
2022-10-25
  • jp7010

    jp7010 - 2022-10-25

    I've setup a postfix server as a closed relay to only deliver/forward email for my domain. I believe I have everything working as desired, except for what is getting logged.

    If I connect to postfix with a portable mail client on my local network and send a message through it, I see the connection in the logs. For example:

    Oct 25 13:55:29 server2 postfix/smtpd[3146777]: connect from unknown[10.10.5.27]
    Oct 25 13:55:29 server2 postfix/smtpd[3146777]: 424B7407AB55: client=unknown[10.10.5.27]
    Oct 25 13:55:29 server2 postfix/cleanup[314611]: 424B7407AB55: message-id=20221025135529.925f17e9c0c530511081c962@mydomain.com
    Oct 25 13:55:29 server2 postfix/qmgr[3146764]: 424B7407AB55: from=myuser@mydomain.com, size=643, nrcpt=1 (queue active)
    Oct 25 13:55:29 server2 postfix/smtpd[3146777]: disconnect from unknown[10.10.5.27] helo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
    Oct 25 13:55:29 server2 postfix/relay/smtp[314612]: 424B7407AB55: to=myuser@mydomain.com, relay=10.10.5.18[10.10.5.18]:25, delay=0.35, delays=0.08/0.03/0.01/0.23, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 6D107BDB67F3)
    Oct 25 13:55:29 server2 postfix/qmgr[3146764]: 424B7407AB55: removed

    When email is coming in from the outside, whether it is rejected or successful, I get no log information.Maybe it's because my internal connection is client=unknown?

    I've tried turning on verbose, but it only gives me verbose for the internal connections. I like the logging level where it is, I just want to see it for all connections.

    Any help is appreciated.

     
  • jp7010

    jp7010 - 2022-10-25

    Sorry, posted this in the wrong place.

     

Log in to post a comment.

MongoDB Logo MongoDB