Gentoo Archives: gentoo-user

From: Harry Putnam <reader@×××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: basic trouble with sendmail config
Date: Tue, 06 Dec 2016 03:26:53
Message-Id: 87fum1n3fa.fsf@reader.local.lan
In Reply to: Re: [gentoo-user] Re: basic trouble with sendmail config by John Covici
1 John Covici <covici@××××××××××.com> writes:
2
3 > On Sun, 04 Dec 2016 21:23:34 -0500,
4 > Harry Putnam wrote:
5 >>
6 >> Volker Armin Hemmann <volkerarmin@××××××××××.com> writes:
7 >>
8 >> > Am 04.12.2016 um 20:09 schrieb Harry Putnam:
9 >> >
10 >> > is there a good reason you chose sendmail over postfix? Do you hate
11 >> > yourself? You are a masochist?
12 >> >
13 >> > I found sendmail the worst piece of software I ever had to deal with.
14 >> > Windows XP user&rights management in a mixed environment with shares is
15 >> > delightful, writing bind config files or XFree86 configs by hand was
16 >> > nice, easy and a joy compared to sendmail.
17 >>
18 >> All the above. If you are really into pain... where pulled
19 >> fingernails are the lowest starter level ... sendmail is something
20 >> I'd only dreamed about .... till now.
21 >>
22 >> OK, is there really nobody here that uses sendmail?
23 >>
24 >> I'm pretty sure the kind of immediate and complete failure I'm seeing
25 >> is something horribly missconfigured and might not be that much to
26 >> fix. If I could understand what is causing the fuss.
27 >
28 > I use it all the time with no problems. Did you do the -X or increase
29 > the loglevel?
30
31 I increaded log level.. still researching about -X.
32
33 define(`confLOG_LEVEL', `14')dnl
34
35 Now in sendmail.mc and the m4'ed product sendmail.cf
36
37 First off, I went to sendmail site downloaded the latest and compiled
38 from scratch. Now some of the advice in the README's about compiling
39 and m4 procedure actually work since stuff is in place where sendmail
40 expects it. The gentoo install lacks some of the expected files and
41 tools. And has things in different places than un-touched sources
42 expect.
43
44 It appears my choice of smtp SMART HOST (smtp.gmail.com) may be
45 requiring STARTTLS I'm not sure how that is supposed to work my
46 googling seems to show a complicated process of creating certs etc etc
47
48 Anyone know how that is done for a linux box.
49
50 latest SMTP conversation and log output, followed by sendmail.mc:
51 ------- ------- ---=--- ------- -------
52 SMTP output
53 ------- ------- ---=--- ------- -------
54
55 harry > tmail hputnam3@×××××.com
56 sending like this:
57 mailx -v -s "TEST 161205_221704 g0" hputnam3@×××××.com < /tmp/msg-161205_221704
58 hputnam3@×××××.com... Connecting to [127.0.0.1] via relay...
59 220 g0.local.lan ESMTP Sendmail 8.15.2/8.15.2; Mon, 5 Dec 2016 22:17:12 -0500
60 >>> EHLO g0.local.lan
61 250-g0.local.lan Hello g0.local.lan [127.0.0.1], pleased to meet you
62 250-ENHANCEDSTATUSCODES
63 250-PIPELINING
64 250-EXPN
65 250-VERB
66 250-8BITMIME
67 250-SIZE
68 250-DSN
69 250-ETRN
70 250-DELIVERBY
71 250 HELP
72 >>> VERB
73 250 2.0.0 Verbose mode
74 >>> MAIL From:<harry@××××××××.lan> SIZE=6970
75 250 2.1.0 <harry@××××××××.lan>... Sender ok
76 >>> RCPT To:<hputnam3@×××××.com>
77 >>> DATA
78 250 2.1.5 <hputnam3@×××××.com>... Recipient ok
79 354 Enter mail, end with "." on a line by itself
80 >>> .
81 050 <hputnam3@×××××.com>... Connecting to gmail-smtp-msa.l.google.com. port 587 via relay...
82 050 220 smtp.gmail.com ESMTP m136sm7913890ywd.19 - gsmtp
83 050 >>> EHLO g0.local.lan
84 050 250-smtp.gmail.com at your service, [76.97.132.53]
85 050 250-SIZE 35882577
86 050 250-8BITMIME
87 050 250-STARTTLS
88 050 250-ENHANCEDSTATUSCODES
89 050 250-PIPELINING
90 050 250-CHUNKING
91 050 250 SMTPUTF8
92 050 >>> MAIL From:<harry@×××××××.com> SIZE=7234
93 050 530 5.7.0 Must issue a STARTTLS command first. m136sm7913890ywd.19 - gsmtp
94 050 <harry@××××××××.lan>... Connecting to local...
95 250 2.0.0 uB63HCsI003822 Message accepted for delivery
96 hputnam3@×××××.com... Sent (uB63HCsI003822 Message accepted for delivery)
97 Closing connection to [127.0.0.1]
98 >>> QUIT
99 221 2.0.0 g0.local.lan closing connection
100
101 ------- ------- ---=--- ------- -------
102 /var/log/mail.log output (formatted for email):
103 ------- ------- ---=--- ------- -------
104
105 Dec 5 22:17:12 g0 sendmail[3821]: uB63H7Ew003821: from=harry,
106 size=6970, class=0, nrcpts=1,
107 msgid=<201612060317.uB63H7Ew003821@××××××××.lan>,
108 relay=harry@localhost
109
110 Dec 5 22:17:12 g0 sm-mta[3822]: NOQUEUE: connect from g0.local.lan
111 [127.0.0.1]
112
113 Dec 5 22:17:12 g0 sm-mta[3822]: uB63HCsI003822: Milter: no active
114 filter
115
116 Dec 5 22:17:13 g0 sm-mta[3822]: uB63HCsI003822:
117 from=<harry@××××××××.lan>, size=7234, class=0, nrcpts=1,
118 msgid=<201612060317.uB63H7Ew003821@××××××××.lan>, proto=ESMTP,
119 daemon=MTA-v4, relay=g0.local.lan [127.0.0.1]
120
121 Dec 5 22:17:13 g0 sm-mta[3822]: uB63HCsI003822: SMTP outgoing connect
122 on g0.local.lan
123
124 Dec 5 22:17:13 g0 sm-mta[3822]: uB63HCsI003822:
125 to=<hputnam3@×××××.com>, ctladdr=<harry@××××××××.lan> (1000/1050),
126 delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=37234,
127 relay=gmail-smtp-msa.l.google.com. [74.125.21.109], dsn=5.0.0,
128 stat=Service unavailable
129
130 Dec 5 22:17:13 g0 sm-mta[3822]: uB63HCsI003822: uB63HCsJ003822: DSN:
131 Service unavailable
132
133 Dec 5 22:17:13 g0 sm-mta[3823]: uB63HCsJ003822: Warning: program
134 /usr/bin/procmail unsafe: No such file or directory
135
136 Dec 5 22:17:13 g0 sm-mta[3823]: uB63HCsJ003822: SYSERR(root): Cannot
137 exec /usr/bin/procmail: No such file or directory
138
139 Dec 5 22:17:13 g0 sm-mta[3822]: uB63HCsJ003822:
140 to=<harry@××××××××.lan>, delay=00:00:00, xdelay=00:00:00,
141 mailer=local, pri=38258, dsn=4.0.0, stat=Operating system error
142
143 Dec 5 22:17:13 g0 sm-mta[3822]: uB63HCsI003822: done; delay=00:00:00,
144 ntries=1
145
146 Dec 5 22:17:13 g0 sendmail[3821]: uB63H7Ew003821:
147 to=hputnam3@×××××.com, ctladdr=harry (1000/1050), delay=00:00:06,
148 xdelay=00:00:01, mailer=relay, pri=36970, relay=[127.0.0.1]
149 [127.0.0.1], dsn=2.0.0, stat=Sent (uB63HCsI003822 Message accepted for
150 delivery)
151
152 ------- ------- ---=--- ------- -------
153 sendmail.mc
154 ------- ------- ---=--- ------- -------
155
156 divert(-1)dnl
157 divert(0)dnl
158 include(`/usr/local/src/sendmail-8.15.2/cf/m4/cf.m4')dnl
159 VERSIONID(`$Id: sendmail.mc,v 1.20 2016/12/04 16:17:08 g0 Exp $')
160 OSTYPE(`linux')dnl
161 DOMAIN(`generic')dnl
162 define(`confLOG_LEVEL', `14')dnl
163 define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
164 define(`confAUTH_MECHANISMS',`LOGIN PLAIN')dnl
165 FEATURE(`access_db',`hash -T<TMPF> /etc/mail/access.db')dnl
166 FEATURE(`no_default_msa')dnl
167 DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl
168 DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea')dnl
169 define(`confCONNECTION_RATE_THROTTLE', `15')dnl
170 define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
171 FEATURE(`greet_pause', `1000')dnl 1 seconds
172 FEATURE(`delay_checks', `friend', `n')dnl
173 FEATURE(`conncontrol', `nodelay', `terminate')dnl
174 FEATURE(`ratecontrol', `nodelay', `terminate')dnl
175 FEATURE(`always_add_domain')dnl
176 MASQUERADE_AS(`newsguy.com')dnl
177 FEATURE(`allmasquerade')dnl
178 FEATURE(`masquerade_envelope')dnl
179 FEATURE(`local_no_masquerade')dnl
180 FEATURE(`smrsh')dnl
181 MAILER_DEFINITIONS
182 define(`SMART_HOST',`[smtp.gmail.com]')dnl
183 define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl
184 define(`ESMTP_MAILER_ARGS', `TCP $h 587')dnl
185 FEATURE(`authinfo', `hash /etc/mail/authinfo')dnl
186 MAILER(`local')dnl
187 MAILER(procmail)dnl
188 MAILER(`smtp')dnl

Replies

Subject Author
Re: [gentoo-user] Re: basic trouble with sendmail config John Covici <covici@××××××××××.com>