Configuring OpenACS to use Postfix MTA (on MacOS X)
Once postfix is installed, all you need to do is enable it to start as your default Mailserver in /etc/hostconfig. Proceed with configuring Postfix, then onfigure OpenACS Notification Parameters to use Postfix. Finally, restart Postfix for the configurations to take effect. You may also need to restart your OpenACS server as well.
NOTE 1: Replace hostname.mydomain.tld with the hostname of your server. This should be something like openacs.org.Edit /etc/hostconfig to enable Postfix on PantherNOTE 2: I've assumed that the OpenACS server will run as the service0 user.
NOTE 3: You need to create the Maildir directory in the home directory of the service0 user.
$ mkdir /Users/service0/Maildir
MAILSERVER=-YES-Edit /etc/postfix/main.cf
myhostname=hostname.mydomain.tldEdit /etc/postfix/virtual
myorigin=$myhostname
inet_interfaces=$myhostname, localhost
mynetworks_style=host
virtual_maps=regexp:/etc/postfix/virtual
home_mailbox=Maildir/
Add the following regular expressions:Edit /etc/postfix/master.cf
/^notification-(.*)@hostname\.mydomain\.tld/ service0
/^bounce-(.*)@hostname\.mydomain\.tld/ service0
Uncomment line 77 and change:OpenACS: Configure Notifications Parameters
#smtp inet n - n - - smtpd
to
smtp inet n - n - - smtpd
EmailDomain: hostname.mydomain.tldOpenACS: Configure Mail Services Lite Parameters
EmailQmailQueue: /Users/service0/Maildir
EmailReplyAddressPrefix: notification
EmailQmailQueueScanP: 1
BounceDomain: hostname.mydomain.tldRestart Postfix
BounceMailDir: /Users/service0/Maildir
EnvelopePrefix: bounce
$ sudo Postfix stop
$ sudo Postfix start
07:39 PM, 25 May 2005 by Nick Carroll Permalink | Comments (0)
Advocacy
01:54 PM, 25 May 2005 by Ben Koot Permalink | Comments (2)
| May 2005 | ||||||
| S | M | T | W | T | F | S |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 | ||||