🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #304571

Re: YAMNclient v0.2.8 is out

#304571
From: inwtx
Date: Sat, 11 May 2019 11:42
46 lines
2197 bytes
  Something else you might want to look into.
There are parameter for 

[Mail]
Username
Password

but no parameter/switch in mail.go to stop it from doing an AUTH check.  I (disclaimer: don't think) can't get YAMNclient to get around this check without delimiting out the AUTH section in mail.go and yamn seems to bomb every time I execute it with YAMNclient.  We need another parameter in yamn.cfg to tell mail.go to ignore AUTH.

  Here is code I have to delimiter:

	// If AUTH is supported and a UserID and Password are configured, try to
	// authenticate to the remote MTA.

//del	ok, _ = client.Extension("AUTH")
//del	if ok && cfg.Mail.Username != "" && cfg.Mail.Password != "" {
//del		auth := smtp.PlainAuth(
//del			"",
//del			cfg.Mail.Username,
//del			cfg.Mail.Password,
//del			cfg.Mail.SMTPRelay,
//del		)
//del		if err = client.Auth(auth); err != nil {
//del			Warn.Printf("Auth Error:  Server=%s, Error=%s", serverAddr, err)
//del			return
//del		}
//del	}

-- and --

// sendmail invokes go's sendmail method
func sendmail(payload []byte, sendTo []string) (err error) {
//	auth := smtp.PlainAuth(
//del		"",
//del		cfg.Mail.Username,
//del		cfg.Mail.Password,
//del		cfg.Mail.SMTPRelay)
	relay := fmt.Sprintf("%s:%d", cfg.Mail.SMTPRelay, cfg.Mail.SMTPPort)
//del	err = smtp.SendMail(relay, auth, cfg.Remailer.Address, sendTo, payload)
	err = smtp.SendMail(relay, nil, cfg.Remailer.Address, sendTo, payload)
	if err != nil {
		Warn.Println(err)
		return
	}
	return
}
Technical Details
Message-ID: <qb6cet$4ks$1@news.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
References: <slrnqdd5dl.u39.admin@fleegle.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <qb6cet$4ks$1@news.mixmin.net>
Subject: Re: YAMNclient v0.2.8 is out
Date: Sat, 11 May 2019 06:42:20 -0500
From: "inwtx" <noreply@inwtx.net>
References: <slrnqdd5dl.u39.admin@fleegle.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: Mixmin
Injection-Date: Sat, 11 May 2019 11:42:21 -0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="b8a3936c9884ff8bd9604c85b664c9dae7d502b9";
Lines: 46