Re: [gentoo-user] basic trouble with sendmail config

2016-12-04 Thread Volker Armin Hemmann
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 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.



Re: [gentoo-user] basic trouble with sendmail config

2016-12-04 Thread John Covici
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 hputn...@gmail.com
>   sending like this:
>   mailx -v -s "TEST 161204_134640 g0" hputn...@gmail.com < 
> /tmp/msg-161204_134640
>   hputn...@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:
>   451 4.3.0 Temporary system failure. Please try again later.
>   hputn...@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 /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 

Re: [gentoo-user] basic trouble with sendmail config

2016-12-04 Thread J. Roeleveld
On December 4, 2016 8:09:39 PM GMT+01:00, 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 hputn...@gmail.com
>  sending like this:
>mailx -v -s "TEST 161204_134640 g0" hputn...@gmail.com <
>/tmp/msg-161204_134640
>  hputn...@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:
>  451 4.3.0 Temporary system failure. Please try again later.
>hputn...@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 /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', 

[gentoo-user] basic trouble with sendmail config

2016-12-04 Thread Harry Putnam
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 hputn...@gmail.com
  sending like this:
  mailx -v -s "TEST 161204_134640 g0" hputn...@gmail.com < 
/tmp/msg-161204_134640
  hputn...@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:
  451 4.3.0 Temporary system failure. Please try again later.
  hputn...@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 /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