Question
Does anyone know where can I find more information about
why Net:Smtp can't connect ?
Is there a perl output file ? An additional log or messages file to be found anywhere ?
The
WebNotify call ends with this error :
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Sending mail notification to: email.address@domain.com
* ERROR: Can't send mail using Net::SMTP (can't connect to 'mailServerIP')
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This is the latest in my efforts to re-build my
TWikiSite inside of a chroot jail.
Mails sent through the mailServerIP are received correctly when sent from outside the jail. So it's something about being locked in that prevents
WebNotify from notifying successfully.
Even though it's now possible to select between
Net::SMTP and
sendmail (details in
SendmailPerlSmtpSwitch), I don't have
sendmail working from inside of the chroot jail, either. To get sendmail working would require a
long trip down library lane. So I'm hoping it will be easier to get
Net:Smtp working.
So far, I've gotten the
KoalaSkin to work, and (thanks to Sven)
RcsLite. For details see
ChrootingTWiki and
NoDiffsInJail.
Hopefully this
WebNotify problem is the last.
Environment
--
KeithHelfrich - 20 Jun 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
hey Keith
have you tried just doing a
telnet mailServerIP 25 from a shell inside the chroot? if that works, then the next step might be more complex (especially as i cna't think of one that doesn't involve some test code)
--
SvenDowideit - 23 Jun 2006
I got this to work with a bit of clever twikery. My
mailnotify script now runs from a cron job outside of the jail and uses
sendmail from the real host instead of
Net:Smtp (as described in
SendmailPerlSmtpSwitch)
To get the
mailnotify script to run from a root that is "above" the one twiki runs in, I made these two changes :
1. In
../tiwiki/bin/setlib.cfg :
-
$localPerlLibPath = '/ultimate/path/to/twiki/lib';
- this gives the mailnotify script a valid path in it's @INC
when run from outside of the jail
At this point,
mailnotify runs but cannot find the data directories because it's looking for them in the relative path (as if the mailnotify had been run from inside of the chroot jail)
2. create a soft link outside of the jail to give the mailnotify script a way to find the data directories
--
KeithHelfrich - 25 Jun 2006