Postfix重定向

编程入门 行业动态 更新时间:2024-10-23 09:37:15
本文介绍了Postfix重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经尝试了这么多东西,没有任何工作。

我有一个域名,没有托管/网络邮件,所以我想将所有内容重定向到我的Gmail帐户。 由于我有一台linux(Lubuntu 13.06)机器运行,我以为我可以配置一个邮件服务器。 这似乎并不那么容易。

我已经将我的mail.domain重定向到我的ip,并且端口是开放的(我知道这是因为我曾经从Postfix的电子邮件中收到一条错误消息)

我正在与Postfix一起工作,但是任何其他应用程序都可以被我使用,如果更容易和更简单这样安全。

我按照这个说明,但是没有成功 www.java-tutorial.ch/ubuntu/forward-all-incoming-email-to-single-address

我在互联网上阅读的所有其他说明都是一样的。

发送测试邮件(不是从接收者)地址,因为这是gmail的环回问题)我没有收到反弹,我的日志文件也是空的,所以没有线索会发生什么。

解决方案>

我已经工作了。 对于所有想要邮件服务器转发邮件的人:

nano / etc / postfix / main .cf inet_protocols = ipv4 myhostname = mydomain.nl virtual_alias_domains = mydomain.nl virtual_alias_maps = hash:/ etc / postfix / virtual transport_maps = hash:/ etc / postfix / transport #捕获你所有的域并发送到gmail nano / etc / postfix / virtual @ mydomain.nl mygmail@gmail #通过您的isp smtp服务器将所有流量传输到gmail nano / etc / postfix / transport gmail smtp:smtp.myisp.nl:25 postmap / etc / postfix / virtual postmap / etc / postfix / transport /etc/init.d/postfix restart

I have tried so much and don't get things working.

I have a domain and no hosting/webmail so I wanted to redirect everything to my gmail account. As I have a linux (Lubuntu 13.06) machine running I thought I could configure a mail server. That seemed not to be so easy.

I have redirected my mail.domain to my ip and the port is open (I know this because while playing about, I once did receive an error message back by email from Postfix)

I am working with Postfix, however any other application is fine by me, if easier and just as safe.

I followed this instructions, however without success www.java-tutorial.ch/ubuntu/forward-all-incoming-email-to-single-address

All other instructions I read on the internet were alike.

When sending a test email (not from receiver address as this is a loopback issue with gmail) I do not receive a bounce and my log files are also empty so no clue what happens.

解决方案

I've got it working now. For everyone who also wants a mail server just for forwarding mail:

nano /etc/postfix/main.cf inet_protocols = ipv4 myhostname = mydomain.nl virtual_alias_domains = mydomain.nl virtual_alias_maps = hash:/etc/postfix/virtual transport_maps = hash:/etc/postfix/transport # catch all on your domain and send to gmail nano /etc/postfix/virtual @mydomain.nl mygmail@gmail # transport all traffic to gmail through your isp smtp server nano /etc/postfix/transport gmail smtp:smtp.myisp.nl:25 postmap /etc/postfix/virtual postmap /etc/postfix/transport /etc/init.d/postfix restart

更多推荐

Postfix重定向

本文发布于:2023-10-13 00:07:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1486258.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:重定向   Postfix

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!