On Thu, 12 Feb 2015 21:48:02 -0800, Josh Kunz <[email protected]> wrote:
Thanks for your reply. I hadn't thought of using OpenSMTPd as the MDA, I
kept trying to get the usernames to work of LMTP to dovecot. Since I
need the sieve support from dovecot, I'll probably modify this solution
to use the dovecot lda, but it's definitely put me on the right track.
I haven't messed with the Dovecot LDA or SMTP myself so sorry can't be of
more help there.
Under this setup though, users would still have to use a "bare"
username, and wouldn't be able to sign-in using something like
<name>@<domain> as their username which isn't ideal. Is there any way to
make OpenSMTPd match the user against the entire address rather than
just the user part?
I thought about this issue right after hitting 'send'. You could setup a
separate OpenSMPTD credentials table file, but from what I understand
OpenSMTPD strips the @domain.tld portion of the username when performing
SMTPAUTH. If you have two users, [email protected] and [email protected]
then they would be forced to use the same password to send email.
The 'Credentials tables' section of the TABLE(5) man page does not
explicitly say so, but according to this mailing list post "When doing a
login the username is always stripped from its domain part" [1].
Interestingly, there is an open Github issue [2] where the submitter
appears to be using the full email address as the username in the
credentials table. There's a line in smptd.conf 'table local_user_list
passwd:/usr/local/etc/mail/passwd'.
Then he posts contents of /usr/local/etc/mail/passwd as:
--------------------------------------------------------
[email protected]:$6$aoiuasdfhalsdfiu$2K1Ck/C/FKHeU5wqftVRuuQralARHm2EhAAxc1N3cOFfR4cggSGunhuWnJ3.SxB28h1B4b8oI6vXBxnPirJgB1:1001:1001::/vmail:/bin/nologin
[email protected]:$6$aoiuasdfhalsdfiu$dsAcqmmDZl9CAcn78GrS6vck19iNx7aRE3UNkxrZWy/lDgQg0KDh.MgmJxxpfSTLWgSYpRC1RhGgTqubb8QM/1:1001:1001::/vmail:/bin/nologin
[email protected]:$6$aoiuasdfhalsdfiu$wUDPF8uwDCPzw4HpcxlQTOI8JarPNVSFSG.p112Qi8ysBVrxLHYTcrGx1xZSM3ayEp1/8sAY0nX.OhMVubFH31:1001:1001::/vmail:/bin/nologin
So maybe the full email address can in fact be used as the login name for
SMTPAUTH and a virtual mail user setup?
Someone more knowledgeable than me is going to have to weigh in on this
one.
[1] http://www.mail-archive.com/misc%40opensmtpd.org/msg01302.html
[2] https://github.com/OpenSMTPD/OpenSMTPD/issues/530
--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]