Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Error Sending Email, posted by Ibrahim Genc on Thu Oct 12 16:22:40 2006 
    icon2.gif   Re: Error Sending Email, posted by Stefan Ritt on Thu Oct 12 16:34:07 2006 
       icon2.gif   Re: Error Sending Email, posted by Ibrahim Genc on Thu Oct 12 17:42:37 2006 
       icon2.gif   Re: Error Sending Email, posted by Ibrahim Genc on Fri Oct 13 23:17:05 2006 
          icon2.gif   Re: Error Sending Email, posted by Stefan Ritt on Mon Oct 16 08:57:07 2006 
             icon2.gif   Re: Error Sending Email, posted by An Thai on Wed Oct 25 17:20:27 2006 
Message ID: 1985     Entry time: Thu Oct 12 16:34:07 2006     In reply to: 1984     Reply to this: 1986   1988
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Question  OS: Windows  ELOG Version: 2.6.2-1722 
Subject: Re: Error Sending Email 

Ibrahim Genc wrote:
I get error message after submitting a message


Your verbose output seems to be only partial. I have modified the verbose output recently, so please update to a more recent version of elog. With 2.6.2-3 I get for example
Email from stefan.ritt@psi.ch to stefan.ritt@psi.ch, SMTP host xxx.psi.ch:
220 xxx.psi.ch xxxvs01 Thu, 12 Oct 2006 16:25:17 +0200
HELO xxx.psi.ch
250 xxx.psi.ch Hello [129.129.xxx.xxx]
MAIL FROM: stefan.ritt@psi.ch
250 2.1.0 stefan.ritt@psi.ch....Sender OK
RCPT TO: <stefan.ritt@psi.ch>
250 2.1.5 stefan.ritt@psi.ch
RCPT TO: <stefan.ritt@psi.ch>
250 2.1.5 stefan.ritt@psi.ch
DATA
354 Start mail input; end with <CRLF>.<CRLF>
Date: Thu, 12 Oct 2006 16:25:17 +0200
To: "Stefan Ritt" <stefan.ritt@psi.ch>
From: Stefan Ritt <stefan.ritt@psi.ch>
User-Agent: Elog Version 2.6.2
Subject: Updated ELOG entry
X-Elog-URL: http://localhost:8080/demo/1
X-Elog-submit-type: web|elog
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

... here comes the complete email body ....

.
250 2.6.0 <xxx.psi.ch> Queued mail for delivery
QUIT
221 2.0.0 xxx.psi.ch Service closing transmission channel
==== Return ================================
HTTP/1.1 302 Found
Server: ELOG HTTP 2.6.2-1724
Connection: Keep-Alive
Keep-Alive: timeout=60, max=10
Content-Length: 20

This is of course without SMTP username. Our mail server does not support SMTP username, so I programmed this kind of "blindly".



Ibrahim Genc wrote:
Another question is; Can I change the port number of the smtp server? Some servers use another port than 25.


All server I met so far were running on port 25, so I hardcoded this in elogd.c. You can change it in the source code at line 2119:
bind_addr.sin_port = htons((short) 25);

If more people ask for this, I can make it a parameter.
ELOG V3.1.5-fe60aaf