Koozali.org: home of the SME Server

SME 7 SMTP Server reject my local connection from software

Offline Snoopyski

  • *
  • 141
  • +0/-0
    • http://www.serviceinfosg.com
Hello Everyone.

I have a accounting software that use a smtp server to send paiement report by mail... I used SME 6.01 before and works greate ! BUT now I<m with SME Server 7 and I'm not able anymore to send any mail from my application via the SME SMTP server's !!!

Any idea?

The application give me only those settings:

Proxy server IP:
Proxy Port:
SMTP Server IP:
SMTP Port:
SMTP User:

Thanks for help !

Snoopyski

Offline mdo

  • *
  • 355
  • +0/-0
SME 7 SMTP Server reject my local connection from software
« Reply #1 on: May 17, 2006, 09:01:05 PM »
I would look in the server's log files (qpsmtpd for this one) to see whether there were reasons why the smtp server might not have accepted the incoming mail?
There seems to be standard software out hat does not care much about standard mail format and my guess is your smtp server does not accept the incoming mail.
Michael
...

Offline Snoopyski

  • *
  • 141
  • +0/-0
    • http://www.serviceinfosg.com
SME 7 SMTP Server reject my local connection from software
« Reply #2 on: May 19, 2006, 12:23:05 PM »
Hello,

I really not understand !!! The new server have all exacly same setting from the old one (server IP, server name, Domain name, etc...)

I really think it's a problems with the new security setting from the SME 7

Thanks,

Snoopyski

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
SME 7 SMTP Server reject my local connection from software
« Reply #3 on: May 19, 2006, 02:14:52 PM »
Quote from: "Snoopyski"

I really think it's a problems with the new security setting from the SME 7


SME7 includes new anti-spam features. One of those features refuses mail which is incorrectly formed - in particular, which doesn't include a Date header.

http://bugs.contribs.org/show_bug.cgi?id=492

Offline Snoopyski

  • *
  • 141
  • +0/-0
    • http://www.serviceinfosg.com
SME 7 SMTP Server reject my local connection from software
« Reply #4 on: May 29, 2006, 06:12:51 PM »
Hello Everyone,

I have now access to a log to see whats append...

Quote

2006-05-29 12:01:34.533697500 4445 Accepted connection 0/40 from 192.168.1.107 / pc-00107.serveur.com
2006-05-29 12:01:34.533936500 4445 Connection from pc-00107.serveur.com [192.168.1.107]
2006-05-29 12:01:34.534566500 4445 running plugin (connect): check_earlytalker
2006-05-29 12:01:35.535232500 4445 check_earlytalker plugin: remote host said nothing spontaneous, proceeding
2006-05-29 12:01:35.535555500 4445 Plugin check_earlytalker, hook connect returned DECLINED,
2006-05-29 12:01:35.535730500 4445 running plugin (connect): check_relay
2006-05-29 12:01:35.535998500 4445 trying to get config for relayclients
2006-05-29 12:01:35.536512500 4445 trying to get config for morerelayclients
2006-05-29 12:01:35.536819500 4445 Plugin check_relay, hook connect returned DECLINED,
2006-05-29 12:01:35.536994500 4445 running plugin (connect): check_norelay
2006-05-29 12:01:35.537204500 4445 trying to get config for norelayclients
2006-05-29 12:01:35.537599500 4445 Plugin check_norelay, hook connect returned DECLINED,
2006-05-29 12:01:35.537793500 4445 trying to get config for smtpgreeting
2006-05-29 12:01:35.538028500 4445 trying to get config for me
2006-05-29 12:01:35.538367500 4445 220 serveur.com ESMTP qpsmtpd 0.31.1 ready; send us your mail, but not your spam.
2006-05-29 12:01:35.538605500 4445 trying to get config for timeoutsmtpd
2006-05-29 12:01:35.538830500 4445 trying to get config for timeout
2006-05-29 12:01:35.568060500 4445 dispatching HELO
2006-05-29 12:01:35.568363500 4445 501 helo requires domain/address - see RFC-2821 4.1.1.1
2006-05-29 12:01:35.599237500 4445 dispatching QUIT
2006-05-29 12:01:35.599473500 4445 trying to get config for me
2006-05-29 12:01:35.599639500 4445 221 serveur.com closing connection. Have a wonderful day.
2006-05-29 12:01:35.599818500 4445 click, disconnecting


Somebody know wath's append,

