On Sun, Sep 18, 2022 at 23:09:28 -0400, Jaskaran Veer Singh wrote:
> On Sun Sep 18, 2022 at 10:45 PM EDT, wrote:
> > Hello
> >
> > I am new with Opensmtpd + Dovecot and with the fallowed configuration i
> > can get the mail; but i am not able to send mail using Mutt and
> > Thunderbird i get this message: "SASL authentication failed"!
>
> IIRC, you have to open a ticket with vultr so they open port 25 for you. It is
> blocked by default.
While it is true that port 25 shows as filtered in the nmap output
(meaning OP will not be able to receive mail), this does not address
their current problem. They are connecting on the submission port, 587.
The submission port is correct for users on residential / otherwise
dynamic connections to talk with their SMTP server (i.e. for submitting
mail for relaying to other servers). And, indeed, it does show as open
in the nmap output.
> > # listeners smtpd.conf
> > listen on socket filter "dkimsign"
> > listen on lo0 filter "dkimsign"
> > listen on $ipv4 port 25 tls $check
> > listen on $ipv6 port 25 tls $check
> > listen on $ipv4 port 465 smtps $authcheck
> > listen on $ipv6 port 465 smtps $authcheck
> > listen on $ipv4 port 587 tls-require $authcheck
> > listen on $ipv6 port 587 tls-require $authcheck
> >
> > Mutt config:
> > set hostname=mail.example.net
> > set editor=nano
> > set imap_user=user@example.net
> > set imap_pass="passwd"
> > set folder=imaps://$imap_user@mail.example.net
> > set spoolfile=+INBOX
> > set imap_check_subscribed
> > set smtp_authenticators="login"
> > set header_cache=~/.cache/mutt
> > set message_cachedir="~/.cache/mutt"
> > unset imap_passive
> > set imap_keepalive=300
> > set mail_check=180
> > set record=+Sent
> > set my_pass="passwd"
> > set my_user='use@example.net'
Are you setting $my_pass and $my_user in your .muttrc? mutt doesn't
recognize these settings. It shouldn't affect sending mail, but I wonder
what these lines are doing.
> > set realname='user'
> > set from='user@example.net'
> > set use_from=yes
> > set smtp_pass="passwd"
> > set smtp_url="smtp://$user:$user@smtp.example.net:587/"
> > set ssl_force_tls=yes
> > set ssl_starttls=yes
Without seeing the rest of the smtpd configuration and log files, it's
difficult to determine what the problem could be. This configuration is
similar to what I use for my own server which works without issue. Are
you sure that $ipv4 and $ipv6 are correct? I use interface names in my
configuration, which are easier to get right than IP addresses
(especially v6 addresses).
Have you checked your logs in /var/log/maillog when you try to
authenticate with mutt/thunderbird? This should provide some more detail
about what's going wrong.
--
Cheers,
luna
No comments:
Post a Comment