我正在编写一个订阅列表程序,可以将电子邮件发送到大量地址列表。我已设法使用自定义“回复”字段设置外发邮件,如下所示:
mail.ReplyToList.Add("reply-to-me@mydomain.com");
这很好用。但我还想要处理的是人们设置度假消息或其他自动应答器。现在,这些回复将转到“回复”地址。我想为自动回复设置一个不同的地址,比如“autoresponder@mydomain.com”。我知道这是可能的,因为像Yahoo Groups这样的讨论列表提供商设法拦截那些非常好的。但是如何?
编辑:这是Yahoo邮件标头的(编辑)示例。此电子邮件来自Yahoo服务器,发送至recipient@domain.com,回复发送至sender@domain.com ...但自动回复/离开办公室消息不 go发送至sender@domain.com;我的猜测是他们去了标题顶部附近的“返回路径”地址(sentto-74624151-351-1308558348-recipient=domain.com@returns.groups.yahoo.com)。但是,如何在发送邮件时将该行添加到SMTP标头?
Delivered-To: recipient@domain.com
Received: by 10.52.161.7 with SMTP id xo7cs8544vdb;
Mon, 20 Jun 2011 01:25:51 -0700 (PDT)
Received: by 10.236.184.134 with SMTP id s6mr5686752yhm.271.1308558351152;
Mon, 20 Jun 2011 01:25:51 -0700 (PDT)
Return-Path: <sentto-74624151-351-1308558348-recipient=domain.com@returns.groups.yahoo.com>
Received: from n40a.bullet.mail.sp1.yahoo.com (n40a.bullet.mail.sp1.yahoo.com [66.163.168.134])
by mx.google.com with SMTP id bd10si13985607icb.130.2011.06.20.01.25.49;
Mon, 20 Jun 2011 01:25:50 -0700 (PDT)
Received-SPF: pass (google.com: manual fallback record for domain of sentto-74624151-351-1308558348-recipient=domain.com@returns.groups.yahoo.com designates 66.163.168.134 as permitted sender) client-ip=66.163.168.134;
Authentication-Results: mx.google.com; spf=pass (google.com: manual fallback record for domain of sentto-74624151-351-1308558348-recipient=domain.com@returns.groups.yahoo.com designates 66.163.168.134 as permitted sender) smtp.mail=sentto-74624151-351-1308558348-recipient=domain.com@returns.groups.yahoo.com; dkim=pass header.i=@yahoogroups.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoogroups.com; s=lima; t=1308558349; bh=TWS7oJzaM8D+kqiNOGoc7ZTZZzJdtRBkRQUFvR4cPoc=; h=Received:Received:X-Yahoo-Newman-Id:Received:Received:Received:DKIM-Signature:Received:Received:Received:X-Sender:X-Apparently-To:X-Received:X-Received:X-Received:X-Received:Message-Id:To:X-Greylist:X-Originating-IP:From:X-eGroups-Approved-By:Sender:MIME-Version:Mailing-List:Delivered-To:List-Id:Precedence:List-Unsubscribe:Date:Subject:X-Yahoo-Newman-Property:Content-Type; b=GjEw2xlAEtRGKcvQgr/KBi86murpN1CfuR3ZQn3hGVnZuNPkbME1cshBe6d/nAnDZvIaynA5uIY+COQ65K6va21b/EP3CZV3HxqBXL68z+NqLeQ2wZekRxxHmqr3QtKw
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lima; d=yahoogroups.com;
b=DuQiSLNxiatDQUGAPVdsPchkteO8MLqgI77xHN/YVtZjwF2CuHpEI2jOaqIfrYRuNHyoLdB1tdux09ne3g3kOgxuUJzKDuVTveJX1thZAh85zm+nY4Yfi9Jk2XTvxKCM;
Received: from [69.147.65.150] by n40.bullet.mail.sp1.yahoo.com with NNFMP; 20 Jun 2011 08:25:49 -0000
Received: from [66.196.94.60] by t7.bullet.mail.sp1.yahoo.com with NNFMP; 20 Jun 2011 08:25:49 -0000
X-Yahoo-Newman-Id: 74624151-m351
Received: (qmail 4862 invoked from network); 20 Jun 2011 08:25:43 -0000
Received: from unknown (66.196.94.106)
by m10.grp.re1.yahoo.com with QMQP; 20 Jun 2011 08:25:43 -0000
Received: from unknown (HELO ng5-ip2.bullet.mail.bf1.yahoo.com) (98.139.165.28)
by mta2.grp.re1.yahoo.com with SMTP; 20 Jun 2011 08:25:43 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoogroups.com; s=lima; t=1308558343; bh=LLk0YVSQWNR1bJTbWtNZJr/n97ny4ZS2B4qKl82nrPg=; h=Received:Received:Received:X-Sender:X-Apparently-To:X-Received:X-Received:X-Received:X-Received:Message-Id:MIME-Version:To:Date:Content-Type:X-Greylist:X-Originating-IP:From:Subject:X-Yahoo-Group-Post:X-YGroups-SubInfo:Sender:X-Yahoo-Newman-Property:X-eGroups-Approved-By:X-eGroups-Auth; b=m0Z2uG7aoojJE9tTdpY/zABz5r0QhXhwFAIghnFAqMqHqeC7QRUqV18xpxsJ0S/W1ZB3/+5vjPaTsWLWNoUTtmzYiq8LIyikU7nMnu94f6xtGoC3BkJjDuwxJNlx+pyk
Received: from [98.139.164.124] by ng5.bullet.mail.bf1.yahoo.com with NNFMP; 20 Jun 2011 08:25:43 -0000
Received: from [69.147.65.150] by tg5.bullet.mail.bf1.yahoo.com with NNFMP; 20 Jun 2011 08:25:43 -0000
Received: from [98.137.34.155] by t7.bullet.mail.sp1.yahoo.com with NNFMP; 20 Jun 2011 08:25:43 -0000
X-Sender: sender@domain.com
X-Apparently-To: listname@yahoogroups.com
X-Received: (qmail 91008 invoked from network); 20 Jun 2011 08:19:21 -0000
X-Received: from unknown (66.196.94.106)
by m17.grp.re1.yahoo.com with QMQP; 20 Jun 2011 08:19:21 -0000
X-Received: from unknown (HELO server.somedomain.com) (1.2.3.4)
by mta2.grp.re1.yahoo.com with SMTP; 20 Jun 2011 08:19:21 -0000
X-Received: from anotherserver (4.3.2.1)
(authenticated bits=0)
by server.somedomain.com (1.2.3.4) with ESMTP id p5K8JKjq020377
for <listname@yahoogroups.com>; Mon, 20 Jun 2011 03:19:21 -0500
Message-Id: <201106200819.p5K8JKjq020377@server.somedomain.com>
To: listname@yahoogroups.com
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3 (someserver.somedomain.com [6.5.4.3]); Mon, 20 Jun 2011 03:19:21 -0500 (CDT)
X-Originating-IP: 8.7.6.5
From: "Mr Sender" <sender@domain.com>
Sender: listname@yahoogroups.com
MIME-Version: 1.0
Mailing-List: list listname@yahoogroups.com; contact listname-owner@yahoogroups.com
Delivered-To: mailing list listname@yahoogroups.com
List-Id: <listname.yahoogroups.com>
Precedence: bulk
List-Unsubscribe: <listname-unsubscribe@yahoogroups.com>
Date: 20 Jun 2011 11:19:23 +0300
Subject: [Listname] test
答案 0 :(得分:3)
通常这是通过在返回时处理邮件来完成的 - 例如,Outlook规则,或者其他什么,SMTP不区分自动响应者和正确的电子邮件。
答案 1 :(得分:0)
对不起,朋友。我不认为SMTP支持这种类型的请求。雅虎很可能通过过滤器在他们的电子邮件服务器中实现这一点,如评论中所述。