0

I have installed Postfix and Dovecot on my Raspberry Pi. The Pi is behind the domain scubbo.org. When I send email (from a GMail account, via web) to pi@scubbo.org, the mail is delivered:

pi@raspberrypi /etc/postfix $ whoami
pi
pi@raspberrypi /etc/postfix $ mail
Heirloom mailx version 12.5 6/20/10.  Type ? for help.
"/var/mail/pi": 1 message 1 new
>N  1 Jack Jackson       Sat May 24 00:06   42/1825  This was sent from gmail to pi@scubbo.org

But when I try the same thing to scubbo@scubbo.org, it's not delivered:

pi@raspberrypi /etc/postfix $ su - scubbo
Password:
scubbo@raspberrypi:~$ mail
No mail for scubbo

Any ideas why? There's no special config that I can see for either:

pi@raspberrypi /etc/postfix $ grep -ir 'pi' .
[...only results for "pipe", "recipients", etc...]
pi@raspberrypi /etc/postfix $ grep -ir 'scubbo' .
[...only results for the domain, not the user...]

EDIT:

scubbo
  • 4,969
  • 7
  • 40
  • 71
  • 1
    can you post the output of `postconf -n` and the log lines generated by postfix to help you better. – clement May 24 '14 at 05:52
  • Found the solution (see my answer below) - if you provide an answer, I'll happily accept/upvote it for your help. Thank you! – scubbo May 24 '14 at 10:07

1 Answers1

0

Thanks to @clement suggesting closer reading of logs, I found my answer - I had had an alias set up in user scubbo /etc/aliases, which I'd removed, but I didn't realise I also had to run newaliases. All working now!

scubbo
  • 4,969
  • 7
  • 40
  • 71