postfix:postvirt
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| postfix:postvirt [2010/04/15 19:19] – external edit 127.0.0.1 | postfix:postvirt [2013/03/08 03:07] (current) – typo pyro | ||
|---|---|---|---|
| Line 57: | Line 57: | ||
| create user cherryhost with password ' | create user cherryhost with password ' | ||
| + | |||
| + | Chadmin is the mail domain admin | ||
| + | |||
| + | create user chadmin with password ' | ||
| Pam is used by saslauthd to authenticate users for TLS. | Pam is used by saslauthd to authenticate users for TLS. | ||
| Line 111: | Line 115: | ||
| - | Finally, a table for virtual forwarding. That is, aliases with no login or mailbox on the system. | + | A table for virtual forwarding. That is, aliases with no login or mailbox on the system. |
| CREATE TABLE virtuals ( | CREATE TABLE virtuals ( | ||
| Line 125: | Line 129: | ||
| GRANT INSERT, | GRANT INSERT, | ||
| + | Finally, the tables for cherryhost itself: | ||
| + | CREATE TABLE domain_admins ( | ||
| + | uname text, | ||
| + | domain text ); | ||
| + | |||
| + | CREATE TABLE mail_admins ( | ||
| + | uname text, | ||
| + | pass text ); | ||
| + | |||
| + | GRANT INSERT, | ||
| + | GRANT SELECT on domain_admins, | ||
| + | |||
| **Note that since several componants of the system run in a chroot environment, | **Note that since several componants of the system run in a chroot environment, | ||
| Line 139: | Line 155: | ||
| apt-get install libpam-pgsql | apt-get install libpam-pgsql | ||
| + | |||
| + | Due to package updates, configuration of PAM_pgsql is different for Squeeze than for Etch and Lenny: | ||
| + | |||
| + | ===== Etch and Lenny ===== | ||
| Create a file ''/ | Create a file ''/ | ||
| Line 145: | Line 165: | ||
| account sufficient pam_pgsql.so debug user=pam password=pam host=127.0.0.1 database=postfix table=pwdb user_column=id pwd_column=clear pw_type=clear | account sufficient pam_pgsql.so debug user=pam password=pam host=127.0.0.1 database=postfix table=pwdb user_column=id pwd_column=clear pw_type=clear | ||
| + | ===== Squeeze ===== | ||
| + | Create file / | ||
| + | database = postfix | ||
| + | host = localhost | ||
| + | user = pam | ||
| + | password = pam | ||
| + | table = pwdb | ||
| + | user_column = id | ||
| + | pwd_column = clear | ||
| + | pw_type=clear | ||
| + | acct_query=select False, False, False | ||
| + | expired_column = acc_expired | ||
| + | newtok_column = acc_new_pwreq | ||
| + | debug = 1 | ||
| + | |||
| + | Then, create a file ''/ | ||
| + | |||
| + | auth required | ||
| + | account sufficient pam_pgsql.so | ||
| While it would be preferable to only expose the user password in encrypted form, the pam module currently doesn' | While it would be preferable to only expose the user password in encrypted form, the pam module currently doesn' | ||
| Line 216: | Line 255: | ||
| mkdir / | mkdir / | ||
| + | |||
| + | chown 5000.5000 / | ||
| + | |||
| + | chmod g+s / | ||
| Add the following to ''/ | Add the following to ''/ | ||
postfix/postvirt.1271359141.txt.gz · Last modified: (external edit)
