0
votes

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 [email protected], 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 [email protected]

But when I try the same thing to [email protected], 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:

1
can you post the output of postconf -n and the log lines generated by postfix to help you better. - clement
Found the solution (see my answer below) - if you provide an answer, I'll happily accept/upvote it for your help. Thank you! - scubbo

1 Answers

0
votes

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!