Skip to content

IP address instead of domain name in RCPT TO #243

@LubosD

Description

@LubosD

Hello,

I'm trying to integrate Inbucket into my e2e tests.

The dynamically instantiated VM where Inbucket would run doesn't get a domain name for its public IP address (argh), so my idea was to try out whether I could have my test e-mails sent to somebody@IP_ADDRESS rather than bother with no-ip and such.

I don't want to have the tested application send e-mails directly to Inbucket, but rather via Mailjet (which we use) so that the test is a little more realistic.

Now the thing is that the correct format according to the RFC is somebody@[123.123.123.123]. This format is accepted by Postfix and all SMTP servers I have access to.

Inbucket, however, rejects this format and only accepts [email protected], which is not accepted by anyone else, so it's unusable.

<testtest@[130.61.201.XXX]>: host 130.61.201.XXX[130.61.201.XXX] said: 501 Bad
    recipient address syntax (in reply to RCPT TO command)

Do you think you could extend your domain part validation code to support this syntax?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions