* [gentoo-user] basic trouble with sendmail config
@ 2016-12-04 19:09 Harry Putnam
2016-12-04 19:23 ` J. Roeleveld
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Harry Putnam @ 2016-12-04 19:09 UTC (permalink / raw
To: gentoo-user
After setting up the files for sendmail on my first attempt at
sending a msg I get this error as reported in the smtp conversation:
Temporary system failure
That is a new one to me, and doesn't give much to start on.
It appears not to even get past the submit agent.
(Running a little script that uses mailx in verbose mode to capture
the action .. Runs the mailx command as shown below:
harry > tmail hputnam3@gmail.com
sending like this:
mailx -v -s "TEST 161204_134640 g0" hputnam3@gmail.com < /tmp/msg-161204_134640
hputnam3@gmail.com... Connecting to [127.0.0.1] via relay...
220 g0.local.lan ESMTP Sendmail 8.14.9/8.14.9; Sun, 4 Dec 2016 13:46:43 -0500
>>> EHLO g0.local.lan
250-g0.local.lan Hello g0.local.lan [127.0.0.1], pleased to meet you
250 ENHANCEDSTATUSCODES
>>> MAIL From:<harry@g0.local.lan>
451 4.3.0 Temporary system failure. Please try again later.
hputnam3@gmail.com... Deferred: 451 4.3.0 Temporary system failure. Please try again later.
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 g0.local.lan closing connection
sendmail.mc and submit.mc posted below:
(Sorry about excessive data but seems necessary for this)
------- ------- ---=--- ------- -------
sendmail.mc:
divert(-1)dnl
#-----------------------------------------------------------------------------
# $Sendmail: debproto.mc,v 8.14.4 2010-11-03 22:42:40 cowboy Exp $
#
# Copyright (c) 1998-2010 Richard Nelson. All Rights Reserved.
#
# cf/debian/sendmail.mc. Generated from sendmail.mc.in by configure.
#
# sendmail.mc prototype config file for building Sendmail 8.14.4
#
# Note: the .in file supports 8.7.6 - 9.0.0, but the generated
# file is customized to the version noted above.
#
# This file is used to configure Sendmail for use with Debian systems.
#
# If you modify this file, you will have to regenerate /etc/mail/sendmail.cf
# by running this file through the m4 preprocessor via one of the following:
# * make (or make -C /etc/mail)
# * sendmailconfig
# * m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
# The first two options are preferred as they will also update other files
# that depend upon the contents of this file.
#
# The best documentation for this .mc file is:
# /usr/share/doc/sendmail-doc/cf.README.gz
#
#-----------------------------------------------------------------------------
divert(0)dnl
#
# Copyright (c) 1998-2005 Richard Nelson. All Rights Reserved.
#
# This file is used to configure Sendmail for use with Debian systems.
#
dnl define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`$Id: hp1.mc,v 1.20 2016/12/04 11:17:08 g0 Exp $')
dnl # [HP 161204_101845 OSTYPE(`debian')dnl
dnl # changed to gentoo
OSTYPE(`linux')dnl
dnl # ]
DOMAIN(`generic')dnl
dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
dnl undefine(`confHOST_STATUS_DIRECTORY')dnl #DAEMON_HOSTSTATS=
dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
dnl #
dnl # General defines
dnl #
dnl # SAFE_FILE_ENV: [undefined] If set, sendmail will do a chroot()
dnl # into this directory before writing files.
dnl # If *all* your user accounts are under /home then use that
dnl # instead - it will prevent any writes outside of /home !
dnl # define(`confSAFE_FILE_ENV', `')dnl
dnl #
dnl # Daemon options - restrict to servicing LOCALHOST ONLY !!!
dnl # Remove `, Addr=' clauses to receive from any interface
dnl # If you want to support IPv6, switch the commented/uncommentd lines
dnl #
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
dnl the next one doesn't need to be present for client auth
define(`confAUTH_MECHANISMS',`LOGIN PLAIN')dnl
FEATURE(`access_db',`hash -T<TMPF> /etc/mail/access.db')dnl
FEATURE(`no_default_msa')dnl
dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl
DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl
dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1')dnl
DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea')dnl
dnl LOCAL_DOMAIN('g0.local.lan')dnl
dnl #
dnl # Be somewhat anal in what we allow
dnl CK define(`confPRIVACY_FLAGS', `needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl
dnl #
dnl # Define connection throttling and window length
define(`confCONNECTION_RATE_THROTTLE', `15')dnl
define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
dnl #
dnl # Features
dnl #
dnl # use /etc/mail/local-host-names
dnl # [HP 161204_101724 FEATURE(`use_cw_file')dnl
dnl # Stopped using cw until further notice ]
dnl #
dnl # The greet_pause feature stops some automail bots - but check the
dnl # provided access db for details on excluding localhosts...
FEATURE(`greet_pause', `1000')dnl 1 seconds
dnl #
dnl # Delay_checks allows sender<->recipient checking
FEATURE(`delay_checks', `friend', `n')dnl
dnl #
dnl # If we get too many bad recipients, slow things down...
dnl CK define(`confBAD_RCPT_THROTTLE',`3')dnl
dnl #
dnl # Stop connections that overflow our concurrent and time connection rates
FEATURE(`conncontrol', `nodelay', `terminate')dnl
FEATURE(`ratecontrol', `nodelay', `terminate')dnl
dnl #
dnl # If you're on a dialup link, you should enable this - so sendmail
dnl # will not bring up the link (it will queue mail for later)
dnl define(`confCON_EXPENSIVE',`True')dnl
dnl #
dnl # Dialup/LAN connection overrides
dnl #
dnl CK include(`/etc/mail/m4/dialup.m4')dnl
dnl # [HP 161204_115342
dnl make install-cf fails to find provider.m4 and starttls.mv dnl
dnl NOT under /usr/share/sendmail-cf either
dnl dnl include(`/etc/mail/m4/provider.m4')dnl
dnl dnl include(`/etc/mail/tls/starttls.m4')dnl
dnl # ]
dnl dnl define(`confCACERT_PATH', `/etc/mail/tls/certs')dnl
dnl dnl define(`confCACERT', `/etc/mail/tls/certs/ca-bundle.crt')dnl
dnl dnl define(`confSERVER_CERT', `/etc/mail/tls/certs/sendmail.pem')dnl
dnl dnl define(`confSERVER_KEY', `/etc/mail/tls/certs/sendmail.pem')dnl
dnl # Masquerading options dnl
FEATURE(`always_add_domain')dnl
dnl MASQUERADE_AS(`fastmail.fm')dnl
MASQUERADE_AS(`newsguy.com')dnl
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_envelope')dnl
dnl # [HP 111006_211813 Testing local_no_masquerade #]dnl
FEATURE(`local_no_masquerade')dnl
dnl # [HP 161204_111030 dnl
dnl added from Sendmail Tips and Tricks dnl
dnl see evernote/applicaitons/sendmail/tips and tricks dnl
FEATURE(`smrsh')dnl
dnl # ]
dnl genericstable, `hash -o /etc/mail/genericstable')dnl
dnl GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')dnl
dnl # [HP 161204_111254
dnl Removing EXPOSED_USER ... not sure what it does
dnl dnl # [HP 111006_212007
dnl dnl EXPOSED_USER(`root')dnl
dnl dnl # ]
dnl # ]
dnl # Default Mailer setup
MAILER_DEFINITIONS
dnl define(`SMART_HOST',`smtp.comcast.net')dnl
dnl define(`SMART_HOST',`smtp.newsguy.com')dnl
define(`SMART_HOST',`smtp.gmail.com')dnl
define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl
define(`ESMTP_MAILER_ARGS', `TCP $h 587')dnl
FEATURE(`authinfo', `hash /etc/mail/authinfo')dnl
MAILER(`local')dnl
MAILER(procmail)dnl
MAILER(`smtp')dnl
------- ------- ---=--- ------- -------
submit.mc:
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
divert(-1)
#
# Copyright (c) 2001-2003 Proofpoint, 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
VERSIONID(`$Id: submit.mc,v 8.15 2013-11-22 20:51:08 ca Exp $')
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
dnl
dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]
FEATURE(`msp', `[127.0.0.1]')dnl
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] basic trouble with sendmail config
2016-12-04 19:09 [gentoo-user] basic trouble with sendmail config Harry Putnam
@ 2016-12-04 19:23 ` J. Roeleveld
2016-12-04 20:55 ` [gentoo-user] " Harry Putnam
2016-12-04 20:29 ` [gentoo-user] " John Covici
2016-12-05 0:04 ` Volker Armin Hemmann
2 siblings, 1 reply; 11+ messages in thread
From: J. Roeleveld @ 2016-12-04 19:23 UTC (permalink / raw
To: gentoo-user
On December 4, 2016 8:09:39 PM GMT+01:00, Harry Putnam <reader@newsguy.com> wrote:
>After setting up the files for sendmail on my first attempt at
>sending a msg I get this error as reported in the smtp conversation:
>
> Temporary system failure
>
>That is a new one to me, and doesn't give much to start on.
>
>It appears not to even get past the submit agent.
>
>(Running a little script that uses mailx in verbose mode to capture
>the action .. Runs the mailx command as shown below:
>
> harry > tmail hputnam3@gmail.com
> sending like this:
>mailx -v -s "TEST 161204_134640 g0" hputnam3@gmail.com <
>/tmp/msg-161204_134640
> hputnam3@gmail.com... Connecting to [127.0.0.1] via relay...
>220 g0.local.lan ESMTP Sendmail 8.14.9/8.14.9; Sun, 4 Dec 2016 13:46:43
>-0500
> >>> EHLO g0.local.lan
> 250-g0.local.lan Hello g0.local.lan [127.0.0.1], pleased to meet you
> 250 ENHANCEDSTATUSCODES
> >>> MAIL From:<harry@g0.local.lan>
> 451 4.3.0 Temporary system failure. Please try again later.
>hputnam3@gmail.com... Deferred: 451 4.3.0 Temporary system failure.
>Please try again later.
> Closing connection to [127.0.0.1]
> >>> QUIT
> 221 2.0.0 g0.local.lan closing connection
>
>sendmail.mc and submit.mc posted below:
>
>(Sorry about excessive data but seems necessary for this)
>------- ------- ---=--- ------- -------
>
>sendmail.mc:
>
>divert(-1)dnl
>#-----------------------------------------------------------------------------
># $Sendmail: debproto.mc,v 8.14.4 2010-11-03 22:42:40 cowboy Exp $
>#
># Copyright (c) 1998-2010 Richard Nelson. All Rights Reserved.
>#
># cf/debian/sendmail.mc. Generated from sendmail.mc.in by configure.
>#
># sendmail.mc prototype config file for building Sendmail 8.14.4
>#
># Note: the .in file supports 8.7.6 - 9.0.0, but the generated
># file is customized to the version noted above.
>#
># This file is used to configure Sendmail for use with Debian systems.
>#
># If you modify this file, you will have to regenerate
>/etc/mail/sendmail.cf
># by running this file through the m4 preprocessor via one of the
>following:
># * make (or make -C /etc/mail)
># * sendmailconfig
># * m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
># The first two options are preferred as they will also update other
>files
># that depend upon the contents of this file.
>#
># The best documentation for this .mc file is:
># /usr/share/doc/sendmail-doc/cf.README.gz
>#
>#-----------------------------------------------------------------------------
>divert(0)dnl
>#
># Copyright (c) 1998-2005 Richard Nelson. All Rights Reserved.
>#
># This file is used to configure Sendmail for use with Debian systems.
>#
>dnl define(`_USE_ETC_MAIL_')dnl
>include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
>
>VERSIONID(`$Id: hp1.mc,v 1.20 2016/12/04 11:17:08 g0 Exp $')
>dnl # [HP 161204_101845 OSTYPE(`debian')dnl
>dnl # changed to gentoo
>OSTYPE(`linux')dnl
>dnl # ]
>DOMAIN(`generic')dnl
>dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
>dnl undefine(`confHOST_STATUS_DIRECTORY')dnl #DAEMON_HOSTSTATS=
>dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
>dnl #
>dnl # General defines
>dnl #
>dnl # SAFE_FILE_ENV: [undefined] If set, sendmail will do a chroot()
>dnl # into this directory before writing files.
>dnl # If *all* your user accounts are under /home then use that
>dnl # instead - it will prevent any writes outside of /home !
>dnl # define(`confSAFE_FILE_ENV', `')dnl
>dnl #
>dnl # Daemon options - restrict to servicing LOCALHOST ONLY !!!
>dnl # Remove `, Addr=' clauses to receive from any interface
>dnl # If you want to support IPv6, switch the commented/uncommentd
>lines
>dnl #
>define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
>dnl the next one doesn't need to be present for client auth
>define(`confAUTH_MECHANISMS',`LOGIN PLAIN')dnl
>FEATURE(`access_db',`hash -T<TMPF> /etc/mail/access.db')dnl
>
>FEATURE(`no_default_msa')dnl
>dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl
>DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl
>dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea,
>Addr=::1')dnl
>DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea')dnl
>dnl LOCAL_DOMAIN('g0.local.lan')dnl
>dnl #
>dnl # Be somewhat anal in what we allow
>dnl CK define(`confPRIVACY_FLAGS',
>`needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl
>dnl #
>dnl # Define connection throttling and window length
>define(`confCONNECTION_RATE_THROTTLE', `15')dnl
>define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
>dnl #
>dnl # Features
>dnl #
>dnl # use /etc/mail/local-host-names
>dnl # [HP 161204_101724 FEATURE(`use_cw_file')dnl
>dnl # Stopped using cw until further notice ]
>dnl #
>dnl # The greet_pause feature stops some automail bots - but check the
>dnl # provided access db for details on excluding localhosts...
>FEATURE(`greet_pause', `1000')dnl 1 seconds
>dnl #
>dnl # Delay_checks allows sender<->recipient checking
>FEATURE(`delay_checks', `friend', `n')dnl
>dnl #
>dnl # If we get too many bad recipients, slow things down...
>dnl CK define(`confBAD_RCPT_THROTTLE',`3')dnl
>dnl #
>dnl # Stop connections that overflow our concurrent and time connection
>rates
>FEATURE(`conncontrol', `nodelay', `terminate')dnl
>FEATURE(`ratecontrol', `nodelay', `terminate')dnl
>dnl #
>dnl # If you're on a dialup link, you should enable this - so sendmail
>dnl # will not bring up the link (it will queue mail for later)
>dnl define(`confCON_EXPENSIVE',`True')dnl
>dnl #
>dnl # Dialup/LAN connection overrides
>dnl #
>dnl CK include(`/etc/mail/m4/dialup.m4')dnl
>dnl # [HP 161204_115342
>dnl make install-cf fails to find provider.m4 and starttls.mv dnl
>dnl NOT under /usr/share/sendmail-cf either
>dnl dnl include(`/etc/mail/m4/provider.m4')dnl
>dnl dnl include(`/etc/mail/tls/starttls.m4')dnl
>dnl # ]
>dnl dnl define(`confCACERT_PATH', `/etc/mail/tls/certs')dnl
>dnl dnl define(`confCACERT', `/etc/mail/tls/certs/ca-bundle.crt')dnl
>dnl dnl define(`confSERVER_CERT',
>`/etc/mail/tls/certs/sendmail.pem')dnl
>dnl dnl define(`confSERVER_KEY', `/etc/mail/tls/certs/sendmail.pem')dnl
>dnl # Masquerading options dnl
>FEATURE(`always_add_domain')dnl
>dnl MASQUERADE_AS(`fastmail.fm')dnl
>MASQUERADE_AS(`newsguy.com')dnl
>FEATURE(`allmasquerade')dnl
>FEATURE(`masquerade_envelope')dnl
>dnl # [HP 111006_211813 Testing local_no_masquerade #]dnl
>FEATURE(`local_no_masquerade')dnl
>dnl # [HP 161204_111030 dnl
>dnl added from Sendmail Tips and Tricks dnl
>dnl see evernote/applicaitons/sendmail/tips and tricks dnl
>FEATURE(`smrsh')dnl
>dnl # ]
>dnl genericstable, `hash -o /etc/mail/genericstable')dnl
>dnl GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')dnl
>
>dnl # [HP 161204_111254
>dnl Removing EXPOSED_USER ... not sure what it does
>dnl dnl # [HP 111006_212007
>dnl dnl EXPOSED_USER(`root')dnl
>dnl dnl # ]
>dnl # ]
>dnl # Default Mailer setup
>MAILER_DEFINITIONS
>dnl define(`SMART_HOST',`smtp.comcast.net')dnl
>dnl define(`SMART_HOST',`smtp.newsguy.com')dnl
>define(`SMART_HOST',`smtp.gmail.com')dnl
>define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl
>define(`ESMTP_MAILER_ARGS', `TCP $h 587')dnl
>FEATURE(`authinfo', `hash /etc/mail/authinfo')dnl
>MAILER(`local')dnl
>MAILER(procmail)dnl
>MAILER(`smtp')dnl
>
>------- ------- ---=--- ------- -------
>
>submit.mc:
>
>include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
>divert(-1)
>#
># Copyright (c) 2001-2003 Proofpoint, 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
>VERSIONID(`$Id: submit.mc,v 8.15 2013-11-22 20:51:08 ca Exp $')
>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
>dnl
>dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]
>FEATURE(`msp', `[127.0.0.1]')dnl
I stopped using sendmail when easier to configure alternatives came along. Currently using Postfix.
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?
--
Joost
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] basic trouble with sendmail config
2016-12-04 19:09 [gentoo-user] basic trouble with sendmail config Harry Putnam
2016-12-04 19:23 ` J. Roeleveld
@ 2016-12-04 20:29 ` John Covici
2016-12-05 0:04 ` Volker Armin Hemmann
2 siblings, 0 replies; 11+ messages in thread
From: John Covici @ 2016-12-04 20:29 UTC (permalink / raw
To: gentoo-user
On Sun, 04 Dec 2016 14:09:39 -0500,
Harry Putnam wrote:
>
> After setting up the files for sendmail on my first attempt at
> sending a msg I get this error as reported in the smtp conversation:
>
> Temporary system failure
>
> That is a new one to me, and doesn't give much to start on.
>
> It appears not to even get past the submit agent.
>
> (Running a little script that uses mailx in verbose mode to capture
> the action .. Runs the mailx command as shown below:
>
> harry > tmail hputnam3@gmail.com
> sending like this:
> mailx -v -s "TEST 161204_134640 g0" hputnam3@gmail.com < /tmp/msg-161204_134640
> hputnam3@gmail.com... Connecting to [127.0.0.1] via relay...
> 220 g0.local.lan ESMTP Sendmail 8.14.9/8.14.9; Sun, 4 Dec 2016 13:46:43 -0500
> >>> EHLO g0.local.lan
> 250-g0.local.lan Hello g0.local.lan [127.0.0.1], pleased to meet you
> 250 ENHANCEDSTATUSCODES
> >>> MAIL From:<harry@g0.local.lan>
> 451 4.3.0 Temporary system failure. Please try again later.
> hputnam3@gmail.com... Deferred: 451 4.3.0 Temporary system failure. Please try again later.
> Closing connection to [127.0.0.1]
> >>> QUIT
> 221 2.0.0 g0.local.lan closing connection
>
> sendmail.mc and submit.mc posted below:
>
> (Sorry about excessive data but seems necessary for this)
> ------- ------- ---=--- ------- -------
>
> sendmail.mc:
>
> divert(-1)dnl
> #-----------------------------------------------------------------------------
> # $Sendmail: debproto.mc,v 8.14.4 2010-11-03 22:42:40 cowboy Exp $
> #
> # Copyright (c) 1998-2010 Richard Nelson. All Rights Reserved.
> #
> # cf/debian/sendmail.mc. Generated from sendmail.mc.in by configure.
> #
> # sendmail.mc prototype config file for building Sendmail 8.14.4
> #
> # Note: the .in file supports 8.7.6 - 9.0.0, but the generated
> # file is customized to the version noted above.
> #
> # This file is used to configure Sendmail for use with Debian systems.
> #
> # If you modify this file, you will have to regenerate /etc/mail/sendmail.cf
> # by running this file through the m4 preprocessor via one of the following:
> # * make (or make -C /etc/mail)
> # * sendmailconfig
> # * m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
> # The first two options are preferred as they will also update other files
> # that depend upon the contents of this file.
> #
> # The best documentation for this .mc file is:
> # /usr/share/doc/sendmail-doc/cf.README.gz
> #
> #-----------------------------------------------------------------------------
> divert(0)dnl
> #
> # Copyright (c) 1998-2005 Richard Nelson. All Rights Reserved.
> #
> # This file is used to configure Sendmail for use with Debian systems.
> #
> dnl define(`_USE_ETC_MAIL_')dnl
> include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
>
> VERSIONID(`$Id: hp1.mc,v 1.20 2016/12/04 11:17:08 g0 Exp $')
> dnl # [HP 161204_101845 OSTYPE(`debian')dnl
> dnl # changed to gentoo
> OSTYPE(`linux')dnl
> dnl # ]
> DOMAIN(`generic')dnl
> dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
> dnl undefine(`confHOST_STATUS_DIRECTORY')dnl #DAEMON_HOSTSTATS=
> dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
> dnl #
> dnl # General defines
> dnl #
> dnl # SAFE_FILE_ENV: [undefined] If set, sendmail will do a chroot()
> dnl # into this directory before writing files.
> dnl # If *all* your user accounts are under /home then use that
> dnl # instead - it will prevent any writes outside of /home !
> dnl # define(`confSAFE_FILE_ENV', `')dnl
> dnl #
> dnl # Daemon options - restrict to servicing LOCALHOST ONLY !!!
> dnl # Remove `, Addr=' clauses to receive from any interface
> dnl # If you want to support IPv6, switch the commented/uncommentd lines
> dnl #
> define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
> dnl the next one doesn't need to be present for client auth
> define(`confAUTH_MECHANISMS',`LOGIN PLAIN')dnl
> FEATURE(`access_db',`hash -T<TMPF> /etc/mail/access.db')dnl
>
> FEATURE(`no_default_msa')dnl
> dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl
> DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl
> dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1')dnl
> DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea')dnl
> dnl LOCAL_DOMAIN('g0.local.lan')dnl
> dnl #
> dnl # Be somewhat anal in what we allow
> dnl CK define(`confPRIVACY_FLAGS', `needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl
> dnl #
> dnl # Define connection throttling and window length
> define(`confCONNECTION_RATE_THROTTLE', `15')dnl
> define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
> dnl #
> dnl # Features
> dnl #
> dnl # use /etc/mail/local-host-names
> dnl # [HP 161204_101724 FEATURE(`use_cw_file')dnl
> dnl # Stopped using cw until further notice ]
> dnl #
> dnl # The greet_pause feature stops some automail bots - but check the
> dnl # provided access db for details on excluding localhosts...
> FEATURE(`greet_pause', `1000')dnl 1 seconds
> dnl #
> dnl # Delay_checks allows sender<->recipient checking
> FEATURE(`delay_checks', `friend', `n')dnl
> dnl #
> dnl # If we get too many bad recipients, slow things down...
> dnl CK define(`confBAD_RCPT_THROTTLE',`3')dnl
> dnl #
> dnl # Stop connections that overflow our concurrent and time connection rates
> FEATURE(`conncontrol', `nodelay', `terminate')dnl
> FEATURE(`ratecontrol', `nodelay', `terminate')dnl
> dnl #
> dnl # If you're on a dialup link, you should enable this - so sendmail
> dnl # will not bring up the link (it will queue mail for later)
> dnl define(`confCON_EXPENSIVE',`True')dnl
> dnl #
> dnl # Dialup/LAN connection overrides
> dnl #
> dnl CK include(`/etc/mail/m4/dialup.m4')dnl
> dnl # [HP 161204_115342
> dnl make install-cf fails to find provider.m4 and starttls.mv dnl
> dnl NOT under /usr/share/sendmail-cf either
> dnl dnl include(`/etc/mail/m4/provider.m4')dnl
> dnl dnl include(`/etc/mail/tls/starttls.m4')dnl
> dnl # ]
> dnl dnl define(`confCACERT_PATH', `/etc/mail/tls/certs')dnl
> dnl dnl define(`confCACERT', `/etc/mail/tls/certs/ca-bundle.crt')dnl
> dnl dnl define(`confSERVER_CERT', `/etc/mail/tls/certs/sendmail.pem')dnl
> dnl dnl define(`confSERVER_KEY', `/etc/mail/tls/certs/sendmail.pem')dnl
> dnl # Masquerading options dnl
> FEATURE(`always_add_domain')dnl
> dnl MASQUERADE_AS(`fastmail.fm')dnl
> MASQUERADE_AS(`newsguy.com')dnl
> FEATURE(`allmasquerade')dnl
> FEATURE(`masquerade_envelope')dnl
> dnl # [HP 111006_211813 Testing local_no_masquerade #]dnl
> FEATURE(`local_no_masquerade')dnl
> dnl # [HP 161204_111030 dnl
> dnl added from Sendmail Tips and Tricks dnl
> dnl see evernote/applicaitons/sendmail/tips and tricks dnl
> FEATURE(`smrsh')dnl
> dnl # ]
> dnl genericstable, `hash -o /etc/mail/genericstable')dnl
> dnl GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')dnl
>
> dnl # [HP 161204_111254
> dnl Removing EXPOSED_USER ... not sure what it does
> dnl dnl # [HP 111006_212007
> dnl dnl EXPOSED_USER(`root')dnl
> dnl dnl # ]
> dnl # ]
> dnl # Default Mailer setup
> MAILER_DEFINITIONS
> dnl define(`SMART_HOST',`smtp.comcast.net')dnl
> dnl define(`SMART_HOST',`smtp.newsguy.com')dnl
> define(`SMART_HOST',`smtp.gmail.com')dnl
> define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl
> define(`ESMTP_MAILER_ARGS', `TCP $h 587')dnl
> FEATURE(`authinfo', `hash /etc/mail/authinfo')dnl
> MAILER(`local')dnl
> MAILER(procmail)dnl
> MAILER(`smtp')dnl
>
> ------- ------- ---=--- ------- -------
>
> submit.mc:
>
> include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
> divert(-1)
> #
> # Copyright (c) 2001-2003 Proofpoint, 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
> VERSIONID(`$Id: submit.mc,v 8.15 2013-11-22 20:51:08 ca Exp $')
> 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
> dnl
> dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]
> FEATURE(`msp', `[127.0.0.1]')dnl
>
>
I think you would get more information if you did one of the
following, increased the loglevel of sendmail and/or use the -X option
to record the conversation as well.
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici@ccs.covici.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* [gentoo-user] Re: basic trouble with sendmail config
2016-12-04 19:23 ` J. Roeleveld
@ 2016-12-04 20:55 ` Harry Putnam
0 siblings, 0 replies; 11+ messages in thread
From: Harry Putnam @ 2016-12-04 20:55 UTC (permalink / raw
To: gentoo-user
"J. Roeleveld" <joost@antarean.org> writes:
[...]
> I stopped using sendmail when easier to configure alternatives came along. Currently using Postfix.
>
> 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?
Yes
I m4'ed as explained in /usr/share/sendmail-cf/README
I didn't post the *.cf files because the sendmail.cf if very long and
not all that readable... and anyway what is in it is a direct result
of what is in sendmail.mc
I'm adding another piece of the output puzzle from /var/log/mail.log
Dec 4 15:44:58 g0 sm-cm[8151]: uB4J3YBB003855:
to=hputnam3@gmail.com, ctladdr=harry (1000/1050), delay=01:41:24,
xdelay=00:00:00, mailer=relay, pri=936804, relay=[127.0.0.1],
dsn=4.0.0, stat=Deferred: 451 4.3.0 Temporary system failure. Please
try again later.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] basic trouble with sendmail config
2016-12-04 19:09 [gentoo-user] basic trouble with sendmail config Harry Putnam
2016-12-04 19:23 ` J. Roeleveld
2016-12-04 20:29 ` [gentoo-user] " John Covici
@ 2016-12-05 0:04 ` Volker Armin Hemmann
2016-12-05 2:23 ` [gentoo-user] " Harry Putnam
2 siblings, 1 reply; 11+ messages in thread
From: Volker Armin Hemmann @ 2016-12-05 0:04 UTC (permalink / raw
To: gentoo-user
Am 04.12.2016 um 20:09 schrieb Harry Putnam:
is there a good reason you chose sendmail over postfix? Do you hate
yourself? You are a masochist?
I found sendmail the worst piece of software I ever had to deal with.
Windows XP user&rights management in a mixed environment with shares is
delightful, writing bind config files or XFree86 configs by hand was
nice, easy and a joy compared to sendmail.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [gentoo-user] Re: basic trouble with sendmail config
2016-12-05 0:04 ` Volker Armin Hemmann
@ 2016-12-05 2:23 ` Harry Putnam
2016-12-05 2:28 ` John Covici
0 siblings, 1 reply; 11+ messages in thread
From: Harry Putnam @ 2016-12-05 2:23 UTC (permalink / raw
To: gentoo-user
Volker Armin Hemmann <volkerarmin@googlemail.com> writes:
> Am 04.12.2016 um 20:09 schrieb Harry Putnam:
>
> is there a good reason you chose sendmail over postfix? Do you hate
> yourself? You are a masochist?
>
> I found sendmail the worst piece of software I ever had to deal with.
> Windows XP user&rights management in a mixed environment with shares is
> delightful, writing bind config files or XFree86 configs by hand was
> nice, easy and a joy compared to sendmail.
All the above. If you are really into pain... where pulled
fingernails are the lowest starter level ... sendmail is something
I'd only dreamed about .... till now.
OK, is there really nobody here that uses sendmail?
I'm pretty sure the kind of immediate and complete failure I'm seeing
is something horribly missconfigured and might not be that much to
fix. If I could understand what is causing the fuss.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: basic trouble with sendmail config
2016-12-05 2:23 ` [gentoo-user] " Harry Putnam
@ 2016-12-05 2:28 ` John Covici
2016-12-05 6:20 ` Mick
2016-12-06 3:26 ` Harry Putnam
0 siblings, 2 replies; 11+ messages in thread
From: John Covici @ 2016-12-05 2:28 UTC (permalink / raw
To: gentoo-user
On Sun, 04 Dec 2016 21:23:34 -0500,
Harry Putnam wrote:
>
> Volker Armin Hemmann <volkerarmin@googlemail.com> writes:
>
> > Am 04.12.2016 um 20:09 schrieb Harry Putnam:
> >
> > is there a good reason you chose sendmail over postfix? Do you hate
> > yourself? You are a masochist?
> >
> > I found sendmail the worst piece of software I ever had to deal with.
> > Windows XP user&rights management in a mixed environment with shares is
> > delightful, writing bind config files or XFree86 configs by hand was
> > nice, easy and a joy compared to sendmail.
>
> All the above. If you are really into pain... where pulled
> fingernails are the lowest starter level ... sendmail is something
> I'd only dreamed about .... till now.
>
> OK, is there really nobody here that uses sendmail?
>
> I'm pretty sure the kind of immediate and complete failure I'm seeing
> is something horribly missconfigured and might not be that much to
> fix. If I could understand what is causing the fuss.
I use it all the time with no problems. Did you do the -X or increase
the loglevel?
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici@ccs.covici.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: basic trouble with sendmail config
2016-12-05 2:28 ` John Covici
@ 2016-12-05 6:20 ` Mick
2016-12-06 3:26 ` Harry Putnam
1 sibling, 0 replies; 11+ messages in thread
From: Mick @ 2016-12-05 6:20 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1499 bytes --]
On Sunday 04 Dec 2016 21:28:06 John Covici wrote:
> On Sun, 04 Dec 2016 21:23:34 -0500,
>
> Harry Putnam wrote:
> > Volker Armin Hemmann <volkerarmin@googlemail.com> writes:
> > > Am 04.12.2016 um 20:09 schrieb Harry Putnam:
> > >
> > > is there a good reason you chose sendmail over postfix? Do you hate
> > > yourself? You are a masochist?
> > >
> > > I found sendmail the worst piece of software I ever had to deal with.
> > > Windows XP user&rights management in a mixed environment with shares is
> > > delightful, writing bind config files or XFree86 configs by hand was
> > > nice, easy and a joy compared to sendmail.
> >
> > All the above. If you are really into pain... where pulled
> > fingernails are the lowest starter level ... sendmail is something
> > I'd only dreamed about .... till now.
> >
> > OK, is there really nobody here that uses sendmail?
> >
> > I'm pretty sure the kind of immediate and complete failure I'm seeing
> > is something horribly missconfigured and might not be that much to
> > fix. If I could understand what is causing the fuss.
>
> I use it all the time with no problems. Did you do the -X or increase
> the loglevel?
What John said. In addition, pay particular attention both to ownership and
access rights for sendmail directories and config files. They should not be
world accessible for obvious security reasons and in addition access.db and
aliases.db files should be owned by root.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* [gentoo-user] Re: basic trouble with sendmail config
2016-12-05 2:28 ` John Covici
2016-12-05 6:20 ` Mick
@ 2016-12-06 3:26 ` Harry Putnam
2016-12-06 6:23 ` John Covici
1 sibling, 1 reply; 11+ messages in thread
From: Harry Putnam @ 2016-12-06 3:26 UTC (permalink / raw
To: gentoo-user
John Covici <covici@ccs.covici.com> writes:
> On Sun, 04 Dec 2016 21:23:34 -0500,
> Harry Putnam wrote:
>>
>> Volker Armin Hemmann <volkerarmin@googlemail.com> writes:
>>
>> > Am 04.12.2016 um 20:09 schrieb Harry Putnam:
>> >
>> > is there a good reason you chose sendmail over postfix? Do you hate
>> > yourself? You are a masochist?
>> >
>> > I found sendmail the worst piece of software I ever had to deal with.
>> > Windows XP user&rights management in a mixed environment with shares is
>> > delightful, writing bind config files or XFree86 configs by hand was
>> > nice, easy and a joy compared to sendmail.
>>
>> All the above. If you are really into pain... where pulled
>> fingernails are the lowest starter level ... sendmail is something
>> I'd only dreamed about .... till now.
>>
>> OK, is there really nobody here that uses sendmail?
>>
>> I'm pretty sure the kind of immediate and complete failure I'm seeing
>> is something horribly missconfigured and might not be that much to
>> fix. If I could understand what is causing the fuss.
>
> I use it all the time with no problems. Did you do the -X or increase
> the loglevel?
I increaded log level.. still researching about -X.
define(`confLOG_LEVEL', `14')dnl
Now in sendmail.mc and the m4'ed product sendmail.cf
First off, I went to sendmail site downloaded the latest and compiled
from scratch. Now some of the advice in the README's about compiling
and m4 procedure actually work since stuff is in place where sendmail
expects it. The gentoo install lacks some of the expected files and
tools. And has things in different places than un-touched sources
expect.
It appears my choice of smtp SMART HOST (smtp.gmail.com) may be
requiring STARTTLS I'm not sure how that is supposed to work my
googling seems to show a complicated process of creating certs etc etc
Anyone know how that is done for a linux box.
latest SMTP conversation and log output, followed by sendmail.mc:
------- ------- ---=--- ------- -------
SMTP output
------- ------- ---=--- ------- -------
harry > tmail hputnam3@gmail.com
sending like this:
mailx -v -s "TEST 161205_221704 g0" hputnam3@gmail.com < /tmp/msg-161205_221704
hputnam3@gmail.com... Connecting to [127.0.0.1] via relay...
220 g0.local.lan ESMTP Sendmail 8.15.2/8.15.2; Mon, 5 Dec 2016 22:17:12 -0500
>>> EHLO g0.local.lan
250-g0.local.lan Hello g0.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-DELIVERBY
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> MAIL From:<harry@g0.local.lan> SIZE=6970
250 2.1.0 <harry@g0.local.lan>... Sender ok
>>> RCPT To:<hputnam3@gmail.com>
>>> DATA
250 2.1.5 <hputnam3@gmail.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
050 <hputnam3@gmail.com>... Connecting to gmail-smtp-msa.l.google.com. port 587 via relay...
050 220 smtp.gmail.com ESMTP m136sm7913890ywd.19 - gsmtp
050 >>> EHLO g0.local.lan
050 250-smtp.gmail.com at your service, [76.97.132.53]
050 250-SIZE 35882577
050 250-8BITMIME
050 250-STARTTLS
050 250-ENHANCEDSTATUSCODES
050 250-PIPELINING
050 250-CHUNKING
050 250 SMTPUTF8
050 >>> MAIL From:<harry@newsguy.com> SIZE=7234
050 530 5.7.0 Must issue a STARTTLS command first. m136sm7913890ywd.19 - gsmtp
050 <harry@g0.local.lan>... Connecting to local...
250 2.0.0 uB63HCsI003822 Message accepted for delivery
hputnam3@gmail.com... Sent (uB63HCsI003822 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 g0.local.lan closing connection
------- ------- ---=--- ------- -------
/var/log/mail.log output (formatted for email):
------- ------- ---=--- ------- -------
Dec 5 22:17:12 g0 sendmail[3821]: uB63H7Ew003821: from=harry,
size=6970, class=0, nrcpts=1,
msgid=<201612060317.uB63H7Ew003821@g0.local.lan>,
relay=harry@localhost
Dec 5 22:17:12 g0 sm-mta[3822]: NOQUEUE: connect from g0.local.lan
[127.0.0.1]
Dec 5 22:17:12 g0 sm-mta[3822]: uB63HCsI003822: Milter: no active
filter
Dec 5 22:17:13 g0 sm-mta[3822]: uB63HCsI003822:
from=<harry@g0.local.lan>, size=7234, class=0, nrcpts=1,
msgid=<201612060317.uB63H7Ew003821@g0.local.lan>, proto=ESMTP,
daemon=MTA-v4, relay=g0.local.lan [127.0.0.1]
Dec 5 22:17:13 g0 sm-mta[3822]: uB63HCsI003822: SMTP outgoing connect
on g0.local.lan
Dec 5 22:17:13 g0 sm-mta[3822]: uB63HCsI003822:
to=<hputnam3@gmail.com>, ctladdr=<harry@g0.local.lan> (1000/1050),
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=37234,
relay=gmail-smtp-msa.l.google.com. [74.125.21.109], dsn=5.0.0,
stat=Service unavailable
Dec 5 22:17:13 g0 sm-mta[3822]: uB63HCsI003822: uB63HCsJ003822: DSN:
Service unavailable
Dec 5 22:17:13 g0 sm-mta[3823]: uB63HCsJ003822: Warning: program
/usr/bin/procmail unsafe: No such file or directory
Dec 5 22:17:13 g0 sm-mta[3823]: uB63HCsJ003822: SYSERR(root): Cannot
exec /usr/bin/procmail: No such file or directory
Dec 5 22:17:13 g0 sm-mta[3822]: uB63HCsJ003822:
to=<harry@g0.local.lan>, delay=00:00:00, xdelay=00:00:00,
mailer=local, pri=38258, dsn=4.0.0, stat=Operating system error
Dec 5 22:17:13 g0 sm-mta[3822]: uB63HCsI003822: done; delay=00:00:00,
ntries=1
Dec 5 22:17:13 g0 sendmail[3821]: uB63H7Ew003821:
to=hputnam3@gmail.com, ctladdr=harry (1000/1050), delay=00:00:06,
xdelay=00:00:01, mailer=relay, pri=36970, relay=[127.0.0.1]
[127.0.0.1], dsn=2.0.0, stat=Sent (uB63HCsI003822 Message accepted for
delivery)
------- ------- ---=--- ------- -------
sendmail.mc
------- ------- ---=--- ------- -------
divert(-1)dnl
divert(0)dnl
include(`/usr/local/src/sendmail-8.15.2/cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc,v 1.20 2016/12/04 16:17:08 g0 Exp $')
OSTYPE(`linux')dnl
DOMAIN(`generic')dnl
define(`confLOG_LEVEL', `14')dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`confAUTH_MECHANISMS',`LOGIN PLAIN')dnl
FEATURE(`access_db',`hash -T<TMPF> /etc/mail/access.db')dnl
FEATURE(`no_default_msa')dnl
DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl
DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea')dnl
define(`confCONNECTION_RATE_THROTTLE', `15')dnl
define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
FEATURE(`greet_pause', `1000')dnl 1 seconds
FEATURE(`delay_checks', `friend', `n')dnl
FEATURE(`conncontrol', `nodelay', `terminate')dnl
FEATURE(`ratecontrol', `nodelay', `terminate')dnl
FEATURE(`always_add_domain')dnl
MASQUERADE_AS(`newsguy.com')dnl
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`local_no_masquerade')dnl
FEATURE(`smrsh')dnl
MAILER_DEFINITIONS
define(`SMART_HOST',`[smtp.gmail.com]')dnl
define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl
define(`ESMTP_MAILER_ARGS', `TCP $h 587')dnl
FEATURE(`authinfo', `hash /etc/mail/authinfo')dnl
MAILER(`local')dnl
MAILER(procmail)dnl
MAILER(`smtp')dnl
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: basic trouble with sendmail config
2016-12-06 3:26 ` Harry Putnam
@ 2016-12-06 6:23 ` John Covici
2016-12-06 13:57 ` Harry Putnam
0 siblings, 1 reply; 11+ messages in thread
From: John Covici @ 2016-12-06 6:23 UTC (permalink / raw
To: gentoo-user
On Mon, 05 Dec 2016 22:26:33 -0500,
Harry Putnam wrote:
>
> John Covici <covici@ccs.covici.com> writes:
>
> > On Sun, 04 Dec 2016 21:23:34 -0500,
> > Harry Putnam wrote:
> >>
> >> Volker Armin Hemmann <volkerarmin@googlemail.com> writes:
> >>
> >> > Am 04.12.2016 um 20:09 schrieb Harry Putnam:
> >> >
> >> > is there a good reason you chose sendmail over postfix? Do you hate
> >> > yourself? You are a masochist?
> >> >
> >> > I found sendmail the worst piece of software I ever had to deal with.
> >> > Windows XP user&rights management in a mixed environment with shares is
> >> > delightful, writing bind config files or XFree86 configs by hand was
> >> > nice, easy and a joy compared to sendmail.
> >>
> >> All the above. If you are really into pain... where pulled
> >> fingernails are the lowest starter level ... sendmail is something
> >> I'd only dreamed about .... till now.
> >>
> >> OK, is there really nobody here that uses sendmail?
> >>
> >> I'm pretty sure the kind of immediate and complete failure I'm seeing
> >> is something horribly missconfigured and might not be that much to
> >> fix. If I could understand what is causing the fuss.
> >
> > I use it all the time with no problems. Did you do the -X or increase
> > the loglevel?
>
> I increaded log level.. still researching about -X.
>
> define(`confLOG_LEVEL', `14')dnl
>
> Now in sendmail.mc and the m4'ed product sendmail.cf
>
> First off, I went to sendmail site downloaded the latest and compiled
> from scratch. Now some of the advice in the README's about compiling
> and m4 procedure actually work since stuff is in place where sendmail
> expects it. The gentoo install lacks some of the expected files and
> tools. And has things in different places than un-touched sources
> expect.
>
> It appears my choice of smtp SMART HOST (smtp.gmail.com) may be
> requiring STARTTLS I'm not sure how that is supposed to work my
> googling seems to show a complicated process of creating certs etc etc
>
> Anyone know how that is done for a linux box.
>
> latest SMTP conversation and log output, followed by sendmail.mc:
> ------- ------- ---=--- ------- -------
> SMTP output
> ------- ------- ---=--- ------- -------
>
> harry > tmail hputnam3@gmail.com
> sending like this:
> mailx -v -s "TEST 161205_221704 g0" hputnam3@gmail.com < /tmp/msg-161205_221704
> hputnam3@gmail.com... Connecting to [127.0.0.1] via relay...
> 220 g0.local.lan ESMTP Sendmail 8.15.2/8.15.2; Mon, 5 Dec 2016 22:17:12 -0500
> >>> EHLO g0.local.lan
> 250-g0.local.lan Hello g0.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-DELIVERBY
> 250 HELP
> >>> VERB
> 250 2.0.0 Verbose mode
> >>> MAIL From:<harry@g0.local.lan> SIZE=6970
> 250 2.1.0 <harry@g0.local.lan>... Sender ok
> >>> RCPT To:<hputnam3@gmail.com>
> >>> DATA
> 250 2.1.5 <hputnam3@gmail.com>... Recipient ok
> 354 Enter mail, end with "." on a line by itself
> >>> .
> 050 <hputnam3@gmail.com>... Connecting to gmail-smtp-msa.l.google.com. port 587 via relay...
> 050 220 smtp.gmail.com ESMTP m136sm7913890ywd.19 - gsmtp
> 050 >>> EHLO g0.local.lan
> 050 250-smtp.gmail.com at your service, [76.97.132.53]
> 050 250-SIZE 35882577
> 050 250-8BITMIME
> 050 250-STARTTLS
> 050 250-ENHANCEDSTATUSCODES
> 050 250-PIPELINING
> 050 250-CHUNKING
> 050 250 SMTPUTF8
> 050 >>> MAIL From:<harry@newsguy.com> SIZE=7234
> 050 530 5.7.0 Must issue a STARTTLS command first. m136sm7913890ywd.19 - gsmtp
> 050 <harry@g0.local.lan>... Connecting to local...
> 250 2.0.0 uB63HCsI003822 Message accepted for delivery
> hputnam3@gmail.com... Sent (uB63HCsI003822 Message accepted for delivery)
> Closing connection to [127.0.0.1]
> >>> QUIT
> 221 2.0.0 g0.local.lan closing connection
>
> ------- ------- ---=--- ------- -------
> /var/log/mail.log output (formatted for email):
> ------- ------- ---=--- ------- -------
>
> Dec 5 22:17:12 g0 sendmail[3821]: uB63H7Ew003821: from=harry,
> size=6970, class=0, nrcpts=1,
> msgid=<201612060317.uB63H7Ew003821@g0.local.lan>,
> relay=harry@localhost
>
> Dec 5 22:17:12 g0 sm-mta[3822]: NOQUEUE: connect from g0.local.lan
> [127.0.0.1]
>
> Dec 5 22:17:12 g0 sm-mta[3822]: uB63HCsI003822: Milter: no active
> filter
>
> Dec 5 22:17:13 g0 sm-mta[3822]: uB63HCsI003822:
> from=<harry@g0.local.lan>, size=7234, class=0, nrcpts=1,
> msgid=<201612060317.uB63H7Ew003821@g0.local.lan>, proto=ESMTP,
> daemon=MTA-v4, relay=g0.local.lan [127.0.0.1]
>
> Dec 5 22:17:13 g0 sm-mta[3822]: uB63HCsI003822: SMTP outgoing connect
> on g0.local.lan
>
> Dec 5 22:17:13 g0 sm-mta[3822]: uB63HCsI003822:
> to=<hputnam3@gmail.com>, ctladdr=<harry@g0.local.lan> (1000/1050),
> delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=37234,
> relay=gmail-smtp-msa.l.google.com. [74.125.21.109], dsn=5.0.0,
> stat=Service unavailable
>
> Dec 5 22:17:13 g0 sm-mta[3822]: uB63HCsI003822: uB63HCsJ003822: DSN:
> Service unavailable
>
> Dec 5 22:17:13 g0 sm-mta[3823]: uB63HCsJ003822: Warning: program
> /usr/bin/procmail unsafe: No such file or directory
>
> Dec 5 22:17:13 g0 sm-mta[3823]: uB63HCsJ003822: SYSERR(root): Cannot
> exec /usr/bin/procmail: No such file or directory
>
> Dec 5 22:17:13 g0 sm-mta[3822]: uB63HCsJ003822:
> to=<harry@g0.local.lan>, delay=00:00:00, xdelay=00:00:00,
> mailer=local, pri=38258, dsn=4.0.0, stat=Operating system error
>
> Dec 5 22:17:13 g0 sm-mta[3822]: uB63HCsI003822: done; delay=00:00:00,
> ntries=1
>
> Dec 5 22:17:13 g0 sendmail[3821]: uB63H7Ew003821:
> to=hputnam3@gmail.com, ctladdr=harry (1000/1050), delay=00:00:06,
> xdelay=00:00:01, mailer=relay, pri=36970, relay=[127.0.0.1]
> [127.0.0.1], dsn=2.0.0, stat=Sent (uB63HCsI003822 Message accepted for
> delivery)
>
> ------- ------- ---=--- ------- -------
> sendmail.mc
> ------- ------- ---=--- ------- -------
>
> divert(-1)dnl
> divert(0)dnl
> include(`/usr/local/src/sendmail-8.15.2/cf/m4/cf.m4')dnl
> VERSIONID(`$Id: sendmail.mc,v 1.20 2016/12/04 16:17:08 g0 Exp $')
> OSTYPE(`linux')dnl
> DOMAIN(`generic')dnl
> define(`confLOG_LEVEL', `14')dnl
> define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
> define(`confAUTH_MECHANISMS',`LOGIN PLAIN')dnl
> FEATURE(`access_db',`hash -T<TMPF> /etc/mail/access.db')dnl
> FEATURE(`no_default_msa')dnl
> DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl
> DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea')dnl
> define(`confCONNECTION_RATE_THROTTLE', `15')dnl
> define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
> FEATURE(`greet_pause', `1000')dnl 1 seconds
> FEATURE(`delay_checks', `friend', `n')dnl
> FEATURE(`conncontrol', `nodelay', `terminate')dnl
> FEATURE(`ratecontrol', `nodelay', `terminate')dnl
> FEATURE(`always_add_domain')dnl
> MASQUERADE_AS(`newsguy.com')dnl
> FEATURE(`allmasquerade')dnl
> FEATURE(`masquerade_envelope')dnl
> FEATURE(`local_no_masquerade')dnl
> FEATURE(`smrsh')dnl
> MAILER_DEFINITIONS
> define(`SMART_HOST',`[smtp.gmail.com]')dnl
> define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl
> define(`ESMTP_MAILER_ARGS', `TCP $h 587')dnl
> FEATURE(`authinfo', `hash /etc/mail/authinfo')dnl
> MAILER(`local')dnl
> MAILER(procmail)dnl
> MAILER(`smtp')dnl
Well, you have several issues, looks like procmail executable does not
have correct permissions, should be
-rwsr-s--x 1 root root
or at least this is the way I have it.
If you need to send out on port 587, you need to enable starttls by
generating a cert, or getting one from somewhere, defining the
mechanisms and other things. I think once you get that done things
will work, or you will be able to figure it out easily.
Hope this helps.
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici@ccs.covici.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* [gentoo-user] Re: basic trouble with sendmail config
2016-12-06 6:23 ` John Covici
@ 2016-12-06 13:57 ` Harry Putnam
0 siblings, 0 replies; 11+ messages in thread
From: Harry Putnam @ 2016-12-06 13:57 UTC (permalink / raw
To: gentoo-user
John Covici <covici@ccs.covici.com> writes:
> Well, you have several issues, looks like procmail executable does not
> have correct permissions, should be
> -rwsr-s--x 1 root root
> or at least this is the way I have it.
The issue with procmail was that it was not even installed... Suprised
me at first but this is a rather new install and hadn't gotten that
done yet.
Anyway, once emerged /usr/bin/procmail has the same permissions as you posted.
> If you need to send out on port 587, you need to enable starttls by
> generating a cert, or getting one from somewhere, defining the
> mechanisms and other things. I think once you get that done things
> will work, or you will be able to figure it out easily.
For anyone stumbling on this thread looking for sendmail info I post
the following, and to conclude our thread.
I see the sendmail sources do have CACerts file in top level of the
unpacked sources. Maybe that is what folks use. Also there is some
explanation in one of the READMEs as well but still was not at all
clear what really needed doing.... but actually:
I dodged the issue altogether and swiched my smart host from
smtp.gmail.com (which demands STARTTLS) to smtp.newsguy.com. So when
sending to a gmail address now newsguy takes care of whatever it is
with Certs.
Should have tried that sooner... but there was enough other stuff
wrong that probably wouldn't have worked yet anyway.
All working for now. Sending works, even to gmail addresses. And
others work. Logs show no problems.
Thanks for the help.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2016-12-06 13:57 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-04 19:09 [gentoo-user] basic trouble with sendmail config Harry Putnam
2016-12-04 19:23 ` J. Roeleveld
2016-12-04 20:55 ` [gentoo-user] " Harry Putnam
2016-12-04 20:29 ` [gentoo-user] " John Covici
2016-12-05 0:04 ` Volker Armin Hemmann
2016-12-05 2:23 ` [gentoo-user] " Harry Putnam
2016-12-05 2:28 ` John Covici
2016-12-05 6:20 ` Mick
2016-12-06 3:26 ` Harry Putnam
2016-12-06 6:23 ` John Covici
2016-12-06 13:57 ` Harry Putnam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox