[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "relaying denied" -- Can't set up SMTP
From: |
Eli Zaretskii |
Subject: |
Re: "relaying denied" -- Can't set up SMTP |
Date: |
25 Nov 2003 07:43:58 +0200 |
> Newsgroups: gnu.emacs.help
> From: Dan Anderson <dan@mathjunkies.com>
> Date: Tue, 25 Nov 2003 04:07:52 GMT
>
> ,----
> | (setq send-mail-function 'smtpmail-send-it)
> | (setq message-send-mail-function 'smtpmail-send-it)
> | (setq smtpmail-smtp-server "mail.host.com")
> | (setq smtpmail-auth-credentials
> | '(("host.com" "25" "username" "password")))
> | (setq smtpmail-debug-info t)
> | (setq smtpmail-debug-verb t)
> `----
>
> I end up getting something that looks like:
>
> 550 5.7.1 <somebody@somewhere.com>... Relaying denied
The smtpmail docs says that the port can be either a string or a
number, but the code wants a number. So change this:
(setq smtpmail-auth-credentials
'(("host.com" "25" "username" "password")))
into this:
(setq smtpmail-auth-credentials
'(("host.com" 25 "username" "password")))
and things will probably start working.
I also have this line in my customizations:
(setq smtpmail-smtp-service 25)
If this doesn't help, post here the entire contents of the SMTP
session buffer.