问题描述
我已经尝试了这么多东西,没有任何工作。
我有一个域名,没有托管/网络邮件,所以我想将所有内容重定向到我的Gmail帐户。
由于我有一台linux(Lubuntu 13.06)机器运行,我以为我可以配置一个邮件服务器。
这似乎并不那么容易。
我已经将我的mail.domain.com重定向到我的ip,并且端口是开放的(我知道这是因为我曾经从Postfix的电子邮件中收到一条错误消息)
我正在与Postfix一起工作,但是任何其他应用程序都可以被我使用,如果更容易和更简单这样安全。
我按照这个说明,但是没有成功
我在互联网上阅读的所有其他说明都是一样的。
发送测试邮件(不是从接收者)地址,因为这是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 [email protected]
#通过您的isp smtp服务器将所有流量传输到gmail
nano / etc / postfix / transport
gmail.com 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.com 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 successhttp://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 [email protected] # transport all traffic to gmail through your isp smtp server nano /etc/postfix/transport gmail.com smtp:smtp.myisp.nl:25 postmap /etc/postfix/virtual postmap /etc/postfix/transport /etc/init.d/postfix restart
这篇关于Postfix重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!