Groupware Server With Group-Office, Postfix, Dovecot And SpamAssassin On Debian Lenny (5.0) - Page 2
Configure PostfixPostfix must be configured to use MySQL: The following variables in main.cf. Start with filling some basic info: # postconf -e 'myhostname = mx-1.example.com' Now configure it for virtual users in MySQL: # postconf -e 'virtual_alias_domains =' We will use Dovecot delivery: # postconf -e 'virtual_transport=dovecot' Create the transport db: # cd /etc/postfix Postfix was installed with MySQL support, but that doesn't mean it already knows how to use our database. It needs to be provided with various SQL-query information for each type of table in our database. This information is stored in the MySQL files defined in the main.cf file: /etc/postfix/mysql_virtual_alias_maps.cf: user = vmail_user password = vmail_user_password hosts = localhost dbname = groupoffice table = pa_aliases select_field = goto where_field = address additional_conditions = and active = '1' /etc/postfix/mysql_virtual_domains_maps.cf: user = vmail_user password = vmail_user_password hosts = localhost dbname = groupoffice table = pa_domains select_field = domain where_field = domain additional_conditions = and backupmx = '0' and active = '1' /etc/postfix/mysql_virtual_mailbox_limit_maps.cf: user = vmail_user password = vmail_user_password hosts = localhost dbname = groupoffice table = pa_mailboxes select_field = quota where_field = username additional_conditions = and active = '1' /etc/postfix/mysql_virtual_mailbox_maps.cf: user = vmail_user password = vmail_user_password hosts = localhost dbname = groupoffice table = pa_mailboxes select_field = maildir where_field = username additional_conditions = and active = '1' /etc/postfix/mysql_virtual_transports.cf: user = vmail_user password = vmail_user_password hosts = localhost dbname = groupoffice table = pa_domains select_field = transport where_field = domain additional_conditions = and active = '1' /etc/postfix/mysql_relay_domains_maps.cf: user = vmail_user password = vmail_user_password hosts = localhost dbname = groupoffice table = pa_domains select_field = domain where_field = domain additional_conditions = and backupmx = '1' and active = '1' Add the mail user: # useradd -r -u 150 -g mail -d /var/vmail -s /sbin/nologin -c "Virtual Mailbox" vmail Edit Postfix master.cf: Alter the first line with the smtp service: smtp inet n - - - - smtpd -o content_filter=spamassassin After that line add: spamassassin unix - n n - - pipe
user=spamd argv=/usr/bin/spamc -f -e
/usr/sbin/sendmail -oi -f ${sender} ${recipient}
dovecot unix - n n - - pipe
flags=DRhu user=vmail:mail argv=/usr/lib/dovecot/deliver -d ${recipient}
At the interfaces to non-Postfix software add: vacation unix - n n - - pipe
flags=Rq user=vacation argv=/var/spool/vacation/vacation.pl -f ${sender} -- ${recipient}
|



Recent comments
21 hours 49 min ago
21 hours 54 min ago
1 day 2 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 11 hours ago
1 day 15 hours ago
1 day 22 hours ago
2 days 2 hours ago
2 days 4 hours ago