1 |
On December 4, 2016 8:09:39 PM GMT+01:00, Harry Putnam <reader@×××××××.com> wrote: |
2 |
>After setting up the files for sendmail on my first attempt at |
3 |
>sending a msg I get this error as reported in the smtp conversation: |
4 |
> |
5 |
> Temporary system failure |
6 |
> |
7 |
>That is a new one to me, and doesn't give much to start on. |
8 |
> |
9 |
>It appears not to even get past the submit agent. |
10 |
> |
11 |
>(Running a little script that uses mailx in verbose mode to capture |
12 |
>the action .. Runs the mailx command as shown below: |
13 |
> |
14 |
> harry > tmail hputnam3@×××××.com |
15 |
> sending like this: |
16 |
>mailx -v -s "TEST 161204_134640 g0" hputnam3@×××××.com < |
17 |
>/tmp/msg-161204_134640 |
18 |
> hputnam3@×××××.com... Connecting to [127.0.0.1] via relay... |
19 |
>220 g0.local.lan ESMTP Sendmail 8.14.9/8.14.9; Sun, 4 Dec 2016 13:46:43 |
20 |
>-0500 |
21 |
> >>> EHLO g0.local.lan |
22 |
> 250-g0.local.lan Hello g0.local.lan [127.0.0.1], pleased to meet you |
23 |
> 250 ENHANCEDSTATUSCODES |
24 |
> >>> MAIL From:<harry@××××××××.lan> |
25 |
> 451 4.3.0 Temporary system failure. Please try again later. |
26 |
>hputnam3@×××××.com... Deferred: 451 4.3.0 Temporary system failure. |
27 |
>Please try again later. |
28 |
> Closing connection to [127.0.0.1] |
29 |
> >>> QUIT |
30 |
> 221 2.0.0 g0.local.lan closing connection |
31 |
> |
32 |
>sendmail.mc and submit.mc posted below: |
33 |
> |
34 |
>(Sorry about excessive data but seems necessary for this) |
35 |
>------- ------- ---=--- ------- ------- |
36 |
> |
37 |
>sendmail.mc: |
38 |
> |
39 |
>divert(-1)dnl |
40 |
>#----------------------------------------------------------------------------- |
41 |
># $Sendmail: debproto.mc,v 8.14.4 2010-11-03 22:42:40 cowboy Exp $ |
42 |
># |
43 |
># Copyright (c) 1998-2010 Richard Nelson. All Rights Reserved. |
44 |
># |
45 |
># cf/debian/sendmail.mc. Generated from sendmail.mc.in by configure. |
46 |
># |
47 |
># sendmail.mc prototype config file for building Sendmail 8.14.4 |
48 |
># |
49 |
># Note: the .in file supports 8.7.6 - 9.0.0, but the generated |
50 |
># file is customized to the version noted above. |
51 |
># |
52 |
># This file is used to configure Sendmail for use with Debian systems. |
53 |
># |
54 |
># If you modify this file, you will have to regenerate |
55 |
>/etc/mail/sendmail.cf |
56 |
># by running this file through the m4 preprocessor via one of the |
57 |
>following: |
58 |
># * make (or make -C /etc/mail) |
59 |
># * sendmailconfig |
60 |
># * m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf |
61 |
># The first two options are preferred as they will also update other |
62 |
>files |
63 |
># that depend upon the contents of this file. |
64 |
># |
65 |
># The best documentation for this .mc file is: |
66 |
># /usr/share/doc/sendmail-doc/cf.README.gz |
67 |
># |
68 |
>#----------------------------------------------------------------------------- |
69 |
>divert(0)dnl |
70 |
># |
71 |
># Copyright (c) 1998-2005 Richard Nelson. All Rights Reserved. |
72 |
># |
73 |
># This file is used to configure Sendmail for use with Debian systems. |
74 |
># |
75 |
>dnl define(`_USE_ETC_MAIL_')dnl |
76 |
>include(`/usr/share/sendmail-cf/m4/cf.m4')dnl |
77 |
> |
78 |
>VERSIONID(`$Id: hp1.mc,v 1.20 2016/12/04 11:17:08 g0 Exp $') |
79 |
>dnl # [HP 161204_101845 OSTYPE(`debian')dnl |
80 |
>dnl # changed to gentoo |
81 |
>OSTYPE(`linux')dnl |
82 |
>dnl # ] |
83 |
>DOMAIN(`generic')dnl |
84 |
>dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE |
85 |
>dnl undefine(`confHOST_STATUS_DIRECTORY')dnl #DAEMON_HOSTSTATS= |
86 |
>dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE |
87 |
>dnl # |
88 |
>dnl # General defines |
89 |
>dnl # |
90 |
>dnl # SAFE_FILE_ENV: [undefined] If set, sendmail will do a chroot() |
91 |
>dnl # into this directory before writing files. |
92 |
>dnl # If *all* your user accounts are under /home then use that |
93 |
>dnl # instead - it will prevent any writes outside of /home ! |
94 |
>dnl # define(`confSAFE_FILE_ENV', `')dnl |
95 |
>dnl # |
96 |
>dnl # Daemon options - restrict to servicing LOCALHOST ONLY !!! |
97 |
>dnl # Remove `, Addr=' clauses to receive from any interface |
98 |
>dnl # If you want to support IPv6, switch the commented/uncommentd |
99 |
>lines |
100 |
>dnl # |
101 |
>define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl |
102 |
>dnl the next one doesn't need to be present for client auth |
103 |
>define(`confAUTH_MECHANISMS',`LOGIN PLAIN')dnl |
104 |
>FEATURE(`access_db',`hash -T<TMPF> /etc/mail/access.db')dnl |
105 |
> |
106 |
>FEATURE(`no_default_msa')dnl |
107 |
>dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl |
108 |
>DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl |
109 |
>dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, |
110 |
>Addr=::1')dnl |
111 |
>DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea')dnl |
112 |
>dnl LOCAL_DOMAIN('g0.local.lan')dnl |
113 |
>dnl # |
114 |
>dnl # Be somewhat anal in what we allow |
115 |
>dnl CK define(`confPRIVACY_FLAGS', |
116 |
>`needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl |
117 |
>dnl # |
118 |
>dnl # Define connection throttling and window length |
119 |
>define(`confCONNECTION_RATE_THROTTLE', `15')dnl |
120 |
>define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl |
121 |
>dnl # |
122 |
>dnl # Features |
123 |
>dnl # |
124 |
>dnl # use /etc/mail/local-host-names |
125 |
>dnl # [HP 161204_101724 FEATURE(`use_cw_file')dnl |
126 |
>dnl # Stopped using cw until further notice ] |
127 |
>dnl # |
128 |
>dnl # The greet_pause feature stops some automail bots - but check the |
129 |
>dnl # provided access db for details on excluding localhosts... |
130 |
>FEATURE(`greet_pause', `1000')dnl 1 seconds |
131 |
>dnl # |
132 |
>dnl # Delay_checks allows sender<->recipient checking |
133 |
>FEATURE(`delay_checks', `friend', `n')dnl |
134 |
>dnl # |
135 |
>dnl # If we get too many bad recipients, slow things down... |
136 |
>dnl CK define(`confBAD_RCPT_THROTTLE',`3')dnl |
137 |
>dnl # |
138 |
>dnl # Stop connections that overflow our concurrent and time connection |
139 |
>rates |
140 |
>FEATURE(`conncontrol', `nodelay', `terminate')dnl |
141 |
>FEATURE(`ratecontrol', `nodelay', `terminate')dnl |
142 |
>dnl # |
143 |
>dnl # If you're on a dialup link, you should enable this - so sendmail |
144 |
>dnl # will not bring up the link (it will queue mail for later) |
145 |
>dnl define(`confCON_EXPENSIVE',`True')dnl |
146 |
>dnl # |
147 |
>dnl # Dialup/LAN connection overrides |
148 |
>dnl # |
149 |
>dnl CK include(`/etc/mail/m4/dialup.m4')dnl |
150 |
>dnl # [HP 161204_115342 |
151 |
>dnl make install-cf fails to find provider.m4 and starttls.mv dnl |
152 |
>dnl NOT under /usr/share/sendmail-cf either |
153 |
>dnl dnl include(`/etc/mail/m4/provider.m4')dnl |
154 |
>dnl dnl include(`/etc/mail/tls/starttls.m4')dnl |
155 |
>dnl # ] |
156 |
>dnl dnl define(`confCACERT_PATH', `/etc/mail/tls/certs')dnl |
157 |
>dnl dnl define(`confCACERT', `/etc/mail/tls/certs/ca-bundle.crt')dnl |
158 |
>dnl dnl define(`confSERVER_CERT', |
159 |
>`/etc/mail/tls/certs/sendmail.pem')dnl |
160 |
>dnl dnl define(`confSERVER_KEY', `/etc/mail/tls/certs/sendmail.pem')dnl |
161 |
>dnl # Masquerading options dnl |
162 |
>FEATURE(`always_add_domain')dnl |
163 |
>dnl MASQUERADE_AS(`fastmail.fm')dnl |
164 |
>MASQUERADE_AS(`newsguy.com')dnl |
165 |
>FEATURE(`allmasquerade')dnl |
166 |
>FEATURE(`masquerade_envelope')dnl |
167 |
>dnl # [HP 111006_211813 Testing local_no_masquerade #]dnl |
168 |
>FEATURE(`local_no_masquerade')dnl |
169 |
>dnl # [HP 161204_111030 dnl |
170 |
>dnl added from Sendmail Tips and Tricks dnl |
171 |
>dnl see evernote/applicaitons/sendmail/tips and tricks dnl |
172 |
>FEATURE(`smrsh')dnl |
173 |
>dnl # ] |
174 |
>dnl genericstable, `hash -o /etc/mail/genericstable')dnl |
175 |
>dnl GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')dnl |
176 |
> |
177 |
>dnl # [HP 161204_111254 |
178 |
>dnl Removing EXPOSED_USER ... not sure what it does |
179 |
>dnl dnl # [HP 111006_212007 |
180 |
>dnl dnl EXPOSED_USER(`root')dnl |
181 |
>dnl dnl # ] |
182 |
>dnl # ] |
183 |
>dnl # Default Mailer setup |
184 |
>MAILER_DEFINITIONS |
185 |
>dnl define(`SMART_HOST',`smtp.comcast.net')dnl |
186 |
>dnl define(`SMART_HOST',`smtp.newsguy.com')dnl |
187 |
>define(`SMART_HOST',`smtp.gmail.com')dnl |
188 |
>define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl |
189 |
>define(`ESMTP_MAILER_ARGS', `TCP $h 587')dnl |
190 |
>FEATURE(`authinfo', `hash /etc/mail/authinfo')dnl |
191 |
>MAILER(`local')dnl |
192 |
>MAILER(procmail)dnl |
193 |
>MAILER(`smtp')dnl |
194 |
> |
195 |
>------- ------- ---=--- ------- ------- |
196 |
> |
197 |
>submit.mc: |
198 |
> |
199 |
>include(`/usr/share/sendmail-cf/m4/cf.m4')dnl |
200 |
>divert(-1) |
201 |
># |
202 |
># Copyright (c) 2001-2003 Proofpoint, Inc. and its suppliers. |
203 |
># All rights reserved. |
204 |
># |
205 |
># By using this file, you agree to the terms and conditions set |
206 |
># forth in the LICENSE file which can be found at the top level of |
207 |
># the sendmail distribution. |
208 |
># |
209 |
># |
210 |
> |
211 |
># |
212 |
># This is the prototype file for a set-group-ID sm-msp sendmail that |
213 |
># acts as a initial mail submission program. |
214 |
># |
215 |
> |
216 |
>divert(0)dnl |
217 |
>VERSIONID(`$Id: submit.mc,v 8.15 2013-11-22 20:51:08 ca Exp $') |
218 |
>define(`confCF_VERSION', `Submit')dnl |
219 |
>define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining |
220 |
>define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet |
221 |
>define(`confTIME_ZONE', `USE_TZ')dnl |
222 |
>define(`confDONT_INIT_GROUPS', `True')dnl |
223 |
>dnl |
224 |
>dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1] |
225 |
>FEATURE(`msp', `[127.0.0.1]')dnl |
226 |
|
227 |
I stopped using sendmail when easier to configure alternatives came along. Currently using Postfix. |
228 |
|
229 |
As such, I can't help in checking your config. But I do remember you had to compile the config files into a format sendmail actually can read. Did you do that part? |
230 |
|
231 |
-- |
232 |
Joost |
233 |
-- |
234 |
Sent from my Android device with K-9 Mail. Please excuse my brevity. |