Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: "jindam, vani" <jindam.vani@disroot.org>
To: Info-gnus English <info-gnus-english@gnu.org>
Subject: Re: smtpmail-send-it: Sending failed: 504 5.5.2 <localhost>: Helo command rejected: need fully-qualified hostname
Date: Sat, 10 Dec 2022 13:42:21 +0000	[thread overview]
Message-ID: <10a7c4136bbfd0f6ad72bd574d7260f8@disroot.org> (raw)
In-Reply-To: <87edt8185z.fsf@thaodan.de>

On 2022-12-09 23:14, Björn Bidar wrote:
> Do you really need to add the credentials here? Try without them so
> smptmail will try to use auth-source to retrieve the credentials.
> 
> These are my smtpmail settings:
>       (use-package smtpmail
>         :config
>         (setq smtpmail-default-smtp-server "smtp.server.de"
>               smtpmail-smtp-server "smtp.server.de"
>               smtpmail-smtp-service "465"
>               smtpmail-stream-type 'ssl
>               smtpmail-servers-requiring-authorization ".*"))

i did again some more search. found about smtpmail.el
on SendingMail [1]. "This file is part of GNU Emacs."
caught my attention for smtpmail.el [2] search.

i modified smtp section on .gnus:
(setq message-send-mail-function 'smtpmail-send-it)
(setq smtpmail-default-smtp-server "disroot.org")
(setq smtpmail-local-domain "domain")
(setq smtpmail-sendto-domain "domain")
(setq smtpmail-smtp-service "465")
(setq smtpmail-stream-type 'ssl)
(setq smtpmail-servers-requiring-authorization ".*")

> For me these work like this, smtpmail will try to retrieve the
> localdomain and sendto-domain by itself.
> 
> If you add either to the hosts file they should be fine.
> 
> Br,
> 
> Björn

[1] https://www.emacswiki.org/emacs/SendingMail#SmtpMail
[2] 
https://opensource.apple.com/source/emacs/emacs-50/emacs/lisp/mail/smtpmail.el.auto.html

regards,
jindam, vani

-- 
toots: @jindam_vani@c.im
others: en.wikipedia.org/wiki/User:Jindam_vani


      parent reply	other threads:[~2022-12-10 13:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-08 17:56 jindam, vani
2022-12-09  5:07 ` jindam, vani
2022-12-09 23:14   ` Björn Bidar
2022-12-10  4:01     ` jindam, vani
2022-12-10 13:42     ` jindam, vani [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=10a7c4136bbfd0f6ad72bd574d7260f8@disroot.org \
    --to=jindam.vani@disroot.org \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).