On Sun, Feb 3, 2013 at 10:19 PM, Frank Brodbeck <f...@gmx.biz> 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 <aliases> deliver to mbox
accept for any relay via ssl+auth://[label]@[host] auth <secrets>


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

Reply via email to