Postfix can be configured as mail forwarding domains server using virtual_alias_maps settings. There are two type of configurations here.
Postfix Mail Forwarding Domains
This is useful if you do not have local mailboxes and server is not acting as MX backup (do not use the following if relay_domains sql map or virtual map is configured). The main purpose of these domains is to forward mail elsewhere. The following example shows how to set up cyberciti.com as a mail forwarding domain. Open main.cf file, enter:
# vi /etc/postfix/main.cf
Make sure following two line exists:
virtual_alias_domains = cyberciti.com
# virtual_alias_domains = cyberciti.com example.com moredomains.com ..
virtual_alias_maps = hash:/etc/postfix/virtual
Open /etc/postfix/virtual file, enter:
# vi /etc/postfix/virtual
Forward email sent to vivek@cyberciti.com to vivek@nixcraft.co.in:
vivek@cyberciti.com vivek@nixcraft.co.in
You can also implement a catch-all address i.e. email sent to tom@example.com and jerry@example.com should be forwarded to somewhereelse@another.domain.com
@example.com somewhereelse@another.domain.com
Save and close the file. Type the following command to restart postfix:
# postmap /etc/postfix/virtual
# service postfix reload
分享到:
相关推荐
postfix extmail extman sasl imap mysql apache
Postfix安装配置 Postfix安装配置 Postfix安装配置 Postfix安装配置 Postfix安装配置 Postfix安装配置
postfix权威指南,O’Reilly系列丛书,POSTFIX权威指南中文版,文字版,排版与原书保持一致。全面了解postfix的绝对好书。 想要自己架设邮件服务器吗?如果sendmail让你头痛万分,现在你有更好的选择 —— Postfix...
Postfix的队列管理器 投递操作 实际追踪Postfix的邮件处理流程 第四章 基本的配置与管理 第一次启动Postfix 配置文件 重要的考虑事项 管理 master.cf 收信限制 改写地址格式 改变根目录(chroot) 在线说明书 第五章...
邮件系统postfix安装与配置(含配制详解) 邮件系统postfix安装与配置 一、 postfix概述 postfix是Wietse Venema在IBM的GPL协议之下开发的MTA(邮件传输 代理)软件。下面一段话摘自postfix的官方站点...
Postfix配置文件main.cf中常用参数介绍
linux下邮件服务的配置,mysql+PHP+postfix+gd
postfix 配置pdf文档 postfix 配置pdf文档 postfix 配置pdf文档
postfix权威指南(中文版)
redhat6的postfix的基础配置,可以实现基础的邮件传送和接收功能
整理了好长时间才整理出来的postfix全功能邮件服务搭建
postfix邮件服务器配置详解与错误解析,希望对大家有所帮助哦
POSTFIX安装和配置,ExtMail Solution HOWTO for Linux,图文教程
如何编译、安装Postfix?如何用Postfix架设一台简单的邮件服务器?如何架设网域邮件网关?如何架设备用服务器?DNS与邮件系统的关系为何?mbox与maildir这两种邮箱格式有何不同?如何用同一台机器架设多个网域的邮件服务器...
Postfix配置文件和命令,很好的配置说明,希望能大家帮助
POSTFIX权威指南
POSTFIX 安装于配置 邮件传输代理(MTA) WebMail 系统 Web 账户管理后台 邮件投递代理(MDA) 其它数据认证库 SMTP 认证库 POP3 认证库
总是下载CSDN上的资源,觉得应该分享一点,不知道是不是已经有了。讲解Postfix的书。
postfix配置参数,帮助邮件搭建者解决搭建过程中的种种困惑
目前对 postfix 介绍最权威,最全面的书。简体中文,如果你需要使用 postfix 这是必经之路