This section will guide you through the configuration of Postfix
for @Mail on a UNIX platform. These steps must be carried out as
the Administrator, i.e. Root user.
Find out where the Postfix configuration files live. This location
is usually '/etc/postfix' but in case this is different find out
by doing 'locate main.cf'. Change directory to this location and
edit the following files:
Edit main.cf; add/modify:
'myhostname = $hostname'
where $hostname is the local hostname.
then add/modify:
'mydomain = $domainname'
where $domainname is a fully qualified domain which resolves
to the localhost IP.
In the master.cf file for postfix add the following:
atmail unix
- n
n -
- pipe
flags=
user=apache argv=/var/www/atmail/saveemail.pl $recipient
In the user= field, add the
user that is the webserver owner (usually 'apache' or 'nobody').
Next, disable the local delivery agent daemon by commenting it out in /etc/postfix/master.cf:
#======================================================================
# service type private
unpriv chroot wakeup
maxproc command + args
#
(yes) (yes)
(yes) (never)
(50)
#======================================================================
# local
unix -
n
n
-
-
local
Insert into the /etc/postfix/transport file:
<domain>
atmail:
for all domains for which you
would like @Mail to receive mail.
Edit /etc/postfix/main.cf and add the line:
transport_maps
= hash:/etc/postfix/transport
Next run postmap /etc/postfix/transport
Reload Postfix:
root#
postfix reload
or
root# postfix
start (if postfix
was not already started)