Postfix Virtual Host Mailing List
I'm setting up a email server using Postfix as the MTA and the users data reside in the OpenLDAP. We used Postfix Virtual Domain configure in Linux Centos 5.
http://www.postfix.org/VIRTUAL_README.html
The problem that bugging us is how to create a mailing list address. For example [email protected] will send email to all the users in the email system.
What we have done.
(1) Create a text file that contain all the email addresses and put it under /etc/postfix or /usr/local/etc/postfix for FreeBSD.
/etc/postfix/all-users.txt
We want to control email that send to [email protected]. The email address [email protected] will be used officialy to send email to all the users but it will be forward to [email protected].
Email will be resend using bcc by email address [email protected]
-------- Postfix main.cf example
I'm setting up a email server using Postfix as the MTA and the users data reside in the OpenLDAP. We used Postfix Virtual Domain configure in Linux Centos 5.
http://www.postfix.org/VIRTUAL_README.html
The problem that bugging us is how to create a mailing list address. For example [email protected] will send email to all the users in the email system.
What we have done.
(1) Create a text file that contain all the email addresses and put it under /etc/postfix or /usr/local/etc/postfix for FreeBSD.
/etc/postfix/all-users.txt
[email protected](2) Add this lines inside /etc/aliases
[email protected]
# all Users(3) Add inside /etc/postfix/virtual
all-users: :include:/etc/postfix/all-users.txt
[email protected] [email protected]
[email protected] all-users
We want to control email that send to [email protected]. The email address [email protected] will be used officialy to send email to all the users but it will be forward to [email protected].
Email will be resend using bcc by email address [email protected]
-------- Postfix main.cf example
# For Virtual Domain harisfazillah.info
virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf
virtual_transport = virtual
virtual_mailbox_base = /var/mail/vmail
virtual_mailbox_limit = 512000000
virtual_mailbox_maps = ldap:/etc/postfix/ldap-mailbox.cf
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_mailbox_domains = harisfazillah.info
virtual_minimum_uid = 1000
virtual_uid_maps = static:2033
virtual_gid_maps = static:548
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes