()
| 553 | } |
| 554 | |
| 555 | func (*SMTPHandler) hostname() string { |
| 556 | h, err := os.Hostname() |
| 557 | // If we can't get the hostname, we'll use localhost |
| 558 | if err != nil { |
| 559 | h = "localhost.localdomain" |
| 560 | } |
| 561 | return h |
| 562 | } |
| 563 | |
| 564 | // password returns either the configured password, or reads it from the configured file (if possible). |
| 565 | func (s *SMTPHandler) password() (string, error) { |