I got a dead simple script for testing sending email from my local machine:
#!/usr/bin/env perl print "Sending email to $ARGV\n"; my $result = system qq(echo "Hello World" | mail -s "Test email" $ARGV); print $result . "\n";
It works when I send to one particular email address but not to another and I can't figure out why. I get no error from the mail command in the script and it return "0" as expected. What I've done:
I checked /var/log/mail.log of the receiving machine and there is no trace of the email getting received.
I checked my /var/mail/me file on my local machine and it hasn't bounced.
I searched all the files in /var/log on my local machine and there's no trace of it there, either.
I checked that the local machine resolves to the correct IP of the email address I'm trying to send to.
Not sure where else to look on my local machine to figure out what happened to it. I'd like to search the outgoing mail logs but I don't know where they are. Any ideas?