Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Hadron <hadronquark@googlemail.com>
To: info-gnus-english@gnu.org
Subject: Re: Sendig mail from GMX fails
Date: Tue, 31 Jul 2007 11:44:44 +0200	[thread overview]
Message-ID: <nsd4y8kiur.fsf@googlemail.com> (raw)
In-Reply-To: <1185815465.452830.202790@m37g2000prh.googlegroups.com>

someusernamehere <someusernamehere@gmail.com> writes:

> On 30 jul, 12:00, David Z Maze <dm...@mit.edu> wrote:
>> someusernamehere <someusernameh...@gmail.com> writes:
>> > Hey  have this in my .gnus file:
>> > [...]
>> > The problem is that Gnus try to sent the mail for the local postfix (I
>> > mean the server web on my own machine) for example if I stop the
>> > postfix in my machine I can't send mail
>> > and using my local postfix some mails are not send, what is wrong?, I
>> > want to use GMX smtp for send mail.
>>
>> Have you read the Gnus FAQ [1], say, item 3.8?  Or the relevant bit of
>> the Gnus manual [2]?
>>
>> [1]http://my.gnus.org/faq/html-chunks/FAQ.html
>> [2] info://gnus/Posting+Server
>
>
> Now, ye, I have added the following, now looks like:
>
> (setq send-mail-function 'smtpmail-send-it)
> (setq message-send-mail-function 'smtpmail-send-it)
>
> (setq smtpmail-local-domain nil
>       smtpmail-queue-mail t
>       smtpmail-queue-dir "~/mail/queued-mail/"
>       smtpmail-default-smtp-server "mail.gmx.net"
>       smtpmail-debug-info t
>       smtpmail-debug-verb t
>       smtpmail-starttls-credentials
>       '(("mail.gmx.net" 25 nil nil)))
>
> but doesn't works :-/
>

I had loads of trouble getting it work with gmail too.

Did you install gnutls-bin?

Here is my setup:

In my .gnus.el :

,----
| (setq message-send-mail-function 'smtpmail-send-it)
| (setq smtpmail-default-smtp-server "smtp.gmail.com")
| (setq smtpmail-smtp-server "smtp.gmail.com")
| (setq smtpmail-smtp-service 587)
`----

In  my "personal.el"


,----
| (defun fs-change-smtp ()
|   "Change the SMTP server according to the current from line."
|   (setq smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil)))
|   (setq message-send-mail-function 'smtpmail-send-it)
|   (save-excursion
|     (let ((from
|            (save-restriction
|              (message-narrow-to-headers)
|              (message-fetch-field "from"))))
|       (message "From is `%s', setting `smtpmail-smtp-server' to `%s'"
|                from
|                (cond
|                  ((string-match "hadron.*" from)
|  		 (setq smtpmail-auth-credentials '(("smtp.gmail.com" 587
|   "hadronquark" "password"))))
| ;;*snip*
| 		(t
| 		 (error 
| 		  (concat "Don't know which mail server to use for "
| 			  from)))))))
| )
| 
| (add-hook 'message-setup-hook 'fs-change-smtp)
`----

      reply	other threads:[~2007-07-31  9:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-30 16:39 someusernamehere
2007-07-30 17:00 ` David Z Maze
2007-07-30 17:11   ` someusernamehere
2007-07-31  9:44     ` Hadron [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=nsd4y8kiur.fsf@googlemail.com \
    --to=hadronquark@googlemail.com \
    --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).