最小的后缀configuration来接收电子邮件

我有do.ma.in与下一个DNSlogging:

do.ma.in A abcd mail.do.ma.in A abcd do.ma.in MX mail.do.ma.in 

我想从mail.google.com收到一封邮件到我的后缀只有一个地址[email protected]或至less到[email protected]

所以,我安装了纯postfix来加工abcd并在/etc/postfix/main.cf编辑了下一个选项:

 myhostname = mail.do.ma.in mydomain =do.ma.in smtpd_recipient_restrictions = permit 

其他设置是默认的。 然后,我完全重新启动postfix后台service postfix restart 。 但是,当我发送邮件到[email protected]我看不到maillog中的任何东西,只有在启动守护进程时生成的“启动”messege:

 Feb 11 19:20:29 CentOSPC postfix/master[16510]: daemon started -- version 2.6.6, configuration /etc/postfix 

postqueue -p也是空的

但是,如果我捕获stream量到25端口tcpdump -vv -x -X -s 1500 -i eth1 'port 25'我看到的东西,当我从Gmail发送邮件(我的主机是192.168.0.48和25端口NAT主机从主机192.168.0.49 ,与abcd有接口):

  192.168.0.49.33301 > 192.168.0.48.smtp: Flags [S], cksum 0x179b (correct), seq 1811629667, win 42900, options [mss 1430,sackOK,TS val 822583720 ecr 0,nop,wscale 7], length 0 0x0000: 4500 003c 107e 0000 2e06 fa8c c0a8 0031 E..<.~.........1 0x0010: c0a8 0030 8215 0019 6bfb 4663 0000 0000 ...0....k.Fc.... 0x0020: a002 a794 179b 0000 0204 0596 0402 080a ................ 0x0030: 3107 a1a8 0000 0000 0103 0307 1........... 19:23:20.492856 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 40) 192.168.0.48.smtp > 192.168.0.49.33301: Flags [R.], cksum 0xf990 (correct), seq 0, ack 1811629668, win 0, length 0 0x0000: 4500 0028 0000 4000 4006 b91e c0a8 0030 E..(..@[email protected] 0x0010: c0a8 0031 0019 8215 0000 0000 6bfb 4664 ...1........k.Fd 0x0020: 5014 0000 f990 0000 P....... 

所以我错过了什么选项需要添加到configuration?

这是postconf -n

 [root@CentOSPC]# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 html_directory = no inet_interfaces = localhost inet_protocols = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost, do.ma.in mydomain = do.ma.in myhostname = mail.do.ma.in newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES sample_directory = /usr/share/doc/postfix-2.6.6/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_recipient_restrictions = permit unknown_local_recipient_reject_code = 550 

您需要为本地交付(在您的情况下,do.ma.in)分配域到main.cf mydestinationvariables

 mydestination = $myhostname, localhost.$mydomain, localhost, do.ma.in