Thanks,

Stéphane

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
SME 7 SMTP Server reject my local connection from software
« Reply #5 on: May 29, 2006, 07:57:23 PM »
Quote from: "Snoopyski"

I have now access to a log to see whats append...

Quote

2006-05-29 12:01:35.568060500 4445 dispatching HELO
2006-05-29 12:01:35.568363500 4445 501 helo requires domain/address - see RFC-2821 4.1.1.1


Somebody know wath's append,


See section 4.1.1.1 in:

http://www.ietf.org/rfc/rfc2821.txt

Your software sent "ehlo" when it is required to say "ehlo some.domain.name". You therefore have a second bug to report in the accounting software.

Offline Snoopyski

  • *
  • 141
  • +0/-0
    • http://www.serviceinfosg.com
SME 7 SMTP Server reject my local connection from software
« Reply #6 on: May 29, 2006, 08:06:27 PM »
Yes sure,

But Why it is working fine with SME 6.0.1 ???

Thanks,

Snoopyski

Offline Snoopyski

  • *
  • 141
  • +0/-0
    • http://www.serviceinfosg.com
SME 7 SMTP Server reject my local connection from software
« Reply #7 on: May 29, 2006, 08:16:41 PM »
Can I do something to "bypass" the problem ?

Because I need a solution ASAP !!! Because a lot of employe's waithing for is pay reports !

Thanks

Snoopyski

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
SME 7 SMTP Server reject my local connection from software
« Reply #8 on: May 29, 2006, 08:38:03 PM »
Quote from: "Snoopyski"

But Why it is working fine with SME 6.0.1 ???


As I said above:

Quote

SME7 includes new anti-spam features.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
SME 7 SMTP Server reject my local connection from software
« Reply #9 on: May 29, 2006, 08:42:19 PM »
Quote from: "Snoopyski"
Can I do something to "bypass" the problem ?


Change lines 144 and 145 of /usr/lib/perl5/site_perl/5.8.5/Qpsmtpd/SMTP.pm from:

  return $self->respond (501,
    "helo requires domain/address - see RFC-2821 4.1.1.1") unless $hello_host;

to:

  #return $self->respond (501,
  #  "helo requires domain/address - see RFC-2821 4.1.1.1") unless $hello_host;

and restart qpsmtpd:

  runsvctrl t /service/qpsmtpd

You can use the editor "pico".

Offline Snoopyski

  • *
  • 141
  • +0/-0
    • http://www.serviceinfosg.com
SME 7 SMTP Server reject my local connection from software
« Reply #10 on: May 30, 2006, 02:47:15 AM »
Hello, I try what you say but same popup error from the software BUT new error log:

Quote

