Hi!

On a machine (rpi running Arch Linux), smptd is "dropping" tables or losing
the cache after about 2-3 hours. Extremely noticeable with the secrets
table, as the below logs will show; and then  less noticeable, with the
aliases table.

---smptd.conf---
# See smtpd.conf(5) for more information.

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

# If you edit the file, you have to run "smtpctl update table aliases"
expire 4h
table aliases db:/etc/smtpd/aliases.db
table secrets db:/etc/smtpd/secrets.db
accept for local alias <aliases> deliver to mbox
accept from local for any relay via secure+auth://
[email protected]:587
 auth <secrets>

(yes, the listen is commented out, for whatever reason, it works out, and
doesnt when in - different issue that I am not concerned about)

---secrets file---
gmailserver [email protected]:foo

---logs---
Mar 29 16:40:02 housepi systemd[1]: Starting OpenSMTPD...
Mar 29 16:40:02 housepi smtpd[6064]: info: OpenSMTPD 5.4.2p1 starting
Mar 29 16:40:02 housepi smtpd[6065]: info: startup
Mar 29 16:40:02 housepi systemd[1]: Started OpenSMTPD.
Mar 29 18:40:15 housepi smtpd[6068]: warn: credentials not found for
secrets:gmail
Mar 29 18:40:15 housepi smtpd[6071]: warn: Failed to retrieve secret for
[relay:smtp.gmail.com
,port=587,starttls,auth=secrets:gmail,mx]
Mar 29 18:40:15 housepi smtpd[6071]: relay: TempFail for 27844b4a9b8a6718:
session=0000000000000000, from=<[email protected]>, to=<
[email protected]>, rcpt=<->, source=-, relay=smtp.gmail.com
, delay=3d21h2
6m40s, stat=Could not retrieve credentials
Mar 29 18:44:02 housepi smtpd[6068]: warn: credentials not found for
secrets:gmail
Mar 29 18:44:02 housepi smtpd[6071]: warn: Failed to retrieve secret for
[relay:smtp.gmail.com
,port=587,starttls,auth=secrets:gmail,mx]
Mar 29 18:44:02 housepi smtpd[6071]: relay: TempFail for 39f2e23cfd72b679:
session=0000000000000000, from=<[email protected]>, to=<
[email protected]>, rcpt=<->, source=-, relay=smtp.gmail.com
, delay=3d21h2
6m40s, stat=Could not retrieve credentials

I've been getting around this with a cron job to restart the service every
1 hour 40 min, but I'm curious if this is an smtpd (portable) issue, or an
Arch linux issue.
I figured I would start here, and then go downstream to the distribution
and/or packager of the port.

Any thoughts?

Reply via email to