Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new field Banner in Server struct for custom smtp greeting text #132

Closed
wants to merge 7 commits into from
Closed

Conversation

iredmail
Copy link
Contributor

@iredmail iredmail commented Dec 17, 2020

  • Add new field Banner in Server struct for custom smtp greeting text.
  • Keep Domain field for backward compatible, but it's nowhere used. (It was only used in greeting text, which is now replaced by Banner)
  • Use better text for QUIT command (Goodnight and good luck -> Bye)

See also #131 (item 2)

@iredmail
Copy link
Contributor Author

Dear @emersion

Could you help review and let me know your opinion? Thanks. :)

@emersion
Copy link
Owner

Per the RFC, the domain name in the greeting is mandatory:

   Greeting       = ( "220 " (Domain / address-literal)
                  [ SP textstring ] CRLF ) /
                  ( "220-" (Domain / address-literal)
                  [ SP textstring ] CRLF
                  *( "220-" [ textstring ] CRLF )
                  "220" [ SP textstring ] CRLF )

Other than that, I'm not sure what purpose a custom greeting would have, so I'm not convinced this change is worth merging.

@iredmail
Copy link
Contributor Author

Dear @emersion,

Thanks for the reply.

  • I will update PR and keep the domain name in greeting text.
  • The custom greeting text is some kind of branding thing. :)

@emersion
Copy link
Owner

The custom greeting text is some kind of branding thing. :)

This doesn't sound very convincing to me.

@iredmail
Copy link
Contributor Author

OK. i will close this PR.
But how about change few words in SMTP reply message?

@emersion
Copy link
Owner

emersion commented Dec 22, 2020

Sure, fine by me. Doing the same as Postfix sounds like a good idea.

@iredmail
Copy link
Contributor Author

Sure, fine by me. Doing the same as Postfix sounds like a good idea.

PR #133 passed CI and waiting for approval. :)

@iredmail iredmail closed this Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants