Topic: Error sending mail via (Neo)mutt/msmtp
================ Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7 MARIADB edition.
- Linux/BSD distribution name and version: Ubuntu 16.04.5 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello
I've been setting up my mail server and have had success sending mail via roundcube, and using thunderbird and Android Gmail as clients. Both detect my servers certificates and authticate using starttls.
However, on my desktop I use neomutt to send/receive email and I am finding that I cannot send mail using either neomutt's built in smtp support or via msmtp.
For msmtp, the errors are as follows:
msmtp: envelope from address myuser@otherdomain.tld not accepted by the server
msmtp: server message: 530 5.7.0 Must issue a STARTTLS command first
msmtp: could not send mail (account personal from /home/user/.msmtprc)
My conf file for msmtp is as follows:
protocol smtp
auth on
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
rls_certcheck on
tls_starttls on
.
.
.
# iRedMail Account
account personal
from username@domain.tld
user username
passwordeval "gpg --quiet --for-your-eyes-only --no-tty --decrypt ~/.mail/.username| awk '{print $4}'"
host smtp.domain.tld
port 587
As for Neomutt, It tries to authenticate using (PLAIN) but then errors out with
SASL authentication failed
My mutt conf is as follows:
# Security Settings
set ssl_starttls=yes
set ssl_force_tls=yes
.
.
.
# Personal Settings
set from= "username@domain.tld"
set realname= "Real Name"
# Email Auth
source "gpg -dq $HOME/.mail/.username |"
set smtp_url = "smtp://username@domain.tld@smtp.domain.tld:587/"
set ssl_starttls=yes
set ssl_force_tls=yes
set smtp_pass =$my_pass
set imap_user = "username@domain.tld"
set imap_pass =$my_pass
.
.
.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.