ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Valentin Nechayev <netch@netch.kiev.ua>
To: community@altlinux.ru
Subject: Re: [Comm] Postfix - smtp - HELO
Date: Wed, 30 Oct 2002 14:25:04 +0200
Message-ID: <20021030122503.GG40639@netch.kiev.ua> (raw)
In-Reply-To: <69650833.20021028100854@mail.ru>

 Mon, Oct 28, 2002 at 10:08:54, abmagic wrote about "[Comm] Postfix - smtp - HELO": 

> Установил Postfix (дистрибутив - Master 2.0)
> Такая проблема: клиент подключается по SMTP и говорит: "HELO",
> на что Postfix отвечает: bad syntax - не "HELO", а "HELO hostname".
> А клиент не может представиться по полной...
> 
> Вопрос: можно ли сделать так, чтобы Postfix ничего не требовал после
> HELO?

Примените этот патч.

--- smtpd.c.orig	Fri Dec 15 18:07:07 2000
+++ smtpd.c	Thu Dec 28 14:58:43 2000
@@ -383,6 +383,8 @@
     char   *err;
 
     if (argc < 2) {
+        if( !var_helo_required )
+            goto L1;
 	state->error_mask |= MAIL_ERROR_PROTOCOL;
 	smtpd_chat_reply(state, "501 Syntax: HELO hostname");
 	return (-1);
@@ -398,6 +400,7 @@
 	return (-1);
     }
     state->helo_name = mystrdup(printable(argv[1].strval, '?'));
+L1:
     state->protocol = "SMTP";
     smtpd_chat_reply(state, "250 %s", var_myhostname);
     return (0);
@@ -410,6 +413,8 @@
     char   *err;
 
     if (argc < 2) {
+        if( !var_helo_required )
+            goto L1;
 	state->error_mask |= MAIL_ERROR_PROTOCOL;
 	smtpd_chat_reply(state, "501 Syntax: EHLO hostname");
 	return (-1);
@@ -429,6 +434,7 @@
 	return (-1);
     }
     state->helo_name = mystrdup(printable(argv[1].strval, '?'));
+L1:
     state->protocol = "ESMTP";
     smtpd_chat_reply(state, "250-%s", var_myhostname);
     smtpd_chat_reply(state, "250-PIPELINING");


/netch


  parent reply	other threads:[~2002-10-30 12:25 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-23 11:50 [Comm] dcop kmail Alexander Mayorov
2002-10-23 17:54 ` Vitaly Lipatov
2002-10-23 19:42   ` Alexander Mayorov
2002-10-24  3:28     ` Re[2]: " ASA
2002-10-28  7:08     ` [Comm] Postfix - smtp - HELO Alex Borisov
2002-10-28  9:37       ` Igor Homyakov
2002-10-28 10:40         ` Re[2]: " Alex Borisov
2002-10-28 11:44           ` Igor Homyakov
2002-10-30 12:25       ` Valentin Nechayev [this message]
2002-10-30 20:16         ` [JT][Comm] " jellyfish
2002-10-31  8:20           ` Ilia Menchikh
2002-10-31  9:03             ` Re[2]: " Alex Borisov
2002-11-01 18:14             ` Valentin Nechayev
2002-10-31 10:21           ` Igor Homyakov
2002-11-01 18:13           ` Valentin Nechayev
2002-11-04 19:15             ` jellyfish

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021030122503.GG40639@netch.kiev.ua \
    --to=netch@netch.kiev.ua \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git