Skip to content

Service logs source IP as 0.0.0.0 #291

@jimbobmcgee

Description

@jimbobmcgee

Describe the bug
While running the service, the SMTP component logs the start and end of incoming connections, with the intent of logging the IP address of those connections. However, the IP address written to the log is always 0.0.0.0.

[14:42:58 INF] New SMTP connection from 0.0.0.0
[14:42:58 INF] Completed SMTP connection from 0.0.0.0

To Reproduce
Steps to reproduce the behavior:

  1. Start the Papercut.SMTP.Service component, either as a service or in the foreground
  2. Make a connection to the service, either by sending a mail or simply by Test-NetConnection <listening-ip> -Port <port>

Expected behavior

[14:42:58 INF] New SMTP connection from 192.0.2.1
[14:42:58 INF] Completed SMTP connection from 192.0.2.1

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows 10 22H2
  • Version [e.g. 22] Papercut 7.01

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions