On 31/10/2011 18:01, Joe Zeff wrote:
>
>> AuthInfo:smtp.domain.tld "I:username" "P:password"
>
> I set sendmail up with a smarthost and smtpauth to send reports to the
> Linux Counter. (Of course, the new one doesn't use email.) My authinfo
> file looks like this:
>
> AuthInfo:smtp.domain.tld "U:username" "I:username" "P:password" "M:PLAIN"
>
> It worked fine. I'm not sure that I needed both U and I, but I couldn't
> see how it could hurt. Most likely, what you need is M.
>
I tried the file authinfo:
with and without the U,
with and without the M,
with M:PLAIN and M:LOGIN,
with the domain dame, with de IP address, and with the IP address
included in brackets,
I tried to compile authinfo with:
make authinfo.db
makemap hash /etc/mail/authinfo < /etc/mail/authinfo
but it never works.
############################################
I can authenticate through telnet
telnet smtp.domain.tld 25
Trying xxx.xxx.xxx.xxx...
Connected to smtp.domain.tld.
Escape character is '^]'.
220 domain.tld ESMTP Sendmail 8.14.4/8.14.3; Tue, 1 Nov 2011 11:28:18 +0100
EHLO localhost
250-domain.tld Hello machine.domain.tld [xxx.xxx.xxx.xxx] (may be
forged), pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
250-DELIVERBY
250 HELP
AUTH LOGIN
334 VXNlcm5hbWU6
dGVzdA==
334 UGFzc3dvcmQ6
dGVzdDEyMzQ=
235 2.0.0 OK Authenticated
#############################################
But when I try sendmail it doesn't seem to work
sendmail -v
my_testi...@yahoo.com
kk
.
my_testi...@yahoo.com... Connecting to smtp.domain.tld. via relay...
220 domain.tld ESMTP Sendmail 8.14.4/8.14.3; Tue, 1 Nov 2011 11:37:18 +0100
>>> EHLO machine.domain.tld
250-domain.tld Hello machine.domain.tld [xxx.xxx.xxx.xxx] (may be
forged), pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
250-DELIVERBY
250 HELP
>>> MAIL From:<m...@domain.tld> SIZE=3 AUTH=m...@machine.domain.tld
250 2.1.0 <m...@domain.tld>... Sender ok
>>> RCPT To:<
my_testi...@yahoo.com>
>>> DATA
550 5.7.1 <
my_testi...@yahoo.com>... Relaying denied. IP name
possibly forged [xxx.xxx.xxx.xxx]
503 5.0.0 Need RCPT (recipient)
>>> RSET
250 2.0.0 Reset state
.
.
.
(I would like to see AUTH LOGIN after the "250 HELP" line)
###############################################
my
submit.mc is fairly simple
divert(-1)
#
# Copyright (c) 2001-2003 Sendmail, Inc. and its suppliers.
# All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#
#
# This is the prototype file for a set-group-ID sm-msp sendmail that
# acts as a initial mail submission program.
#
divert(0)dnl
sinclude(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`linux setup')dnl
define(`confCF_VERSION', `Submit')dnl
define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining
define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet
define(`confTIME_ZONE', `USE_TZ')dnl
define(`confDONT_INIT_GROUPS', `True')dnl
define(`confPID_FILE', `/var/run/sm-client.pid')dnl
FEATURE(`use_ct_file')dnl
dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5
LOGIN PLAIN')dnl
FEATURE(`authinfo')dnl
define(`confAUTH_MECHANISMS', `LOGIN')dnl
FEATURE(`msp', `[smtp.domain.tld]')dnl
#################################################
Any ideas ?
thank you in advanced