[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sendig mail from GMX fails
From: |
Hadron |
Subject: |
Re: Sendig mail from GMX fails |
Date: |
Tue, 31 Jul 2007 11:44:44 +0200 |
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)
`----