Koozali.org: home of the SME Server

smtp error with outlook

Offline eastend99

  • ***
  • 48
  • +0/-0
smtp error with outlook
« on: May 16, 2007, 08:42:29 PM »
Hello,

I have a problem sending email with outlook (2003 and 2007).
Everything works as expected except outgoing mail. I used the 'check email settings' feature in outlook and it returned an error on sending mail. This is part of the qpsmtp log file:
    2007-05-16 19:36:59.265803500 8934 250-mydomain.org Hi pc-00196.mydomain.org [10.0.0.196]
    2007-05-16 19:36:59.266108500 8934 250-PIPELINING
    2007-05-16 19:36:59.266318500 8934 250-8BITMIME
    2007-05-16 19:36:59.266502500 8934 250 SIZE 15000000
    2007-05-16 19:36:59.429101500 8934 dispatching MAIL FROM: <me@mydomain.org>
    2007-05-16 19:36:59.429108500 8934 full from_parameter: FROM: <me@mydomain.org>
    2007-05-16 19:36:59.429113500 8934 from email address : [<me@mydomain.org>]
    2007-05-16 19:36:59.429117500 8934 running plugin (mail): check_badmailfrom
    2007-05-16 19:36:59.430421500 8934 trying to get config for badmailfrom
    2007-05-16 19:36:59.430448500 8934 Plugin check_badmailfrom, hook mail returned DECLINED,
    2007-05-16 19:36:59.430453500 8934 getting mail from <me@mydomain.org>
    2007-05-16 19:36:59.430457500 8934 250 <me@mydomain.org>, sender OK - how exciting to get mail from you!
    2007-05-16 19:36:59.431268500 8934 dispatching RCPT TO: <me@mydomain.org>
    2007-05-16 19:36:59.431737500 8934 to email address : [<me@mydomain.org>]
    2007-05-16 19:36:59.432083500 8934 running plugin (rcpt): check_badmailfrom
    2007-05-16 19:36:59.432430500 8934 Plugin check_badmailfrom, hook rcpt returned DECLINED,
    2007-05-16 19:36:59.432624500 8934 running plugin (rcpt): check_badrcptto_patterns
    2007-05-16 19:36:59.432998500 8934 Plugin check_badrcptto_patterns, hook rcpt returned DECLINED,
    2007-05-16 19:36:59.433865500 8934 running plugin (rcpt): check_badrcptto
    2007-05-16 19:36:59.434294500 8934 Plugin check_badrcptto, hook rcpt returned DECLINED,
    2007-05-16 19:36:59.434506500 8934 running plugin (rcpt): check_goodrcptto
    2007-05-16 19:36:59.434823500 8934 Plugin check_goodrcptto, hook rcpt returned DECLINED,
    2007-05-16 19:36:59.435011500 8934 running plugin (rcpt): rcpt_ok
    2007-05-16 19:36:59.435309500 8934 trying to get config for me
    2007-05-16 19:36:59.435520500 8934 trying to get config for rcpthosts
    2007-05-16 19:36:59.437132500 8934 Plugin rcpt_ok, hook rcpt returned OK,
    2007-05-16 19:36:59.437432500 8934 250 <me@mydomain.org>, recipient ok
    2007-05-16 19:36:59.438577500 8934 dispatching DATA
    2007-05-16 19:36:59.439034500 8934 354 go ahead
    2007-05-16 19:36:59.439408500 8934 trying to get config for databytes
    2007-05-16 19:36:59.439672500 8934 max_size: 15000000 / size: 0
    2007-05-16 19:36:59.440366500 8934 trying to get config for timeout
    2007-05-16 19:36:59.441366500 8934 spooling message to disk
    2007-05-16 19:36:59.483093500 8934 max_size: 15000000 / size: 422
    2007-05-16 19:36:59.483100500 8934 trying to get config for me
    2007-05-16 19:36:59.483105500 8934 running plugin (data_post): check_basicheaders
    2007-05-16 19:36:59.483109500 8934 Plugin check_basicheaders, hook data_post returned DENY, Mail with no Date header not accepted here
    2007-05-16 19:36:59.483114500 8934 552 Mail with no Date header not accepted here
    2007-05-16 19:37:00.234486500 3945 cleaning up after 8934


My interpretation is that Outlook does not send a "date header".
The client that the email is sent from is synchronized, the OS is the normal WinXP pro. If I use my providers SMTP server directly, everything works fine.  

This topic is the only reference I can find http://forums.contribs.org/index.php?topic=36846.0 but the problem is unanswered.

Can someone explain what the "check_basicheaders" plugin does?
I am pretty sure I am not the first person that uses outlook and the SME server (7.1.3 in server-only mode) for sending email. Is it possible the check_basicheaders plugin is misconfigured on my server ?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: smtp error with outlook
« Reply #1 on: May 16, 2007, 09:11:37 PM »
Quote from: "eastend99"

My interpretation is that Outlook does not send a "date header".


Correct. Outlook is broken. A date header is mandatory.

Quote

I am pretty sure I am not the first person that uses outlook and the SME server


Correct. Hence, if you search here, you will find that your question has been answered already.

Offline mmccarn

  • *
  • 2,656
  • +10/-0
smtp error with outlook
« Reply #2 on: May 18, 2007, 02:10:14 PM »
Quote from: "/usr/share/qpsmtpd/plugins/check_basicheaders"
check_basicheaders - Make sure both From and Date headers are present, and
do optional range checking on the Date header


The email message created by outlook when you use the 'test settings' button does not contain a date header.  If you perform the same tests manually (send yourself a message, then reply to it...) it should work fine.

You can disable "check_basicheaders" as described in this post: http://forums.contribs.org/index.php?topic=34260.0.  Be sure to read the whole post as some info changed with the 7.1.3 updates...