postfix:postvirt
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| postfix:postvirt [2011/04/14 18:04] – Updated PAM_pgsql configuration for Squeeze pyro | 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------ | + | ===== Squeeze |
| - | For Debian Squeeze, the PAM_pgsql module has been changed. Ignore the above and instead create | + | Create |
| database = postfix | database = postfix | ||
| host = localhost | host = localhost | ||
| Line 235: | Line 255: | ||
| mkdir / | mkdir / | ||
| + | |||
| + | chown 5000.5000 / | ||
| + | |||
| + | chmod g+s / | ||
| Add the following to ''/ | Add the following to ''/ | ||
postfix/postvirt.1302804275.txt.gz · Last modified: by pyro
