For dynamic originator address handling of replies, one must have an understanding of postfix configuration basics. See http://www.postfix.org/BASIC_CONFIGURATION_README.html.
A default Postfix installation tends to work with a fixed email address without many modifications to configuration.
These instructions use the following example values:
Important: The email user service0 does not have a ".forward" file. This user is only used for running the OpenACS website. Follow strict configuration guidelines to avoid email looping back unchecked.
The oacs server user needs to have read and write permissions to email user's mail dir.
For test cases, one may use a common OS user for oacs server user
and email user
.
For more strict server configurations, use a different OS user for each, and grant permission for oacs server user
to access files and directories in email user's mail dir
.
For Postfix, the email user and oacs user do not have to be the same. Furthermore, Postfix makes distinctions between virtual users and user aliases.
Future versions of this documentation should use examples with different names to help distinguish between standard configuration examples and the requirements of ACS Mail Lite package.
Postfix configuration parameters:
myhostname=www.yourserver.com myorigin=$myhostname inet_interfaces=$myhostname, localhost mynetworks_style=host virtual_alias_domains = www.yourserver.com virtual_maps=regexp:/etc/postfix/virtual home_mailbox=MailDir/
Here is the sequence to follow when installing email service on system for first time. If your system already has email service, adapt these steps accordingly:
@www.yourserver.com service0
smtp inet n - n - - smtpd
mkdir /home/service0/mail
BounceDomain: www.yourserver.com
BounceMailDir: /home/service0/MailDir
EnvelopePrefix: bounce
The EnvelopePrefix is for bounce e-mails only.
EmailReplyAddressPrefix: notification
EmailQmailQueueScanP: 0
We want acs-mail-lite incoming handle the Email Scanning, not each package separately.
Configure other packages likewisepostmap
in OS shell to recompile virtual db:
postmap /etc/postfix/virtual
/etc/init.d/postfix restart
Developer note: Parameters should be renamed:
BounceDomain to IncomingDomain
BounceMailDir to IncomingMaildir
EnvelopePrefix to BouncePrefix
..to reflect that acs-mail-lite is capable of dealing with other types of incoming e-mail.
Furthermore, setting IncomingMaildir parameter clarifies that incoming email handling is setup. This is useful for other packages to determine if they can rely on incoming e-mail working (e.g. to set the reply-to email to an e-mail address which actually works through a callback if the IncomingMaildir parameter is enabled).