On Sun, Mar 30, 2014 at 09:32:59AM -0600, Chris Lobkowicz wrote:
> Hi!
> 

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.
> 

hu, never seen this 


> ---smptd.conf---
> [...]
> 
> accept from local for any relay via secure+auth://
> gmailser...@smtp.gmail.com:587
>  auth <secrets>
>
> [...]
> 
> ---secrets file---
> gmailserver chris.lobkow...@gmail.com: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=<chr...@housepi.elsifer.net>, to=<
> chris.lobkow...@me.com>, 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=<chr...@housepi.elsifer.net>, to=<
> chris.lobkow...@me.com>, rcpt=<->, source=-, relay=smtp.gmail.com
> , delay=3d21h2
> 6m40s, stat=Could not retrieve credentials
> 

as far as this log is concerned, the problem is that it references the label
gmail whereas your label is called gmailserver in smtpd.conf, are you sure
the server was restarted after the change ? it can't have figured a key
named "gmail" out of nowhere.


> 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?
>

well, not really.

can you start smtpd with -dv -T tables -T lookup ?
this will produce very verbose logging of the tables content and the
lookups, if you can provide us with the log showing the values at start
and when the issue triggers, it'll help understanding what happened.

from the top of my head I don't see how this can possibly happen as the
files are used to fill static backends which are "readonly" and never
expire unless you force a table update.


-- 
Gilles Chehade

https://www.poolp.org                                          @poolpOrg

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org

Reply via email to