🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Yamn Client Suggestions

#304318
From: inwtx
Date: Sat, 04 May 2019 22:19
52 lines
2711 bytes
  I left some modified code out:
> 
> Forgot about this error:
> 
> < Info: 2019/05/04 16:26:35 client.go:315: Fetching https://www.cloaked.pw/yamn/pubring.mix and storing in C:/CodeTyphonProjects/YAMNclientII/pubring.mix >
> < Info: 2019/05/04 16:26:36 client.go:315: Fetching https://www.cloaked.pw/yamn/mlist2.txt and storing in C:/CodeTyphonProjects/YAMNclientII/mlist2.txt >
> < Info: 2019/05/04 16:26:36 chain.go:34: Stats updated and reimported >
> < Chain: yamn@300baud.de,yamn@sec3.net >
> 
> < Warn: 2019/05/04 16:26:38 mail.go:417: smtp: server doesn't support AUTH >
> < Warn: 2019/05/04 16:26:38 mail.go:252: Sendmail failed >
> < Warn: 2019/05/04 16:26:38 pool.go:77: Pool mailing failed: smtp: server doesn't support AUTH >
> < Warn: 2019/05/04 16:26:39 mail.go:417: smtp: server doesn't support AUTH >
> < Warn: 2019/05/04 16:26:39 mail.go:252: Sendmail failed >
> < Warn: 2019/05/04 16:26:39 pool.go:77: Pool mailing failed: smtp: server doesn't support AUTH >
> 
> I have to delimiter this code out to get yamn to send (mail.go 349-361):


// If AUTH is supported and a UserID and Password are configured, try to
// authenticate to the remote MTA.
//	ok, _ = client.Extension("AUTH")
//	if ok && cfg.Mail.Username != "" && cfg.Mail.Password != "" {
//		auth := smtp.PlainAuth(
//			"",
//			cfg.Mail.Username,
//			cfg.Mail.Password,
//			cfg.Mail.SMTPRelay,
//		)
//		if err = client.Auth(auth); err != nil {
//			Warn.Printf("Auth Error:  Server=%s, Error=%s", serverAddr, err)
//			return
//		}
//	}


// sendmail invokes go's sendmail method
func sendmail(payload []byte, sendTo []string) (err error) {
//	auth := smtp.PlainAuth(
//		"",
//		cfg.Mail.Username,
//		cfg.Mail.Password,
//		cfg.Mail.SMTPRelay)
	relay := fmt.Sprintf("%s:%d", cfg.Mail.SMTPRelay, cfg.Mail.SMTPPort)
//	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: <qal34n$3l0$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: <qal0p0$tpv$1@news.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <qal34n$3l0$1@news.mixmin.net>
Subject: Re: Yamn Client Suggestions
Date: Sat, 4 May 2019 17:19:01 -0500
From: "inwtx" <noreply@inwtx.net>
References: <qal0p0$tpv$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
Newsgroups: alt.privacy.anon-server
Organization: Mixmin
Injection-Date: Sat, 4 May 2019 22:19:04 -0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="3971de226ca44801546a0d651d16ac777187c280";
Lines: 52