1 (edited by Rashef 2009-05-29 14:50:10)

Topic: Errors from SMTP

Hi,
after some days of use, my users noticed two recurring errors from SMTP server:

This is an exampe of the first one:

"This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  john.doe@firstdomain.com
    (ultimately generated from john.doe@aliasdomain.com)
    SMTP error from remote mail server after RCPT
TO:<john.doe@firstdomain.com>:
    host mail.firstdomain.com [xxx.xxx.xxx.xxx]: 553 5.7.1
<richard.miles@seconddomain.com>:
    Sender address rejected: not logged in"

Some explanation: aliasdomain.com is an external domain (shared host server) that forward all mail to the corresponding account of my server. Both firstdomain.com and seconddomain.com are set as virtual domain of my server. This error occurs when a user with an account on my server try to send an email to an extarnal address which forward to another address of my server.

The second error:

" The mail system

<a.smith@domain.it>: lost connection with
    mail.provider.it[195.110.124.132] while performing the HELO handshake

<s.anderson@domain.it>: lost connection with
    mail.provider.it[195.110.124.132] while performing the HELO handshake"

The same error occurr with domains other than domain.it, but all seems to be hosted by "provider.it". Do you think there is something similar to a blacklist?

Thanks in advance
Mirko

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Errors from SMTP

Some explanation: aliasdomain.com is an external domain (shared host server) that forward all mail to the corresponding account of my server.

Append the ip address of this server to 'mynetworks' in postfix main.cf.

The second error:

Still confused why it happened. Sorry sad

3 (edited by danzup 2009-05-29 17:45:04)

Re: Errors from SMTP

I have also received this error for the client using outlook when there was not set : My server requested authentications     on Outgoing Server tab in the  account settings .
After setting this  : no problems !

4

Re: Errors from SMTP

Could this have something to do with:

"Reporting-MTA: dns; localhost.localdomain
X-iRedMail-Queue-ID: A8D1598003A2
X-iRedMail-Sender: rfc822; sender@mydomain.it
Arrival-Date: Thu, 28 May 2009 14:52:09 +0200 (CEST)

Final-Recipient: rfc822; receiver@externaldomain.it
Original-Recipient: rfc822;receiver@externaldomain.it
Action: failed
Status: 4.4.2
Diagnostic-Code: X-iRedMail; lost connection with
    mail.register.it[195.110.124.132] while performing the HELO handshake"

5

Re: Errors from SMTP

Rashef wrote:

Could this have something to do with:

"Reporting-MTA: dns; localhost.localdomain"

Still me... How can I check which hostname my server uses for HELO handshake?
Because this problem could be caused by an incorrect hostname...

I tried with telnet... If I use my current system hostname everything works. Otherwise:

HELO localhost.localdomain
553-5.7.1 sorry, your helo or ehlo is incorrect
553-5.7.1 hm let me see ...
553-5.7.1 hm does it look good ?
553-5.7.1 No! You are a bad guy!
553 5.7.1 sorry, your helo or ehlo is incorrect
Connection closed by foreign host.

6 (edited by Rashef 2009-06-06 21:35:51)

Re: Errors from SMTP

I checked and it seems that I correctly set hostname and /etc/hosts and /etc/sysconfig/network during installation process...
At now everything seems to work 'cause I set

relayhost = [my.isp.smtp]

in main.cf... sad

7

Re: Errors from SMTP

Rashef wrote:

How can I check which hostname my server uses for HELO handshake?

Reference: http://www.postfix.org/postconf.5.html#smtp_helo_name
Default is $myhostname.

8

Re: Errors from SMTP

ZhangHuangbin wrote:
Rashef wrote:

How can I check which hostname my server uses for HELO handshake?

Reference: http://www.postfix.org/postconf.5.html#smtp_helo_name
Default is $myhostname.

So I need to uncomment (and fill in) those lines since they are commented in main.cf... Thanks

9

Re: Errors from SMTP

ZhangHuangbin wrote:
Rashef wrote:

How can I check which hostname my server uses for HELO handshake?

Reference: http://www.postfix.org/postconf.5.html#smtp_helo_name
Default is $myhostname.

I finally find the error AND the solution:

Jun 22 11:04:07 node1 postfix/smtp[18570]: < mail.register.it[195.110.124.132]:25: 220 smtp.register.it
Jun 22 11:04:07 node1 postfix/smtp[18570]: > mail.register.it[195.110.124.132]:25: EHLO localhost.localdomain
Jun 22 11:04:08 node1 postfix/smtp[18570]: < mail.register.it[195.110.124.132]:25: 553-5.7.1 sorry, your helo or ehlo is incorrect
Jun 22 11:04:08 node1 postfix/smtp[18570]: < mail.register.it[195.110.124.132]:25: 553-5.7.1 hm let me see ...
Jun 22 11:04:09 node1 postfix/smtp[18570]: < mail.register.it[195.110.124.132]:25: 553-5.7.1 hm does it look good ?
Jun 22 11:04:10 node1 postfix/smtp[18570]: < mail.register.it[195.110.124.132]:25: 553-5.7.1 No! You are a bad guy!
Jun 22 11:04:11 node1 postfix/smtp[18570]: < mail.register.it[195.110.124.132]:25: 553 5.7.1 sorry, your helo or ehlo is incorrect
Jun 22 11:04:11 node1 postfix/smtp[18570]: > mail.register.it[195.110.124.132]:25: HELO localhost.localdomain

I didn't noticed that into main.cf all the variables were repeated at the EOF... I uncommented and configured myhostname, but it was also present at the end of file. And postfix ignored the first one.

Thank you all

10

Re: Errors from SMTP

My issues where solved after adding the spf and dkim records on the dns server.

11

Re: Errors from SMTP

SMTP server error: 5.7.1 <bangalore .i@gmail.com>: Relay access denied
Hi i am also getting same error can some assist me on this
postfix/trivial-rewrite[954]: warning: do not list domain example.com in BOTH mydestination and virtual_mailbox_domainsJul 12 16:26:06 example postfix/smtpd[951]: NOQUEUE: reject: RCPT from ind                                                                                    example.com[123.201.xx.xx]: 554 5.7.1 <bangalore@gmail.com>: Relay                                                                                         access denied; from=<info@example.com> to=<bangalore@gmail.com>                                                                                         proto=ESMTP helo=<mail.example.com>
Jul 12 16:26:06 example postfix/smtpd[951]: lost connection after RCPT fro                                                                                        m example.com[123.201.xx.xx]

12

Re: Errors from SMTP

Hi sateesh.huvinahalli,

First of all, please create new topic to ask your question instead of hijacking other's.

Your issue is clear in log message:

warning: do not list domain example.com in BOTH mydestination and virtual_mailbox_domains