Where is the postfix Mail Delivery Status Report?
14,455
Solution 1
The message you posted says the Mail Delivery Status Report will be mailed to <root>
.
I would check the root user's mail which by default should be /var/spool/mail/root
.
Solution 2
I found it helpful to use sendmail with -f
option, like so:
echo "Subject: sendmail test" | sendmail -f [email protected] -v [email protected]
-f
sets the envelope sender address. This is the address where delivery problems are sent to.
Related videos on Youtube
Author by
Dave
Updated on September 18, 2022Comments
-
Dave almost 2 years
I'm using CentOS 7. I wanted to test my PostFix mail forwarding so I ran
[root@server /]# echo "Subject: sendmail test" | sendmail -v [email protected] Mail Delivery Status Report will be mailed to <root>.
I don't see the email received at my forwarding address and I can't figure out where the log of what happened is. I checked
[root@server /]# ls -al /var/log/maillog -rw------- 1 root root 0 Mar 6 09:48 /var/log/maillog
But that log file is empty. How do I find out where things went wrong?
-
inspirednz over 3 yearsThis at least generated an email to the error address. Although the email has no content, so it didn't help me identify why sendmail doesn't send a message to the desired test address. Any suggestions?
-
not2savvy over 3 years@inspirednz It should actually come with an error message. Did you check the message headers?