DavMail how to
Contents
msmtp setting
- msmtprc
account work host localhost port 1025 protocol smtp from cml@systec.com.cn tls off auth login user cml password cisco,123 #passwordeval gpg2 --no-tty -q -d ~/Mail/systec_pw.gpg #passwordeval gpg --yes --batch --passphrase=cisco,123 ~/Mail/systec_pw.gpg #passwordeval cat ~/Mail/systec_pw account default : work
Troubleshooting
certificate problem
Thanks. I deleted the davmail.server.certificate.hash value in .davmail.properties. Is that good enough?
- Just run
/opt/davmail/davmail_alone.sh brightmoon ~ # /opt/davmail/davmail_alone.sh 2017-10-15 12:22:11,620 DEBUG [main] davmail - OS Name: Linux Java version: 1.8.0_144 64 System tray not supported 2017-10-15 12:22:11,660 INFO [main] davmail - DavMail Gateway 4.6.1-2343 listening on SMTP port 1025 POP port 1110 2017-10-15 12:22:12,381 DEBUG [CheckRelease] davmail.DavGateway - DavMail released version: 4.8.0-2479 2017-10-15 12:22:12,382 INFO [CheckRelease] davmail - A new version (4.8.0-2479) of DavMail Gateway is available ! 2017-10-15 12:25:42,646 DEBUG [davmail.smtp.SmtpServer] davmail - Connection from /0:0:0:0:0:0:0:1 on port 1025 Exchange Server Certificate: Issued to: mail.systec.com.cn Issued by: systec-DC3-CA Valid from: 10/04/2017 Valid until: 10/03/2022 Serial: 61 16 E0 CD 00 00 00 00 00 03 FingerPrint: 5C:A5:18:50:18:A0:55:2E:60:60:FE:25:6:8C:59:30:D:27:78:5B Server provided an untrusted certificate, you can choose to accept or deny access. Accept certificate (y/n)? y 2017-10-15 12:26:06,225 DEBUG [SmtpConnection-49964] davmail.exchange.ExchangeSession - Test configuration status: 401 2017-10-15 12:26:06,225 DEBUG [SmtpConnection-49964] davmail - > 220 DavMail 4.6.1-2343 SMTP ready at Sun Oct 15 12:26:06 HKT 2017 2017-10-15 12:26:06,226 DEBUG [SmtpConnection-49964] davmail - < EHLO localhost 2017-10-15 12:26:06,226 DEBUG [SmtpConnection-49964] davmail - > 250-localhost 2017-10-15 12:26:06,226 DEBUG [SmtpConnection-49964] davmail - > 250-AUTH LOGIN PLAIN 2017-10-15 12:26:06,226 DEBUG [SmtpConnection-49964] davmail - > 250-8BITMIME 2017-10-15 12:26:06,226 DEBUG [SmtpConnection-49964] davmail - > 250 Hello 2017-10-15 12:26:06,267 DEBUG [SmtpConnection-49964] davmail - < LOGIN ******** 2017-10-15 12:26:06,268 DEBUG [SmtpConnection-49964] davmail - > 334 VXNlcm5hbWU6 2017-10-15 12:26:06,268 DEBUG [SmtpConnection-49964] davmail - < Y21s 2017-10-15 12:26:06,269 DEBUG [SmtpConnection-49964] davmail - > 334 UGFzc3dvcmQ6