Hi,
Starting a new mail server, I decided to give a chance to OpenSMTPD and
Dovecot.
I use Ubuntu 14.04.2 LTS and OpenSMTPD 5.4.1p1
Dovecot (2.2.9) is fine so far even if not yet fully finalized but at
least I can authenticate and soon read mail when I will get some.
My current smtpd.conf is the one below :
pki mail.cerenit.fr certificate "/etc/ssl/certs/mail.cerenit.fr.crt"
pki mail.cerenit.fr key "/etc/ssl/private/mail.cerenit.fr.key"
#listen on eth0 port 25 hostname mail.cerenit.fr tls pki mail.cerenit.fr
listen on eth0 port 25 hostname mail.cerenit.fr
listen on eth0 port 587 hostname mail.cerenit.fr tls-require pki
mail.cerenit.fr auth mask-source
table user_list passwd:/etc/dovecot/users.db
accept from any for domain "cerenit.fr" recipient <user_list> deliver to
lmtp "/var/run/dovecot/lmtp"
accept from local for any relay
And /etc/dovecot/users.db is as follow right now (password generated
with doveadm)
cat /etc/dovecot/users.db
[email protected]:$6$JQoatfLRdYyVxTIe$ovKQjXopmVh8Iyh6emgMD0SLj1YtQupE9iF9c6mCQvaJRxVrJKmasonjVXh6Ledak1rii8hP349yHGNXQr1pZ.:5000:5000::/srv/mail/cerenit.fr/contact:/bin/nologin
I got this error when trying to send an email to [email protected] :
lookup: check "217.70.188.223" as NETADDR in table static:<anyhost> -> found
lookup: check "[email protected]" as MAILADDR in table proc:user_list -> -1
warn: failure to perform a table lookup on table user_list
smtp-in: Failed command on session 0e411deb386c1fb1: "RCPT TO:
<[email protected]>" => 451 Temporary failure
I had first :
accept from any for domain "cerenit.fr" userbase <user_list> deliver to
lmtp "/var/run/dovecot/lmtp"
But it "failed" as it tried to find contact in the file and not
[email protected]
So what should be the right syntax to manage my users ? I thought
recipients would be valid but seems it's not. I tried with aliases or
vmap or virtual but with no success so far.
I would like to keep the [email protected] format to avoid an alias file
to manage and also as it is supported so far by dovecot.
Thanks in advance,
Nicolas
--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]