I have a 'quick' question. I've been trying to setup sendmail on my
RH 8.0 box using sendmail to send mail thru an outside smtp host (that
I have an account on) that requires a username/password when sending,
all to avoid the dreaded 550 error.
The bottom line is I'm stumped, completely. I have no prior
experience to configuring sendmail, but I've tried many things, one
being enabling the SMART_HOST option in my sendmail.mc file.
So, my question is, if my ouput when I log into my smtp server is :
'telnet smtp.mymailhost.com 25'
and got (important info blanked out for obvious reasons):
telnet smtp.mymailhost.com 25
Trying xxx.xxx.xxx.x...
Connected to smtp.mymailhost.com.
Escape character is '^]'.
220 Welcome to Nemesis ESMTP server on mrelay
ehlo
250-Pleased to meet you
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-PIPELINING
250-8BITMIME
250-SIZE 20971520
250 HELP
quit
221 Bye
Connection closed by foreign host.
How do I send mail using sendmail to this smtp server that demands a
username/password, to avoid 550 errors?
Output of 'sendmail -d0.1 -bv' :
Version 8.12.8
Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET
NETINET6
NETUNIX NEWDB NIS PIPELINING SASL SCANF STARTTLS
TCPWRAPPERS
USERDB USE_LDAP_INIT
============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = localhost
(canonical domain name) $j = localhost.localdomain
(subdomain name) $m = localdomain
(node name) $k = junior
========================================================
Recipient names must be specified
Thanks!
Chris
>Hello All-
>
>I have a 'quick' question. I've been trying to setup sendmail on my
>RH 8.0 box using sendmail to send mail thru an outside smtp host (that
>I have an account on) that requires a username/password when sending,
>all to avoid the dreaded 550 error.
>
My memory is a bit hazy on this but, try adding the following line to
/etc/mail/access:
AuthInfo:smtp.server.com "U:username" "I:username" "P:password"
"M:PLAIN"
Changing the server name, username and password to that of your
account. Then run make all in /etc/mail. This will tell sendmail to
always send this info by default.
You can test the above manually by uuencoding the details with:
[root@host1 root]# echo -en "username\x00username\x00password" |
uuencode -m /dev/stdout
begin-base64 644 /dev/stdout
dXNlcm5hbWUAdXNlcm5hbWUAcGFzc3dvcmQ=
====
Then once you've telnet'ed onto port 25 of the mailserver and issued a
helo do:
AUTH PLAIN dXNlcm5hbWUAdXNlcm5hbWUAcGFzc3dvcmQ=
--
Benway
Remove the SPAM
You are the man! Thanks so much. I don't know why I've had such a
hard time finding the answer to this question.
It was a matter of doing what you said, and enabling the SMART_HOST
option in the sendmail.mc file and doing a 'make all /etc/mail'.
Restart sendmail, and voila, it works!
Thanks again!
Chris
Thanks a bunch for posting this!
PS. If you do `/sbin/service sendmail restart` under redhat it rebuilds
the configuration files as well as restarting sendmail so you can skip
the make step :-)
- Mike
http://3cats.us/
--
mikem42
------------------------------------------------------------------------
Posted via http://www.webservertalk.com
------------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message260816.html