View Single Post
Old 15th March 2013
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

I found in a recent gmane post
Quote:
Re: smtpd can't find secrets.db

my smtpd.conf(5) says:

++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++
This first example is the same as the default configuration, but all
outgoing mail is forwarded to a remote SMTP server. A secrets file
is needed to specify a username and password:

# touch /etc/mail/secrets
# chmod 640 /etc/mail/secrets
# chown root:_smtpd /etc/mail/secrets
# echo "smtp.example.com username:password" > /etc/mail/secrets
# makemap /etc/mail/secrets

smtpd.conf would look like this:

listen on lo0
map aliases source db "/etc/mail/aliases.db"
map secrets source db "/etc/mail/secrets.db"
accept for local alias
aliases deliver to mbox
accept for any relay via tls+auth://smtp.example.com auth secrets
++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++

I cannot find ``map secrets source db [...]'' in your config.
and this quote is from my current smptd.conf(5) man page
Quote:
table name [type:]config
Tables are used to provide additional configuration information
for smtpd(8) in the form of lists or key-value mappings.

The table is identified using table name name; the name itself is
arbitrarily chosen.

type specifies the table backend, and should be one of the
following:

db Information is stored in a file created using
makemap(8).
file Information is stored in a plain text file using the
same format as used to generate makemap(8) mappings.
This is the default.
I did generate an elink_auth.db file using makemap.

I will change to the inline userid:passwd to see if this is the issue. A co-worker recently had a home break in with his computer being a stolen item. I thought it would be a good ideal to make a db file and if successful delete the plain text file.

Progress: apparently one cannot use an underscore in a table name. I regenerated the secrets file without an underscore it went out without any error messages. It has yet to show up at earthlink but that is not unusual. It is also not sitting in my /var/log/user file.

My new smtpd.conf
Quote:
Peng# cat smtpd.conf
# $OpenBSD: smtpd.conf,v 1.6 2013/01/26 09:38:25 gilles Exp $

# This is the smtpd server system-wide configuration file.
# See smtpd.conf(5) for more information.

# To accept external mail, replace with: listen on all
#
listen on lo0
#listen on ral0

table aliases db:/etc/mail/aliases.db
table secrets db:/etc/mail/secrets.db

# Uncomment the following to accept external mail for domain "example.org"
#
accept from any for domain "earthlink.net" alias <aliases> deliver to mbox
accept for local alias <aliases> deliver to mbox
accept for any relay via \
tls+auth://label@smtpauth.earthlink.net:587 \
auth <secrets>

Last edited by shep; 15th March 2013 at 03:28 AM. Reason: turn off smilies
Reply With Quote