in reply to Re: Sendmail problems
in thread Sendmail problems

Hi tachyon,

Thanks for your reply, yes, I started to go a bit overboard with 'sysopen'. I have modified the code as you suggested

open(SENDMAIL, '|/usr/sbin/sendmail -oi -t') or do{ unlink($outfile); diehtml("Can't fork for sendmail: $!\n")};

and the explanation helped a lot to get a better idea of this. You will then be doing this:

print SENDMAIL $msg close SENDMAIL;

Yes, there are pages of text, just beforehand though, is this

print SENDMAIL <<"EOF";

.. and at the end

EOF close(SENDMAIL) or warn "sendmail didn't close nicely";

I have PRINT instaed of the 'warn'. I actually added the 'warn' lines as you suggested, but they didn't appear. That just could be because, for testing, I'm just hitting the BACK button twice, because I'm lazy and don't want to fill in all those details on the order form again. What I'm saying is, even though I changed the Perl script, uploaded it, it may not have ben 'reloaded' in the browser. Hmm, that's not true, I have added extra 'prints' in the last few days, and they appeared immediately.

Anyway, onto SSH access and sendmail; now I'm _really_ confused, here's the output

---------------------------------

which sendmail

which: no sendmail in (/usr/local/bin:/bin:/usr/bin)

/usr/sbin/sendmail -t

2003-10-03 04:03:17 Exim configuration error in line 783:

user mailman was not found

----------------------------------

.... but in the CPanel it says

Path to sendmail /usr/sbin/sendmail

and I run FormMail.pl (NMS version) on 2 domains on the same server, without any problems ? NMS have this line though

L<CGI::NMS::Mailer::Sendmail>

... so it looks like they have their own 'sendmail' modules, is that right ? Looks like I'd better post to the Help Desk where the server is. :)

Thanks a lot,

Peter

Replies are listed 'Best First'.
Re: Re: Re: Sendmail problems
by idsfa (Vicar) on Oct 03, 2003 at 04:44 UTC

    Welcome to "compatibility". Your Linux box does not even have sendmail installed. It has exim, which is a perfectly fine email system that can pretend to be sendmail for many purposes. (This is another reason I always try to use Net::SMTP ... I *know* I'm always getting the same interface).

    Further, it looks like your exim has configuration problems. Someone with root access needs to run eximconfig(8) and get it working properly before you have a chance to make your scripts work ...


    Remember, when you stare long into the abyss, you could have been home eating ice cream.