-
Notifications
You must be signed in to change notification settings - Fork 1
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
after build, postdove sees localhost.localdomain + localhost domains as internet class ,not local class #1
Comments
Interesting. I checked maildb/files/domains and it shows "local" in the files. I also checked my own install and it is the same. BTW, localhost.localdomain is standard for a raw install of Fedora and other linux distros. It gets deleted as part of configuration since the domain is non-existent post system config. I checked the history on the domains file and it's always been "local". If you started with an empty database and inserted them manually, they default to "internet" and unset userid/gid. |
thank you for information. sorry i am late. i used your instructions but i need to say hardenedbsd is not linux. so i need to pass some of the steps or i need to change some of the step to be suitable with unix command lines. yes i noticed that not like your tutorial 99 but it is also not 99 on unix system. is there any check if it is 99 it writes 99 how to insert UID and GID to database, i couldnt see the command? Database Creation mkdir -p /postfixdb/ chmod 750 /postfixdb/ chown root:mail /postfixdb/ cd /postfixdb postdove create -d "/postfixdb/postdove.sqlite" ls -al i created db like this. i have built like cd /sp/postdove go get go generate grep generate main.go //go:generate bash set_version.sh cat ./set_version.sh #!/bin/bash go generate We now have the file ./cmd/version.txt cat ./cmd/version.txt root:/sp/postdove # go build ls -l postdove |
vuid and vgid are recorded only for localhost in sqlite database. but there is no vgid and vuid for localhost.localdomain.it is null. one thing i want to ask, you are inserting record with one field in to domain or address table,you do not set any id for it. but when i looked table definitions are not set autoincrement id. but some how you got increment id. i could not find documentation about it. which part of the code decides id values because it seems unreliable for me. in addition this, there are things which is not mentioned in documents. such as, when i am creating new mailbox to domain,i should now the real path of maildir,and i need to set gid and uid , it does not automaticly sets it. on freebsd and hardenedbsd side, nobody user id is different than fedora. id nobody in this case, setting vgid and vuid must be started 70000 to not to mix anything. i found error on virtual_mailbox.query. it does not work properly when home is null. there is also no virtual_gid_maps.query and virtual_uid_maps.query. i also created them. i will look further than i will inform you. thank you for this great work. |
hi, we have to create always the mail box user path manually, postdove does not create itself. in this case we need to be carefull about permission while creating paths. for user mail box , if we do not write full path of mailbox with ,--mail-home , the user mailbox will not be usable. |
there is no smtpd_sender_login_maps so, logged user can send email as another user. for example, |
Sorry I haven't gotten back. I was assuming github would send me a notify... |
you can add me as contributor no problem. thank you. i am waiting your response. |
for tests I got some fail results, TESTS RESULTS
|
i tested on hardenedbsd 13.2
postdove show domain localhost
Name: localhost
Class: internet
Transport: --
UserID: --
Group ID: --
Restrictions: --
postdove show domain localhost.localdomain
Name: localhost.localdomain
Class: internet
Transport: --
UserID: --
Group ID: --
Restrictions: --
The text was updated successfully, but these errors were encountered: