Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] basic trouble with sendmail config "J. Roeleveld" <joost@××××××××.org>
Re: [gentoo-user] basic trouble with sendmail config John Covici <covici@××××××××××.com>
Re: [gentoo-user] basic trouble with sendmail config Volker Armin Hemmann <volkerarmin@××××××××××.com>