in reply to sendmail trouble
In fact that probably means that the problem has nothing to do with your script. The answer quite likely has more to do with the configuration of the mail servers you are sending to. If the machine you are sneding from does not have Reverse-DNS set-up or does not have an MX record pointing to the server that sent the mail then it may be rejected by servers which it attempts to contact.
If your machine is on a dial-up, cable or DSL service then it is also likely to be rejected. Almost certainly if the IP address of the machine is dynamically allocated.
Nobody is 'required' to accept email from anybody, in this era of rampant spam and attacks using email many sys-admins lock down machines so that email is only accepted from machines that have reverse DNS records, statically assigned addresses and possibly that are also findable as a valid MX for the domain in question.
As somebody else suggested - read the mail server logs!
|
|---|