Main Stories
Slash Boxes

Slash Open Source Project

Slashcode Log In

Log In

[ Create a new account ]

Article Poll

Poll I found this article to be
Very Helpful
Helpful
Not Helpful
Not Very Helpful
[ Results | Polls ]
Comments:0 | Votes:0

Email password problem

posted by Krow on 12:53 PM March 6th, 2003   Printer-friendly   Email story
Hi, My site does not seem to send out password emails to new users at all, and also leaves this message in dailystuff.log:
Can't call method "bulkmail" on an undefined value at /usr/lib/perl5/site_perl/5 .8.0/i386-linux-thread-multi/Slash/Utility/System. pm line 168.
I am still relatively a newbie to slash, and I attempted to search for this message - but have seen no ref to it yet. I have also listed the users in mysql to make sure there arent any wierd email addresses.
--
orionrobots
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login
Loading... please wait.
  • Just to clarify - Slashd is running, and I do not get the "Unable to create user". The user actually has a valid entry in the MySQL database, and if I use admin to set the password, can log in no problems. I do not get any email error in bulk-error.log,or bulk-bad.log or slashd.log. I have even gone as far as tracing from users.pl, through slash.pm and into sendmail.pm and still cannot identify it.
    I have checked that port 25 on the host is functioning, and posted test messages that way, and received th
    --
    Show me your robots, I'll show you mine...
  • Right, I think I have an idea what it is, during installation I barfed the site admin address, and it went down as "roo". Not a valid email address.

    So to compound the problem, being a slash newbie, and having reinstalled apache and mod-perl from scratch (having removed the RPM ones) to get slash to work, I was looking in the wrong errorlog, and couldnt find anything.

    I quickly found the right one using a grep -Rlw. So going through utilities/system.pm I fnd the sendmail function is getting the from add
    --
    Show me your robots, I'll show you mine...
    • Maybe this should be a bug- but why does the password mailer not get the from address from the mailfrom var?

      Still trying to figure out where I can change it..
      It appears headline mailings work fine.
      --
      Show me your robots, I'll show you mine...
  • It seems that all the info does actually come from the database, and the constants are initialised from the site_info and the vars.

    The problem I had was a rogue slashd process. So I was stopping slash, then restarting, but no changes were affecting it. So I had to stop apache, slash, and kill the rogue, start it up again - and now it works a treat.

    Meanwhile I have learned a hell of a lot about the slash API and have browsed many of the perl mods. Nice.

    I hope this can help people out - as after reading all the guides, FAQs and stuff, it came down to actually checking my processes on a server thats been up since december.

    BTW- When checking for the slash process- I recommend always using the -l option for ps - otherwise grep wont actually find the slashd bit.

    --
    Show me your robots, I'll show you mine...