Claus Aßmann <INVALID_NO_CC_REMOVE_IF_YOU_DO_NOT_POST_ml+sendmail(-no-copies-please)@esmtp.org>
writes:
Harry Putnam wrote:
Seems like for every
tiny step I take there are 10 options or steps required to proceed and i
"What is the problem you are trying to solve?"
The rub for me comes from not having an authentic FQDN. I'm just a
single user on a connection from my computer to internet by way of
XFinity.
That presents serious DNS problems for any lookup activity causing a
failure of a smarthost to authinenticate, even though I have a special
uid and pwd from fastmail to access the smtp server as relay.
If I try to explain further it will get hard to follow. Mainly because
I don't understand what the heck I'm doing or how the underlying
process really work.
However I can show a config that fails. (at end of message)
The default settings usually just work.
What are the default settings? Do you mean as my OS would install
sendmail it should just work from there?
Why do you want to use something like "--prefix"?
Its just a handy way to experiment with software and not accidently
mess up my system. Steer the install away from the expected
directories and set PATH to find it when testing
I've never tried it with sendmail but didn't figure it would be too
hard, turns out it appear to be a bit obtuse.
I came on that '--prefix=/some/dir' procedure long ago while building
emacs from source repeatedly.
It's really not important to current discussion. Probably best to just
drop it.
Here is an example failed attempt to send mail with config files below
in place, using "mailx -vv"
mail host is "uw.local.lan" (not a recognized FQDN)
------- ------- ---=--- ------- -------
reader > mailx -vv -s "$(date +"%y%m%d%H%M%S")- $(hostname)"
[email protected] <msg-file
[email protected]... Connecting to [127.0.0.1] via relay...
220 uw.local.lan ESMTP Sendmail 8.15.2/8.15.2/Debian-22ubuntu3; Thu, 30 Mar 2023 13:20:32 -0400; (No UCE/UBE) logging access from: uw.local.lan(OK)-uw.local.lan [127.0.0.1]
EHLO uw.local.lan
250-uw.local.lan Hello uw.local.lan [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
250-DELIVERBY
250 HELP
VERB
250 2.0.0 Verbose mode
MAIL From:<[email protected]> SIZE=1527 AUTH=[email protected]
250 2.1.0 <
[email protected]>... Sender ok
RCPT To:<[email protected]>
DATA
250 2.1.5 <
[email protected]>... Recipient ok
354 Enter mail, end with "." on a line by itself
.
050 <
[email protected]>... Connecting to smtp.fastmail.com. port 587 via relay... 050 220 smtp.fastmail.com ESMTP ready
050 >>> EHLO uw.local.lan
050 250-smtp.fastmail.com
050 250-PIPELINING
050 250-SIZE 71000000
050 250-ENHANCEDSTATUSCODES
050 250-8BITMIME
050 250 STARTTLS
050 >>> STARTTLS
050 220 2.0.0 Start TLS
050 >>> EHLO uw.local.lan
050 250-smtp.fastmail.com
050 250-PIPELINING
050 250-SIZE 71000000
050 250-ENHANCEDSTATUSCODES
050 250-8BITMIME
050 250 AUTH PLAIN LOGIN XOAUTH2 OAUTHBEARER
050 >>> AUTH PLAIN aHB1dDNAZmFzdG1haWwuZm0AaHB1dDNAZmFzdG1haWwuZm0AM2g2YW5iNTVjZHBqNWtnYg==
050 235 2.0.0 OK
050 >>> MAIL From:<
[email protected]> SIZE=1772 AUTH=<>
050 250 2.1.0 Ok
050 >>> RCPT To:<
[email protected]>
050 >>> DATA
050 250 2.1.5 Ok
050 354 End data with <CR><LF>.<CR><LF>
050 >>> .
050 551 5.7.1 Not authorised to send from this header address
050 <
[email protected]>... Connecting to local...
050 <
[email protected]>... Sent
250 2.0.0 32UHKWS9084849 Message accepted for delivery
[email protected]... Sent (32UHKWS9084849 Message accepted for delivery)
Closing connection to [127.0.0.1]
QUIT
221 2.0.0 uw.local.lan closing connection
------- ------- ---=--- ------- -------
sendmail.mc, submit.mc and access (lastline)
------- ------- ---=--- ------- -------
access: (last line)
------- ------- ---=--- ------- -------
Note the munged pw is something from my account at fastmail.com -HP AuthInfo:smtp.fastmail.com "U:
[email protected]" "P:munged" "M:PLAIN"
------- ------- ---=--- ------- -------
sendmail.mc (trimmed):
egrep -v '^(#|dnl|^$)' sendmail.mc
------- ------- ---=--- ------- -------
divert(-1)dnl
divert(0)dnl
define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc, v 8.15.2-22ubuntu3 2021-12-09 00:18:01 cowboy Exp $')
OSTYPE(`debian')dnl
DOMAIN(`debian-mta')dnl
undefine(`confHOST_STATUS_DIRECTORY')dnl #DAEMON_HOSTSTATS= define(`SMART_HOST', [`smtp.fastmail.com'])dnl
define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl
define(`ESMTP_MAILER_ARGS', `TCP $h 587')dnl
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
FEATURE(`access_db', `hash -T<TMPF> -o /etc/mail/access.db')dnl FEATURE(`no_default_msa')dnl
DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnl
define(`confPRIVACY_FLAGS',dnl `needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl
define(`confCONNECTION_RATE_THROTTLE', `15')dnl define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`greet_pause', `1000')dnl 1 seconds
FEATURE(`delay_checks', `friend', `n')dnl define(`confBAD_RCPT_THROTTLE',`3')dnl
FEATURE(`conncontrol', `nodelay', `terminate')dnl
FEATURE(`ratecontrol', `nodelay', `terminate')dnl include(`/etc/mail/m4/dialup.m4')dnl
include(`/etc/mail/m4/provider.m4')dnl
MAILER_DEFINITIONS
MAILER(`local')dnl
MAILER(`smtp')dnl
MAILER(`procmail')
------- ------- ---=--- ------- -------
submit.mc trimmed
egrep ^(#|dnl|^$) submit.mc
------- ------- ---=--- ------- -------
divert(-1)dnl
divert(0)dnl
define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`$Id: submit.mc, v 8.15.2-22ubuntu3 2021-12-09 00:18:01 cowboy Exp $')
OSTYPE(`debian')dnl
DOMAIN(`debian-msp')dnl
FEATURE(`msp', `[127.0.0.1]', `25')dnl
------- ------- ---=--- ------- -------
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)