I re-installed a fresh clean Debian 8 on my VPS.
All is set up to default values.
dpkg -s exim4
and dpkg -s postfix
says that exim is not installed, and that postfix is installed. This is confirmed by lsof -i :25
which shows a PID 478, then ps p 478
shows 478 ? Ss 0:00 /usr/lib/postfix/master
.
I haven't done apt-get install postfix
, it seems that it has been installed by default.
I've already done a DNS MX record for example.com
by my registrar, directing it my server.
I just sent an email from my Gmail to root@example.com
.
I still see
No mail
when doing$ mail
.How to see if something has arrived to postfix?
Is there a configuration to do on a fresh new Debian install to accept emails from internet?
Should I create the mailbox
root
locally, to accept mail arriving from external mailers toroot@example.com
?
Here is the result of iptables
(unmodified, default configuration):
root@blah:~# iptables -nvL
Chain INPUT (policy ACCEPT 77135 packets, 50M bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 2 packets, 120 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 66416 packets, 11M bytes)
pkts bytes target prot opt in out source destination
I see now in cat /var/log/mail.log
this:
Nov 22 11:57:32 blah postfix/smtpd[10485]: connect from mail-ua0-f171.google.com[209.85.xxx.xxx]
Nov 22 11:57:32 blah postfix/smtpd[10485]: NOQUEUE: reject: RCPT from mail-ua0-f171.google.com[209.85.xxx.xxx]: 454 4.7.1 <root@example.com>: Relay access denied; from=<user@gmail.com> to=<root@example.com> proto=ESMTP helo=<mail-ua0-f171.google.com>
Nov 22 11:57:32 blah postfix/smtpd[10485]: disconnect from mail-ua0-f171.google.com[209.85.xxx.xxx]