hello retrieves the hostname identifying the SMTP server. Does not allow overriding.
()
| 545 | // hello retrieves the hostname identifying the SMTP server. |
| 546 | // Does not allow overriding. |
| 547 | func (s *SMTPHandler) hello() (string, error) { |
| 548 | val := s.cfg.Hello.String() |
| 549 | if val == "" { |
| 550 | return "", ErrValidationNoHello |
| 551 | } |
| 552 | return val, nil |
| 553 | } |
| 554 | |
| 555 | func (*SMTPHandler) hostname() string { |
| 556 | h, err := os.Hostname() |