Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x00x02
TWiki plugins: DefaultPlugin, SpreadSheetPlugin, BlackListPlugin, CalendarPlugin, CommentPlugin, EditTablePlugin, HeadlinesPlugin, InterwikiPlugin, NavbarPlugin, RandomTopicPlugin, RedirectPlugin, RenderListPlugin, SessionPlugin, SlideShowPlugin, SmiliesPlugin, SpacedWikiWordPlugin, TWikiDrawPlugin, TablePlugin, TextSectionPlugin, ThreadedDiscussionPlugin, ToolTipPlugin, TouchGraphPlugin, VisualConfirmPlugin.
Server OS: SuSE Linux 9.1
Web server: Apache/2.0.54 (Unix)
Perl version: v5.8.6 built for i586-linux-thread-multi
Client OS: Windoze XP Pro
Web Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4
Categories: Mail

-- KeithHelfrich - 20 Jun 2006

Answer

ALERT! 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 smile

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

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2006-06-25 - KeithHelfrich
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.