Re: OpenSMTPd error after upgrading to -current
On Sun, Feb 03, 2013 at 10:19:02PM +0100, Frank Brodbeck wrote: > Hi, > > I upgraded yesterday to the latest snapshot and have a problem with my > smtpd.conf which I can't resolve: > > /etc/mail/smtpd.conf:12: error: invalid url: smtps+auth://mail.split-brain.de > > The corresponding line is: > > # grep smtps+auth /etc/mail/smtpd.conf > accept for any relay via smtps+auth://mail.split-brain.de auth as > f...@split-brain.de > > smtpd.conf(5) didn't help me either. I guess I am missing something very > obvious here... > > Kind regards, > Frank. > The syntax has changed slightly to allow for multiple credentials to be used on the same MX, amongst other things. I just committed a fix to the example in the man page, your line should read as: smtps+auth://la...@mail.split-brain.de where "label" is the key used to find credentials in the secrets table -- Gilles Chehade https://www.poolp.org @poolpOrg
Re: OpenSMTPd error after upgrading to -current
On Sun, Feb 03, 2013 at 10:55:55PM +0100, Rogier Krieger wrote: > On Sun, Feb 3, 2013 at 10:19 PM, Frank Brodbeck wrote: > > /etc/mail/smtpd.conf:12: error: invalid url: > > smtps+auth://mail.split-brain.de > > The description of the relay parameter in smtpd.conf(5) is accurate. > It seems the examples section in smtpd.conf(5) is slightly outdated, > however. Damn. I knew it, I was overlooking the label@ part in smtpd.conf(5). Thanks for the pointer, that resolved the issue. Thanks, Frank. -- Frank Brodbeck
Re: OpenSMTPd error after upgrading to -current
On Sun, Feb 03, 2013 at 10:19:02PM +0100, Frank Brodbeck wrote: > Hi, > > I upgraded yesterday to the latest snapshot and have a problem with my > smtpd.conf which I can't resolve: > > /etc/mail/smtpd.conf:12: error: invalid url: smtps+auth://mail.split-brain.de > > The corresponding line is: > > # grep smtps+auth /etc/mail/smtpd.conf > > > accept for any relay via smtps+auth://mail.split-brain.de auth as > f...@split-brain.de > > smtpd.conf(5) didn't help me either. I guess I am missing something very > obvious here... I had the same issue today after installing the snapshot from Feb 1. Looks like a "label" in the url is now required and used as lookup key in the secrets map. # /etc/mail/smtpd.conf: listen on lo0 table aliases db:/etc/mail/aliases.db table secrets file:/etc/mail/secrets accept for local alias deliver to mbox accept for any relay via smtps+auth://b...@typhoon.relo.ch auth \ # /etc/mail/secrets blue user:pass I would prefere if just the host or a combination of user and host would be used for password lookup and not a label. Remi
Re: OpenSMTPd error after upgrading to -current
On Sun, Feb 3, 2013 at 10:19 PM, Frank Brodbeck wrote: > /etc/mail/smtpd.conf:12: error: invalid url: smtps+auth://mail.split-brain.de The description of the relay parameter in smtpd.conf(5) is accurate. It seems the examples section in smtpd.conf(5) is slightly outdated, however. The format for the relay URL changed to include a label for looking up the credentials. This allows you to select different credentials for the same host should you need that. This is one of the recent goodies [1] mentioned in another thread. Instead of using a hostname in the secrets file, use a label and list that label in the relay URL. After running makemap, smtpd liked my configuration again. I've added a sanitised version as an example. # cat /etc/mail/smtpd.conf listen on lo0 table aliases db:/etc/mail/aliases.db table secrets db:/etc/mail/secrets.db accept for local alias deliver to mbox accept for any relay via ssl+auth://[label]@[host] auth # cat /etc/mail/secrets [label] [user]:[password] Hope that helps, Rogier References: 1. Undeadly - "OpenSMTPD: more features, more cleanup, more more" http://undeadly.org/cgi?action=article&sid=20130130081741 -- If you don't know where you're going, any road will get you there.
Re: OpenSMTPd error after upgrading to -current
On Sun, Feb 03, 2013 at 10:19:02PM +0100, Frank Brodbeck wrote: > Hi, > > I upgraded yesterday to the latest snapshot and have a problem with my > smtpd.conf which I can't resolve: > > /etc/mail/smtpd.conf:12: error: invalid url: smtps+auth://mail.split-brain.de > > The corresponding line is: > > # grep smtps+auth /etc/mail/smtpd.conf > > > accept for any relay via smtps+auth://mail.split-brain.de auth as > f...@split-brain.de > > smtpd.conf(5) didn't help me either. I guess I am missing something very > obvious here... > > Kind regards, > Frank. On a relay I use this syntax: accept for any relay via "tls+auth://outbound.mailhop.org:2525" \ certificate jggimi.homeip.net auth secrets