2006-05-29 20:39:58.879653500 6790 trying to get config for me
2006-05-29 20:39:58.879834500 6790 250 serveur.com Hi pc-00107.serveur.com [192.168.1.107]; I am so happy to meet you.
2006-05-29 20:39:58.925724500 6790 dispatching RSET
2006-05-29 20:39:58.926024500 6790 250 OK
2006-05-29 20:39:58.941386500 6790 dispatching MAIL FROM:<jschuler@serveur.com>
2006-05-29 20:39:58.941648500 6790 full from_parameter: FROM:<jschuler@serveur.com>
2006-05-29 20:39:58.941828500 6790 from email address : [<jschuler@serveur.com>]
2006-05-29 20:39:58.942523500 6790 running plugin (mail): require_resolvable_fromhost
2006-05-29 20:39:58.942792500 6790 trying to get config for invalid_resolvable_fromhost
2006-05-29 20:39:58.943317500 6790 trying to get config for require_resolvable_fromhost
2006-05-29 20:39:58.943662500 6790 Plugin require_resolvable_fromhost, hook mail returned DECLINED,
2006-05-29 20:39:58.943814500 6790 running plugin (mail): check_badmailfrom
2006-05-29 20:39:58.944043500 6790 trying to get config for badmailfrom
2006-05-29 20:39:58.944372500 6790 Plugin check_badmailfrom, hook mail returned DECLINED,
2006-05-29 20:39:58.944565500 6790 getting mail from <jschuler@serveur.com>
2006-05-29 20:39:58.944733500 6790 250 <jschuler@serveur.com>, sender OK - how exciting to get mail from you!
2006-05-29 20:39:58.972628500 6790 dispatching RCPT TO:<jschuler@serveur.com>
2006-05-29 20:39:58.972866500 6790 to email address : [<jschuler@serveur.com>]
2006-05-29 20:39:58.973078500 6790 running plugin (rcpt): check_badmailfrom
2006-05-29 20:39:58.973298500 6790 Plugin check_badmailfrom, hook rcpt returned DECLINED,
2006-05-29 20:39:58.973457500 6790 running plugin (rcpt): check_badrcptto_patterns
2006-05-29 20:39:58.973680500 6790 Plugin check_badrcptto_patterns, hook rcpt returned DECLINED,
2006-05-29 20:39:58.973851500 6790 running plugin (rcpt): check_badrcptto
2006-05-29 20:39:58.974059500 6790 Plugin check_badrcptto, hook rcpt returned DECLINED,
2006-05-29 20:39:58.974216500 6790 running plugin (rcpt): rcpt_ok
2006-05-29 20:39:58.974444500 6790 trying to get config for me
2006-05-29 20:39:58.974623500 6790 trying to get config for rcpthosts
2006-05-29 20:39:58.975084500 6790 Plugin rcpt_ok, hook rcpt returned OK,
2006-05-29 20:39:58.975265500 6790 250 <jschuler@serveur.com>, recipient ok
2006-05-29 20:39:59.003861500 6790 dispatching DATA
2006-05-29 20:39:59.004114500 6790 354 go ahead
2006-05-29 20:39:59.004308500 6790 trying to get config for databytes
2006-05-29 20:39:59.004605500 6790 max_size: 0 / size: 0
2006-05-29 20:39:59.004943500 6790 trying to get config for timeout
2006-05-29 20:39:59.035359500 6790 spooling message to disk
2006-05-29 20:39:59.113290500 6790 max_size: 0 / size: 26296
2006-05-29 20:39:59.113366500 Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site_perl/5.8.5/Qpsmtpd/SMTP.pm line 538, <STDIN> line 449.
2006-05-29 20:39:59.113544500 6790 trying to get config for me
2006-05-29 20:39:59.114013500 6790 running plugin (data_post): check_basicheaders
2006-05-29 20:39:59.114378500 6790 Plugin check_basicheaders, hook data_post returned DENY, Mail with no Date header not accepted here
2006-05-29 20:39:59.114544500 6790 552 Mail with no Date header not accepted here
2006-05-29 20:40:00.472796500 6790 dispatching QUIT
2006-05-29 20:40:00.473029500 6790 trying to get config for me
2006-05-29 20:40:00.473198500 6790 221 serveur.com closing connection. Have a wonderful day.
2006-05-29 20:40:00.473388500 6790 click, disconnecting
2006-05-29 20:40:00.843650500 6784 cleaning up after 6790


Any solution... ???

Thanks,

Snoopyski

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
SME 7 SMTP Server reject my local connection from software
« Reply #11 on: May 30, 2006, 03:08:59 AM »
Quote from: "Snoopyski"

2006-05-29 20:39:59.114544500 6790 552 Mail with no Date header not accepted here


The bug report I've already referred you to includes a workaround for that bug in your accounting software.

Offline Snoopyski

  • *
  • 141
  • +0/-0
    • http://www.serviceinfosg.com
SME 7 SMTP Server reject my local connection from software
« Reply #12 on: May 30, 2006, 03:25:41 AM »
OK Thanks CharlieBrady,

It's works NOW !!! :-D  :-D  :-D  :-D

Quote

mkdir -p /etc/e-smith/templates-custom/var/service/qpsmtpd/config/plugins/
cd /etc/e-smith/templates-custom/var/service/qpsmtpd/config/plugins/
touch 17check_basicheaders

Although a little more complex, it might be a good idea to make it obvious in
the output file:

echo "# 17check_basicheaders forcibly disabled" >17check_basicheaders

signal-event email-update


Thanks again,

You save my life  ;-)

Snoopyski

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
SME 7 SMTP Server reject my local connection from software
« Reply #13 on: May 30, 2006, 03:47:26 AM »
Quote from: "Snoopyski"

You save my life  ;-)


Don't forget to donate.

Offline Snoopyski

  • *
  • 141
  • +0/-0
    • http://www.serviceinfosg.com
SME 7 SMTP Server reject my local connection from software
« Reply #14 on: May 30, 2006, 01:50:38 PM »
Yes Thanks !!!

I will donate tomorow...

Have a good day,

Snoopyski