Log location

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
5/19/2008 1:50:46 AM
Gravatar
Total Posts 30

Log location

Is there a default location for the log files?  I am using openSUSE and nothing is logged in /var/log, I didn't notice any option in Web.config but that doesn't mean my eyesight isn't failing me

I need to get hold of the logs, as I am unable to use the contact form at the momnent and I can't work out why (hopefully the logs will explain).

5/19/2008 6:26:41 AM
Gravatar
Total Posts 18439

Re: Log location

You can view the log in (key icon) Administration > System Log, or you can find the raw log file at ~/Data/currentlog.config, its not a config file, the .config extension is just used to protect the log file.

The Contact Form should have a link to "View Messages" if you are logged in and this should allow you to receive messages even if smtp is not configured correctly.

Hope it helps,

Joe

5/19/2008 7:35:17 AM
Gravatar
Total Posts 30

Re: Log location

Excellent, thanks for that Joe.  Now why did I not think of looking under the Admin Control Panel!!

It does indeed give a clue as to why the contact form isn't working:

2008-05-19 12:34:33,251 [-1413088368] ERROR mojoPortal.Web.mojoBasePage [(null)] - 504 Unrecognized authentication type
2008-05-19 12:34:33,263 [-1413088368] ERROR mojoPortal.Web.Global [(null)] - 192.168.0.4-en-GB - /mojoportal/contact.aspx?pageid=10
504 Unrecognized authentication type

My mail server uses standard port 25 and login with username/password which I have set up in Web.config  Any ideas what the unrecognized auth type is?

5/19/2008 1:29:45 PM
Gravatar
Total Posts 18439

Re: Log location

It can be pretty tricky getting the smtp configured correctly especially if using Yahoo or Google to send the mail. I know I struggled with it for a while before I got the right combination for Yahoo. Their documentation is sometimes incorrect in some places it indicates one port and in others they indicate a different port. My settings that work for Yahoo are like this:

<add key="SMTPServer" value="smtp.bizmail.yahoo.com" />
<add key="SMTPRequiresAuthentication" value="true" />
<add key="SMTPPort" value="587" />
<add key="SMTPUser" value="foo@foo.com" />
<add key="SMTPPassword" value="foo123" />
<add key="SMTPUseSsl" value="false" />

actual user and password changed to protect the innocent.

Yahoo instructions say to use SSL but it only worked for me when it was set to false. So sometimes you have try settings that don't seem right according to the documentation.

Hope it helps,

Joe

5/19/2008 1:33:28 PM
Gravatar
Total Posts 18439

Re: Log location

Another thing to keep in mind is a lot of ISP's block port 25, so if I try to test using smtp on my local machine to send email it doesn't work because my ISP blocks it. I think thats why email providers like Yahoo and google switched to alternate ports, otherwise things like Outlook wouldn't work because so many consumer ISPs like cable companies block port 25 to prevent spammers.

Best,

Joe

5/19/2008 3:18:48 PM
Gravatar
Total Posts 30

Re: Log location

Thanks for that Joe.

I actually have my own mail server (hosted on a different machine on the same subnet) using Zimbra and I know that port 25 is available for me. My settings are:

<add key="SMTPServer" value="mail.server.org" />
<add key="SMTPRequiresAuthentication" value="true" />
<add key="SMTPUseSsl" value="false" />
<add key="SMTPPort" value="25" />
<add key="SMTPUser" value="user" />
<add key="SMTPPassword" value="password" />
<add key="SMTPTimeoutInMilliseconds" value="15000" />

 

I also have:

<mailSettings>
<smtp from="noreply@server.org">
<network
host="mail.server.org"
port="25"
password="password"
userName="user"
/>
</smtp>
</mailSettings>
 

They are the settings that I use in any of the MUAs (Thunderbird, Evolution, Kmail, Outlook, etc) so I'm slightly puzzled as to why it doesn't work.

The logs of the mail server show:

May 19 21:11:09 vulcan postfix/smtpd[18194]: initializing the server-side TLS engine
May 19 21:11:10 vulcan postfix/smtpd[18194]: connect from unknown[192.168.0.11]
May 19 21:11:10 vulcan postfix/smtpd[18194]: lost connection after EHLO from unknown[192.168.0.11]
May 19 21:11:10 vulcan postfix/smtpd[18194]: disconnect from unknown[192.168.0.11]

This is with and without ssl.

You must sign in to post in the forums. This thread is closed to new posts.