Author Topic: Problem with sending mails over smtp  (Read 3898 times)

Offline Namru

  • Newbie
  • *
  • Posts: 1
Problem with sending mails over smtp
« on: August 10, 2007, 02:37:05 AM »
Hello to all,
I use rc v. 0.1-rc1 with dovecot 1.0.3 and exim 4.67

IMAP works fine but when i try to send an email i don't work, to both internal and external addresses.

tail logs/errors tells me this:
[10-Aug-2007 07:59:00 +0200] SMTP Error: SMTP error: Connection failed: Failed to connect socket: in /home/lighttpd/html/XXXX/mail/program/steps/mail/sendmail.inc on line 340

tail /var/log/exim/rejectlog tells me this:
2007-08-10 07:58:26 SMTP protocol synchronization error (input sent without waiting for greeting): rejected connection from H=domain.com [12.345.67.89] input="\200j\001\003\001"


I try to find a working solution for this.
I only found this: $rcmail_config['smtp_server'] = '';
Then rc use the phpmail function and not the right way over the smtp server.
Mails now come from the user that running the webserver but this can only be shown in detailed mail header.


Because i think this is not the best solution i start to search for another way.
I found problems with over mail clients / sender like Lotus Domino Server that produced an log entry like my in the exim log.

I think thats the same problem: rc is not waiting for the 250 from the server after HELO before sending MAIL FROM
and this produced the sync. error between rc and exim



I hope another user or a dev can fix it



best regards

Namru

Offline crow

  • Newbie
  • *
  • Posts: 1
Re: Problem with sending mails over smtp
« Reply #1 on: August 30, 2007, 05:44:44 AM »
Hi,
I just got the same error for sending email trought smtp. I did try to use ssl also and changed ssl port but nothing.
I am also runing exim.
Any suggestion from pros?

When i try: "telnet mail.mydomain.com 25" i got this:
Quote
220-ns.mydomain.com ESMTP Exim 4.66 #1 Thu, 30 Aug 2007 11:51:06 +0200
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.

Some sendmail option from phpinfo();
Quote
sendmail_from   no value   no value
sendmail_path   /usr/sbin/sendmail -t -i   /usr/sbin/sendmail -t -i
Path to sendmail    /usr/sbin/sendmail -t -i
Thnx