Set up your own mail server on Fedora (4)

Source: Internet
Author: User
server | mail server

1. The configuration is mainly main.cf.
Virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
Virtual_gid_maps = static:12345
Virtual_mailbox_base =/usr/local/virtual
Virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
Virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
Virtual_mailbox_limit = 51200000
Virtual_minimum_uid = 12345
Virtual_transport = Virtual
Virtual_uid_maps = static:12345

Smtpd_sasl_auth_enable = yes
#smtpd_sasl_local_domain = $myhostname
Smtpd_recipient_restrictions = Permit_mynetworks permit_sasl_authenticated permit_auth_destination reject
Smtpd_sasl_security_options = noanonymous
Smtpd_client_restrictions = permit_sasl_authenticated
Broken_sasl_auth_clients = yes

2. Mysql_virtual_alias_maps.cf as follows

user = Postfix
Password = postfix
hosts = localhost
dbname = Postfix
Table = Alias
Select_field = Goto
Where_field = Username

3. Mysql_virtual_domains_maps.cf as follows

user = Postfix
Password = postfix
hosts = localhost
dbname = Postfix
Table = Domain
Select_field = description
Where_field = Domain

4. Mysql_virtual_mailbox_maps.cf as follows

user = Postfix
Password = postfix
hosts = localhost
dbname = Postfix
Table = Mailbox
Select_field = Maildir
Where_field = Username

The username used here is tester, only used to test the port used, the formal use must use the full name tester@lansemail.com.
Otherwise the letter will not be received, the information below

Unable to reach the following recipients:

' Tester@lansemail.com ', Time for 21/11/2003 13:05
450 <tester@lansemail.com>: User unknown in local recipient table

B.[root@localhost postfix]# telnet localhost 25



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.