10 if len(os.Args) != 2 {
11 fmt.Fprintf(os.Stderr, "Usage: %s config.json\n", os.Args[0])
15 configFile, err := os.Open(os.Args[1])
17 fmt.Fprintf(os.Stderr, "config file: %s\n", err)
22 if err := json.NewDecoder(configFile).Decode(&config); err != nil {
23 fmt.Fprintf(os.Stderr, "config file: %s\n", err)
28 smtp := runSMTPServer(config)