Recently a power outage that forced me to shutdown my server that I had
esmtp-msa running on. When I restarted after power was restored
esmtp-msa no longer worked, error is either:
Can't connect to SMTP server: mail.junkyardalchemy.org:587
or
Authentication failed
mostly the first
I tried restoring the backup of the config files from when it was
working but it had no effect.
These are the configs:
/etc/courier/courierd
##VERSION: $Id: courierd.dist.in,v 1.24 2008/07/13 14:54:48 mrsam Exp $
#
# Do not alter lines that begin with ##, they are used when upgrading
# this configuration.
#
# Copyright 1998 - 2008 Double Precision, Inc. See COPYING for
# distribution information.
##NAME: prefixes:0
prefix="/usr"
exec_prefix="/usr"
##NAME: PATH:0
PATH=/usr/bin:/bin:/usr/bin:/usr/local/bin
##NAME: SHELL:0
SHELL=/bin/sh
##NAME: DSNNOTIFY:0
# DSNNOTIFY=N
##NAME: DSNTOAUTHADDR:0
DSNTOAUTHADDR=0
##NAME: DYNAMICDELIVERIES:0
DYNAMICDELIVERIES=1
########################################################################
#
##NAME: DEFAULTDELIVERY:0
#DEFAULTDELIVERY=./Maildir
DEFAULTDELIVERY="| /usr/bin/maildrop"
##NAME: MAILDROPDEFAULT:0
MAILDROPDEFAULT=./Maildir
##NAME: ESMTP_CORK:0
ESMTP_CORK=1
##NAME: ESMTP_BLOCKBACKSCATTER:0
ESMTP_BLOCKBACKSCATTER=smtp/dsn
##NAME: SOURCE_ADDRESS:0
# SOURCE_ADDRESS=127.0.0.1
##NAME: UUXFLAGS:0
UUXFLAGS="-j -g C"
##NAME: ARCHIVEDIR:0
# ARCHIVEDIR="/usr/lib/courier/bigbrother"
##NAME: ESMTP_USE_STARTTLS:0
ESMTP_USE_STARTTLS=1
##NAME: LC_ALL:0
LC_ALL=C
##NAME: COURIERTLS:0
COURIERTLS=/usr/bin/couriertls
##NAME: ESMTP_TLS_VERIFY_DOMAIN:0
ESMTP_TLS_VERIFY_DOMAIN=0
##NAME: TLS_PROTOCOL:0
##NAME: TLS_CIPHER_LIST:0
# TLS_CIPHER_LIST="HIGH:MEDIUM"
##NAME: TLS_MIN_DH_BITS:0
##NAME: TLS_KX_LIST:0
TLS_KX_LIST=ALL
##NAME: TLS_COMPRESSION:0
TLS_COMPRESSION=ALL
##NAME: TLS_CERTS:0
TLS_CERTS=X509
##NAME: TLS_TIMEOUT:0
##NAME: TLS_DHCERTFILE:0
# TLS_DHCERTFILE=
##NAME: TLS_CERTFILE:0
# TLS_CERTFILE=
##NAME: TLS_TRUSTCERTS:1
TLS_TRUSTCERTS=/etc/ssl/certs/
##NAME: TLS_TRUSTSECURITYCERTS:0
# TLS_TRUSTSECURITYCERTS=
##NAME: TLS_VERIFYPEER:1
TLS_VERIFYPEER=NONE
============================================
/etc/courier/esmtp
##VERSION: $Id $
# esmtpd
#
# Do not alter lines that begin with ##, they are used when upgrading
# this configuration.
#
# Copyright 1998 - 2009 Double Precision, Inc. See COPYING for
# distribution information.
#
##NAME: PATH:0
PATH=/usr/bin:/bin:/usr/bin:/usr/local/bin
##NAME: SHELL:0
SHELL=/bin/sh
##NAME: ULIMIT:0
ULIMIT=16384
##NAME: BOFHCHECKDNS:0
BOFHCHECKDNS=1
##NAME: BOFHNOEXPN:1
BOFHNOEXPN=0
##NAME: BOFHNOVRFY:1
BOFHNOVRFY=0
##NAME: NOADDMSGID:0
NOADDMSGID=1
##NAME: NOADDDATE:0
NOADDDATE=1
##NAME: ESMTP_LOG_DIALOG:0
ESMTP_LOG_DIALOG=0
##NAME: AUTH_REQUIRED:0
AUTH_REQUIRED=0
#########################################################################
##NAME: COURIERTLS:0
COURIERTLS=/usr/bin/couriertls
##NAME: ESMTP_TLS_REQUIRED:0
# ESMTP_TLS_REQUIRED=1
##NAME: TLS_PROTOCOL:0
# TLS_PROTOCOL="TLS1_1:TLS1:SSL3"
##NAME: TLS_CIPHER_LIST:0
##NAME: TLS_KX_LIST:0
TLS_KX_LIST=ALL
##NAME: TLS_COMPRESSION:0
TLS_COMPRESSION=ALL
##NAME: TLS_CERTS:0
TLS_CERTS=X509
##NAME: TLS_TIMEOUT:0
##NAME: TLS_DHCERTFILE:0
# TLS_DHCERTFILE=
##NAME: TLS_CERTFILE:0
TLS_CERTFILE=/usr/share/esmtpd.pem
##NAME: TLS_TRUSTCERTS:0
TLS_TRUSTCERTS=/etc/ssl/certs/
##NAME: TLS_VERIFYPEER:0
TLS_VERIFYPEER=NONE
##NAME: TLS_EXTERNAL:0
# TLS_EXTERNAL=emailaddress
##NAME: MAILUSERGROUP:0
MAILUSER=courier
MAILGROUP=courier
##NAME: ADDRESS:0
ADDRESS=192.168.1.102
##NAME: PORT:1
PORT=smtp
##NAME: BLACKLISTS:1
BLACKLISTS=""
##NAME: ACCESSFILE:1
ACCESSFILE=${sysconfdir}/smtpaccess
##NAME: MAXDAEMONS:0
MAXDAEMONS=40
##NAME: MAXPERC:0
MAXPERC=5
##NAME: MAXPERID:0
MAXPERIP=5
##NAME: PIDFILE:0
PIDFILE=/var/run/courier/esmtpd.pid
##NAME: TCPDOPTS:3
TCPDOPTS="-stderrlogger=/usr/sbin/courierlogger"
##NAME: ESMTPAUTH:4
ESMTPAUTH="CRAM-MD5"
##NAME: ESMTPAUTH_WEBADMIN:5
ESMTPAUTH_WEBADMIN="LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256"
##NAME: ESMTPAUTHINFOTLS:3
ESMTPAUTH_TLS=""
##NAME: ESMTPAUTH_TLS_WEBADMIN:5
ESMTPAUTH_TLS_WEBADMIN="PLAIN LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256"
##NAME: ESMTPDSTART:0
ESMTPDSTART=NO
==============================================================
/etc/courier/esmtpd-msa
##VERSION: $Id: esmtpd-msa.dist.in,v 1.6 2004/04/24 19:56:19 mrsam Exp $
#
#
# esmtpd-msa created from esmtpd-msa.dist by sysconftool
#
# Do not alter lines that begin with ##, they are used when upgrading
# this configuration.
#
# Copyright 2001-2004 Double Precision, Inc. See COPYING for
# distribution information.
#
# This configuration file sets various options for Courier's mail
# submission ESMTP server (RFC 2476). Basically, this is the plain old
# port 25 ESMTP server, with a couple of difference.
#
# This configuration file is read after esmtpd, therefore it only needs
# to override some options that would differ from port 25. The first
# section of this configuration file sets options that are likely to be
# different than the esmtpd options.
##NAME: BOFHCHECKDNS:0
#
# ESMTP MSA is likely to want to verify return domain addresses.
BOFHCHECKDNS=1
##NAME: NOADDMSGID:0
#
# Add the Message-ID: header, if missing. The default value for esmtp
# is 1, but we want it 0 here:
NOADDMSGID=0
##NAME: NOADDDATE:0
#
# Ditto for the Date: header.
NOADDDATE=0
##NAME: ESMTP_LOG_DIALOG:0
#
# If set, log the esmtp dialog.
ESMTP_LOG_DIALOG=0
##NAME: AUTH_REQUIRED:0
#
# Set AUTH_REQUIRED to 1 in order to force the client to use ESMTP
# authentication. You can override AUTH_REQUIRED on a per-IP address
# basis using smtpaccess. See makesmtpaccess(8).
AUTH_REQUIRED=1
##NAME: BLACKLISTS: 0
#
# You probably want to turn off any blacklist checking, if you have it
# enabled in esmtpd
BLACKLISTS=""
##NAME: ADDRESS:1
#
# Address to listen on, can be set to a single IP address.
ADDRESS=192.168.1.102
##NAME: PORT:1
#
# PORT specified the port number to listen on. The standard msa port
# is port 587.
#
# Multiple port numbers can be separated by commas. When multiple port
# numbers are used it is possibly to select a specific IP address for a
# given port as "ip.port". For example, "127.0.0.1.900,192.68.0.1.900"
# accepts connections on port 900 on IP addresses 127.0.0.1 and
# 192.68.0.1 The ADDRESS setting, if given, is a default for ports that
# do not have a specified IP address.
PORT=587
##NAME: PIDFILE:0
#
# We *MUST* use a different PID file than esmtpd!!!
#
PIDFILE=/var/run/courier/esmtpd-msa.pid
##NAME: ACCESSFILE:1
#
# You can use a different access file for esmtp-msa than for esmtp.
# To do that, create it yourself, and use makesmtpaccess-msa instead of
# makesmtpaccess.
ACCESSFILE=${sysconfdir}/smtpaccess-msa
##NAME: ESMTPDSTART:0
#
# ESMTPDSTART is not referenced anywhere in the standard Courier
# programs or scripts. Rather, this is a convenient flag to be read by
# your system startup script in /etc/rc.d, like this:
#
# prefix=/usr
# exec_prefix=/usr
# . ${sysconfdir}/esmtpd
# . ${sysconfdir}/esmtpd-msa
# case x$ESMTPDSTART in
# x[yY]*)
# /usr/sbin/esmtpd-msa start
# ;;
# esac
#
# The default setting is going to be NO, until Courier is shipped by
# default with enough platforms so that people get annoyed with having
# to flip it to YES every time.
ESMTPDSTART=YES
##NAME: ESMTPAUTH:4
ESMTPAUTH="CRAM-MD5"
##NAME: ESMTPAUTH_WEBADMIN:5
ESMTPAUTH_WEBADMIN="CRAM-MD5 CRAM-SHA1 CRAM-SHA256"
##NAME: CUSTOM:1
#
# Here, you can stick it any additional esmtpd settings that you want to
# override. Some of the ones you are likely to want overriden may
# include MAXDAEMONS, MAXPERC, MAXPERIP, AUTHMODULES, ESMTPAUTH, and
# ESMTPAUTH_TLS. If you want to override them, do it here:
#
##NAME: MAXDAEMONS:1
MAXDAEMONS=5
##NAME: MAXPERC:1
MAXPERC=5
##NAME: MAXPERIP:1
MAXPERIP=5
==================================================
I based my configs on a combination of these tutorials:
https://wiki.archlinux.org/index.php/Courier_MTA
http://www.nuclex.org/blog/1-personal/83-installing-courier-on-gentoo
mik
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users