in reply to Re: Re: sendmail trouble
in thread sendmail trouble

Don't worry... I wear steel toed sandals here at The Monastary! ;-)

Agreed, and in my at the time caffeine deprived state I read between the lines and came to the conclusion that the trouble the OP was running into was Sendmail barfing on the email address. The only things I can think of that would cause that would be
  1. The address is malformed (not the case IIRC)
  2. The domain doesn't exist or lacks an MX
  3. It is an address from the local domain that is wrong
  4. Stuff I can't think of right now...
In the first two cases Email::Valid is a legitimate tool. I do, however, stand by my answer of using Mail::Send or MIME::Lite instead of piping into sendmail.

Actually this is a case where YMMV depending on a number of factors. I've used the module extensively under all sorts of conditions and for the exceptions of some boundary conditions it has worked well for me. A misconfigured DNS client or server can cause you problems but those issues are out of scope here.


Peter L. Berghold -- Unix Professional
Peter at Berghold dot Net
   Dog trainer, dog agility exhibitor, brewer of fine Belgian style ales. Happiness is a warm, tired, contented dog curled up at your side and a good Belgian ale in your chalice.

Replies are listed 'Best First'.
Re:(4) sendmail trouble
by barrd (Canon) on Sep 05, 2003 at 20:14 UTC
    Don't worry... I wear steel toed sandals here at The Monastary! ;-)
    Good, glad to hear I didn't offend. And I also concur that Mail::Lite (which is my personal choice) is an excellent module to use rather than piping to sendmail (or any other MTA).