Postfix email service configuration and application 2

Source: Internet
Author: User
Postfix email service configuration and application 2-Linux Enterprise Application-Linux server application information. The following is a detailed description. Virtual alias domain settings
Using the virtual alias domain, you can actually send emails sent to the virtual domain to the user's mailbox in the real domain; you can implement the group mail function, that is, specify a virtual mail address, any email sent to this email address will be automatically forwarded by the email server to the mailbox of a group of users in the real domain. The virtual domain here can be a nonexistent domain, and the real domain can be a local region (that is, main. the domain specified by the mydestination parameter in the cf file), or remote or internet domain. A virtual domain is a real alias. In fact, a virtual alias table is used to redirect the email address from a virtual domain to a real domain.
Vi/etc/postfix/main. cf
Edit virtual_alias_domains = dzxx.cn, jackie.com
Virtual_alias_maps = hash:/etc/postfix/virtual
Here, virtual_alias_domains is used to specify the name of the virtual alias domain.
Virtual_alias_maps is used to specify the file path that contains the virtual alias domain definition.
Vi/etc/postfix/virtual
@ Dzxx.cn @ jackie.com
Admin@jackie.com lbt
St0321@jackie.com st0321001, st0321002...
Daliu@jackie.com lbt, liu@163.com
After these two files are modified, execute the commands in the/usr/sbin directory respectively.
Postmap/etc/postfix/virtual generate database files that can be read by postfix/etc/postfix/virtual. db
Postfix reload main. cf main configuration file
User alias settings
The most important feature of using user aliases is to implement the group mail (also called the mail list) function, it can forward emails sent to an alias email address to the mailboxes of multiple real users.
In practical application, the example configuration is as follows:
1. Open the postfix main configuration file/etc/postfix/main. cf, and check that the file contains the following two default statements.
Alias_maps = hash:/etc/aliases is used to specify the file path that contains the user alias.
Alias_database = hash:/etc/aliases specifies the path of the database file in the alias table.
2. Edit the configuration file/etc/aliases
St0322: st0322001, st0322002 ,.....
St0323: include:/etc/mail/st0323 do not forget to edit the/etc/mail/st0323 file.
3. postalias/etc/aliases
Postfix reload
Note: This method is only applicable to root users. to implement your own mail list, you should create a. forward file in the user directory. For details, see relevant information.

[ This post was last edited by jackiesr at, 2007-3-2]
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.