Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8023

Troubleshooting • postmaster@raspberrypi, NXDOMAIN error

$
0
0
I have installed mailx and it works well for me.

However, like other people around here, I have the problem of cron and others sending mails to postmaster@raspberrypi and failing.

Final-Recipient: rfc822; postmaster@raspberrypi
Action: failed
Status: 5.1.2
Diagnostic-Code: smtp; DNS Error: DNS type 'mx' lookup of raspberrypi responded with code NXDOMAIN
Domain name not found: raspberrypi For more information, go to https://support.google.com/mail/?p=BadRcptDomain

I read the aliases solution to this but it does not seem to work for me. I tried to install postfix but it screwed up my mailx so I reverted to not having it installed. (BTW postmaster did nto solve my problem). I am looking for a solution without postfix or postfix cohabitation with mailx (which I have no idea how to set)

So:

I can send mail with mailx and it works, e.g.

echo " test" | mailx -r "name@gmail.com (SomeNametoDisplay)" -s "SomeSubject" destination@gmai.com

I am using mailx for several things - UPS, backups, unattended-updates etc so I do nto want to lose that.

However, I also get the postmaster@raspberry pi error. The complaint seems to be about domain raspberrypi not existing.

I cannot add an alias in /etc/aliases because sudo newaliases tells me that "Aliases are not used in sSMTP"

I feel there is a simple solution to redirecting postmaster to another of my mail addresses but I have no idea how to do it.

Any help please? I know a bit about Raspberry Pi but I mostly use Copy Paster and modify for my purposes, sometimes not understanding 100% what some code does. I have mailutils installed:

mailcap/stable,stable,now 3.70+nmu1 all [installed,automatic]
mailutils-common/stable,stable,now 1:3.15-4 all [installed,automatic]
mailutils/stable,now 1:3.15-4 arm64 [installed]

All I want is to redirect those mails to one of my other accounts.... so as to avoid these mail delivery subsystem <mailer-daemon@googlemail.com> mail delivery errors

Many Thanks!

PS just did a test :

echo "This is a test email to postmaster" | mailx -s "Test Email" postmaster

and got exactly the same error as for the cron messages.

Statistics: Posted by advarp — Thu Jul 03, 2025 1:33 am



Viewing all articles
Browse latest Browse all 8023

Trending Articles