micksheff
18-09-2004, 19:38
I have dowloaded a few perl scripts and most come with an "how to" edit them.
One problem I come across is the path to sendmail which I dont understand.
My host server says that the path to its send mail is /usr/sbin/sendmail
Is there anything I need to change in usr/sbin/sendmail ?
I've just downloaded a script and it says "Where is your sendmail?" and gives me the example /usr/sbin/sendmail but it doesnt work.
Any ideas on what I'm doing wrong?
ncrossland
18-09-2004, 22:18
Your Perl script will probably say something like:
$mailprog = '/usr/sbin/sendmail';
- enter in there the exact path your host gave you (including the initial slash)
When you say it isn't working, do you mean the whole script isn't working, or it just won't send mail?
micksheff
18-09-2004, 22:59
Yes the script is working its just the send mail part, I wonder then if the exact path is something like
$mailprog = '/home/myusername/sbin/sendmail';
but to be honest I'm having an educated guess
Hiya,
I run hosting of a few sites and the sendmail proggie is usually in 'usr/bin/sendmail' or '/usr/sbin/sendmail'.
It would be very unusual for it to be off the 'home' directory.
Do you get any errors back at all? In recent months many hosting companies have modified the way that sendmail runs to force users to provide more information in the headers - anti-spam stuff. If the scripts you're using aren't populating the extra headers then you're likely to get no mail sent.
Has your hosting company got anything in it's FAQ about sendmail?
Joe
ncrossland
19-09-2004, 10:07
No, shouldn't be in your home directory, enter it exactly as they give it to you.
As joe said there could be spam related restrictions (e.g you may be BCCing someone, or there is a limit on the number of recipients, or that particular script has been banned by the host), or if you aren't getting any errors, there could be some DNS problems which means that sendmail is working fine, but the message isn't routing correctly (you could test by sending to another address, e.g. a hotmail one).
There's so many things it could be, you are better off speaking to your hosting company that know how that particular server is set up, and can check error logs, mail queue, etc.
micksheff
19-09-2004, 15:56
Cheers guys I think my host as disabled the use of it.
Glasstop
20-09-2004, 12:36
probbaly /usr/sbin/sendmail
that works for all our customers we host on Linux servers
If you have shell access then type in
which sendmail
And it will give you the path to sendmail - it might be the case that your tech support gave you the wrong path. It might also help if you told us which script you downloaded - sendmail issues can be a SOB to fix.