-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move echobot into /var/lib/echobot #281
Conversation
239afac
to
b5649f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better to generate and store the echbot password in its home dir. The ini file better not contains secrets.
490318c
to
0ef78c4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good :)
chatmaild/src/chatmaild/doveauth.py
Outdated
|
||
return True | ||
|
||
|
||
def get_user_data(db, config: Config, user): | ||
if user == f"echo@{config.mail_domain}": | ||
return dict( | ||
home=f"/home/vmail/mail/{config.mail_domain}/echo", uid="vmail", gid="vmail" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
home=f"/home/vmail/mail/{config.mail_domain}/echo", uid="vmail", gid="vmail" | |
home=f"/home/vmail/mail/{config.mail_domain}/echo@{config.mail_domain}", uid="vmail", gid="vmail" |
Typically, the vmail directory would be /echo@nine.testrun.org,
not /echo
I think...
0ef78c4
to
b0a2491
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
Fixes #256
Fixes #277