Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   SMTP problems - Error sending Email via "smtp.glocalnet.net", posted by Michael Ambrus on Mon Jan 12 23:36:17 2009 
    icon3.gif   Re: SMTP problems - Error sending Email via "smtp.glocalnet.net", posted by Michael Ambrus on Tue Jan 13 00:14:37 2009 
       icon2.gif   Re: SMTP problems - Error sending Email via "smtp.glocalnet.net", posted by Michael Ambrus on Wed Jan 14 16:39:38 2009 
          icon2.gif   Re: SMTP problems - Error sending Email via "smtp.glocalnet.net", posted by Stefan Ritt on Tue Jan 20 17:18:06 2009 
Message ID: 66150     Entry time: Wed Jan 14 16:39:38 2009     In reply to: 66148     Reply to this: 66162
Icon: Reply  Author: Michael Ambrus  Author Email: ambrmi09@gmail.com 
Category: Question  OS: Linux  ELOG Version: 2.7.5-2130 
Subject: Re: SMTP problems - Error sending Email via "smtp.glocalnet.net" 

Michael Ambrus wrote:

Michael Ambrus wrote:

Hello, I'm having problems with e-mail notifications.

When I try submitting a new post, I get the following error:

Error sending Email via "smtp.glocalnet.net"

The error message doesn't give a lot of hints...

My config file contains the following lines:

[global]
SMTP host = smtp.glocalnet.net
SMTP username = rhj764h@tninet.se
SMTP Password = xxx

...

[BugZ]

...

Email All = somebody@gmail.com
Use Email From = theproject@kato.homelinux.org

 

The password was created by invoking elogd with the -t option containing the true password. I've tried enter the correct password manually in the config, but the error message is the same.

Below follows a cut&paste of the console output when invoking with the -v option (addresses manually edited to avoid spam):

Email ALL to somebody@gmail.com

timezone: -3600, offset: 3600


Email from theproject@kato.homelinux.org to somebody@gmail.com, SMTP host smtp
.glocalnet.net:
220 mta3.glocalnet.net ESMTP Service ready
EHLO kato.homelinux.org
250-mta3.glocalnet.net
250-DSN
250-8BITMIME
250-PIPELINING
250-HELP
250-AUTH=LOGIN
250-AUTH LOGIN CRAM-MD5 PLAIN
250-X-CP-DELIVER-AFTER
250-DELIVERBY 300
250 SIZE
==== Return ================================
HTTP/1.1 302 Found
Server: ELOG HTTP 2.6.3-1762
Connection: Keep-Alive
Keep-Alive: timeout=60, max=10
Location: http://kato.homelinux.org/elog-tinker/BugZ/6?error=Error+sending+Email
+via+<i>"smtp.glocalnet.net"</i>
Content-Length: 20

I can't make any sense of this. Please advise.

Regards

/Michael Ambrus

 

 

 

 

 

 

An update:

I got rid of the version from the Ubuntu repo and installed the latest source release instead (2.7.5-2130).

 

The error is now a little bit different:

Error sending Email via "smtp.glocalnet.net": Syntax error in parameters or arguments to MAIL command

 

A snippet from the console output:

250-DELIVERBY 300
250 SIZE
AUTH LOGIN
`±è·    ♦Username:
cmhqNzY0aEB0bmluZXQuc2U=
Password:
ajh6N2E4
235 LOGIN authentication successful
MAIL FROM: theproject@kato.homelinux.org
501 Syntax error in parameters or arguments to MAIL command
==== Return ================================

 

BR /Michael

I think I found out what the problem was and e-mail notification now works.

Apparently 'MAIL FROM' syntax used by my ISP expects the address to be within <>.

Adding those in the config file fixes the problem:

Use Email From = <user@domain>

Note that the documentation indicates that the brackets should not be there and I'm not sure if this is a bug or not yet. According to this link the brackets should be there but I think to be consistent with other e-mail related attributes in the config file, they should be added by ELOG.

The 'Email' attibute however seems to work fine without the brackests. I.e.

Email All = user@doman

is OK.

I'm not very familiar with SMTP but I was fiddling around with this some time ago setting up a postfix MT. I eventually succeeded with my ISP, but not with gmail's SMTP. Apperently there are differences with the log-in procedure.

Maybe various differences in login procedure could be handled by allowing ELOG to optionally to use an external program like mailto to handle it's mailing?

SMTP external = 0|1

I think I understand (and actually appreciate) the policy of not depending on external programs. Just a suggestion...

BR

/Michael

ELOG V3.1.5-3fb85fa6