teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

9

修正

2019/02/06 15:03

投稿

tk_flavor
tk_flavor

スコア104

title CHANGED
File without changes
body CHANGED
@@ -28,47 +28,28 @@
28
28
 
29
29
  ■auキャリア宛メール送信⇒test@mail.example.jpに返信⇒test@example.comに転送
30
30
 
31
-
32
31
  ```ここに言語を入力
33
32
  ■mail.example.jp⇒auキャリア宛メール送信
34
33
  Feb 5 13:29:59 mailserver01 postfix/cleanup[1264]: E2ED0C5270E: message-id=<20190205042959.E2ED0C5270E@mail.example.jp>
35
-
36
34
  Feb 5 13:29:59 mailserver01 opendkim[1089]: E2ED0C5270E: DKIM-Signature field added (s=20190117, d=mail.example.jp)
37
-
38
35
  Feb 5 13:30:00 mailserver01 postfix/qmgr[26631]: E2ED0C5270E: from=<support@mail.example.jp>, size=1391, nrcpt=1 (queue active)
39
-
40
36
  Feb 5 13:30:00 mailserver01 amavis[77266]: (77266-01) Passed CLEAN {RelayedOutbound}, MYNETS LOCAL [**.**.**.**]:51716 <support@mail.example.jp> -> <abc@ezweb.ne.jp>, Queue-ID: 329F0C5270C, mail_id: Q61yBWbSIT2Z, Hits: -0.86, size: 779, queued_as: E2ED0C5270E, 1721 ms
41
-
42
37
  Feb 5 13:30:00 mailserver01 postfix/smtp[1265]: 329F0C5270C: to=<abc@ezweb.ne.jp>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.8, delays=0.09/0.01/0.01/1.7, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as E2ED0C5270E)
43
-
44
38
  Feb 5 13:30:00 mailserver01 postfix/qmgr[26631]: 329F0C5270C: removed
45
-
46
39
  Feb 5 13:30:00 mailserver01 postfix/smtp[1276]: E2ED0C5270E: to=<abc@ezweb.ne.jp>, relay=lsean.ezweb.ne.jp[***.**.***.***]:25, delay=0.22, delays=0.09/0.01/0.09/0.04, dsn=2.0.0, status=sent (250 Ok: queued as 1C4AFCE)
47
40
  ```
48
41
 
49
-
50
-
51
-
52
42
  ```ここに言語を入力
53
43
  ■auキャリア宛メール⇒test@mail.example.jpに返信⇒test@example.comに転送
54
44
  Feb 5 13:30:13 mailserver01 postfix/smtpd[20863]: connect from localhost[127.0.0.1]
55
-
56
45
  Feb 5 13:30:13 mailserver01 postfix/smtpd[20863]: BE826C5270E: client=localhost[127.0.0.1]
57
-
58
46
  Feb 5 13:30:13 mailserver01 postfix/cleanup[20854]: BE826C5270E: message-id=<2019proxy09.ezweb.ne.jp>
59
-
60
47
  Feb 5 13:30:13 mailserver01 opendkim[1058]: BE826C5270E: no signing table match for 'abc@ezweb.ne.jp'
61
-
62
48
  Feb 5 13:30:13 mailserver01 opendkim[1058]: BE826C5270E: no signature data
63
-
64
49
  Feb 5 13:30:13 mailserver01 postfix/qmgr[46328]: BE826C5270E: from=<support@mail.example.jp>, size=1332, nrcpt=1 (queue active)
65
-
66
50
  Feb 5 13:30:13 mailserver01 amavis[99888]: (99888-01) Passed CLEAN {RelayedOpenRelay}, [***.**.***.**]:3862 [**.***.**.**] <support@mail.example.jp> -> <test@example.com>, Queue-ID: 129C1C5270C, Message-ID: <2019proxy09.ezweb.ne.jp>, mail_id: wh1F6zkehPCM, Hits: 2.932, size: 791, queued_as: BE826C5270E, 1697 ms
67
-
68
51
  Feb 5 13:30:13 mailserver01 postfix/smtp[20856]: 129C1C5270C: to=<test@example.com>, orig_to=<test@mail.example.jp>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.8, delays=0.1/0.01/0.01/1.7, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as BE826C5270E)
69
-
70
52
  Feb 5 13:30:13 mailserver01 postfix/qmgr[46328]: 129C1C5270C: removed
71
-
72
53
  Feb 5 13:30:16 mailserver01 postfix/smtp[20865]: BE826C5270E: to=<test@example.com>, relay=example.com.mail.eo.outlook.com[***.**.**.**]:25, delay=2.6, delays=0.08/0.01/0.36/2.1, dsn=2.6.0, status=sent (250 2.6.0 <2019proxy09.ezweb.ne.jp> [InternalId=19683835119297, Hostname=TY***.prod.outlook.com] 8912 bytes in 0.304, 28.612 KB/sec Queued mail for delivery)
73
54
 
74
55
  Feb 5 13:30:16 mailserver01 postfix/qmgr[46328]: BE826C5270E: removed
@@ -124,9 +105,8 @@
124
105
  9g0w==
125
106
  X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
126
107
  d=1e100.net; s=20161025;
108
+ ````
127
109
 
128
- ```
129
-
130
110
  auから返信されたメールをtest@example.comに宛ての迷惑ボックスに転送された時のヘッダ情報は下記となります
131
111
 
132
112
  ```ここに言語を入力
@@ -190,16 +170,11 @@
190
170
 
191
171
  ```
192
172
 
193
-
194
- ---
195
-
196
-
197
173
  ~~virtual_alias_maps = hash:/etc/postfix/virtualでの転送設定でも当該事象は解消されませんでした。~~
198
174
 
199
175
  また、https://blog.jicoman.info/2014/09/postfix_aliases_envelope_from/
200
176
  のように、
201
177
 
202
-
203
178
  ```ここに言語を入力
204
179
  virtual_alias_maps = regexp:/etc/postfix/recipient_canonical.regexp
205
180
  /etc/postfix/sender_canonical.regexp
@@ -208,4 +183,17 @@
208
183
  を設定をしましたが、
209
184
  mail.example.jpのメールサーバからabc@ezweb.ne.jp宛てのキャリア向けに送信しようとすると、
210
185
  このメールサーバ内でabcユーザのドメインをexample.comドメインに書き換えてしまい、
211
- example.comにはabcユーザがいない事でbounceになってしまいます。
186
+ example.comにはabcユーザがいない事でbounceになってしまいます。
187
+
188
+ -------------------------------
189
+
190
+ **2/7 追記**
191
+
192
+ opendkim.confにRemoveOldSignatures yes の設定を入れました。
193
+
194
+ ```ここに言語を入力
195
+ # 20190206 ADD
196
+ RemoveOldSignatures yes
197
+ ```
198
+
199
+ RemoveOldSignatures設定を入れる事で私のau宛てのメールアドレスから返信してOFFICE365側に転送すると10通中8通は受信ボックスに格納されるようになりましたが、docomo.ne.jp i.softnbanl.jpからの返信はスパム扱いのままです

8

修正

2019/02/06 15:02

投稿

tk_flavor
tk_flavor

スコア104

title CHANGED
File without changes
body CHANGED
@@ -194,7 +194,7 @@
194
194
  ---
195
195
 
196
196
 
197
- virtual_alias_maps = hash:/etc/postfix/virtualでの転送設定でも当該事象は解消されませんでした。
197
+ ~~virtual_alias_maps = hash:/etc/postfix/virtualでの転送設定でも当該事象は解消されませんでした。~~
198
198
 
199
199
  また、https://blog.jicoman.info/2014/09/postfix_aliases_envelope_from/
200
200
  のように、

7

説明修正

2019/02/06 01:18

投稿

tk_flavor
tk_flavor

スコア104

title CHANGED
File without changes
body CHANGED
@@ -206,6 +206,6 @@
206
206
  ```
207
207
 
208
208
  を設定をしましたが、
209
- mail.example.jpのメールサーバからabc@ezweb.ne.j宛てのキャリア向けに送信しようとすると、
209
+ mail.example.jpのメールサーバからabc@ezweb.ne.jp宛てのキャリア向けに送信しようとすると、
210
210
  このメールサーバ内でabcユーザのドメインをexample.comドメインに書き換えてしまい、
211
211
  example.comにはabcユーザがいない事でbounceになってしまいます。

6

追記

2019/02/05 17:53

投稿

tk_flavor
tk_flavor

スコア104

title CHANGED
File without changes
body CHANGED
@@ -75,7 +75,7 @@
75
75
  ```
76
76
 
77
77
 
78
- - 2/6 追記
78
+ - **2/6 追記**
79
79
 
80
80
  gmail.comから返信されたメールをtest@example.comに宛ての受信ボックスに転送された時のヘッダ情報は下記となります
81
81
 

5

内容修正

2019/02/05 17:52

投稿

tk_flavor
tk_flavor

スコア104

title CHANGED
File without changes
body CHANGED
@@ -74,9 +74,126 @@
74
74
  Feb 5 13:30:16 mailserver01 postfix/qmgr[46328]: BE826C5270E: removed
75
75
  ```
76
76
 
77
+
78
+ - 2/6 追記
79
+
80
+ gmail.comから返信されたメールをtest@example.comに宛ての受信ボックスに転送された時のヘッダ情報は下記となります
81
+
82
+ ```ここに言語を入力
83
+ Authentication-Results: spf=pass (sender IP is **.**.**.**)
84
+ smtp.mailfrom=mail.example.jp; example.jp; dkim=pass (signature
85
+ was verified) header.d=gmail.com;example.jp; dmarc=pass action=none
86
+ header.from=gmail.com;compauth=pass reason=100
87
+ Received-SPF: Pass (protection.outlook.com: domain of
88
+ mail.example.jp designates **.**.**.** as permitted sender)
89
+ receiver=protection.outlook.com; client-ip=**.**.**.**;
90
+ helo=mail.example.jp;
91
+ Received: from mail.example.jp (**.**.**.**) by
92
+ OS2JPN01FT014.mail.protection.outlook.com (**.**.**.**) with Microsoft
93
+ SMTP Server id 15.20.1580.10 via Frontend Transport; Mon, 4 Feb 2019 03:27:16
94
+ +0000
95
+
96
+ Received: by mail.example.jp (Postfix)
97
+ id D680BC5270F; Mon, 4 Feb 2019 12:27:15 +0900 (JST)
98
+ Delivered-To: test-sender@mail.example.jp
99
+ Received: from localhost (localhost [127.0.0.1])
100
+ by mail.example.jp (Postfix) with ESMTP id BDC75C5270E
101
+ for <test-sender@mail.example.jp>; Mon, 4 Feb 2019 12:27:15 +0900 (JST)
102
+ DKIM-Filter: OpenDKIM Filter v2.11.0 mail.example.jp BDC75C5270E
103
+ Authentication-Results-Original: mail.example.jp; dkim=pass
104
+ (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FQTsoxTx"
105
+ X-Virus-Scanned: amavisd-new at mail.example.jp
106
+ Authentication-Results-Original: mailserver01.example.jp (amavisd-new);
107
+ dkim=pass (2048-bit key) header.d=gmail.com
108
+ Received: from mail.example.jp ([127.0.0.1])
109
+ by localhost (mailserver01.example.jp [127.0.0.1]) (amavisd-new, port 10024)
110
+ with ESMTP id 0jv0lMK8BnWF
111
+ for <test-sender@mail.example.jp>;
112
+ Mon, 4 Feb 2019 12:27:15 +0900 (JST)
113
+ Received: from mail-oi1-f174.google.com (mail-oi1-f174.google.com [**.**.**.**])
114
+ by mail.example.jp (Postfix) with ESMTP id DA4ADC5270C
115
+ for <test-sender@mail.example.jp>; Mon, 4 Feb 2019 12:27:14 +0900 (JST)
116
+ DKIM-Filter: OpenDKIM Filter v2.11.0 mail.example.jp DA4ADC5270C
117
+ Received: by mail-oi1-f174.google.com with SMTP id y23so10393548oia.4
118
+ for <test-sender@mail.example.jp>; Sun, 03 Feb 2019 19:27:14 -0800 (PST)
119
+ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
120
+ d=gmail.com; s=20161025;
121
+ h=mime-version:in-reply-to:references:from:date:message-id:subject:to;
122
+ bh=4*****************************=;
123
+ ******************************************************
124
+ 9g0w==
125
+ X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
126
+ d=1e100.net; s=20161025;
127
+
128
+ ```
129
+
130
+ auから返信されたメールをtest@example.comに宛ての迷惑ボックスに転送された時のヘッダ情報は下記となります
131
+
132
+ ```ここに言語を入力
133
+ このメッセージはスパムと判定されました。29 日後に削除されます。 スパムではありません
134
+
135
+ ラベル: Junk Email (30 日) 有効期限: 2019/03/06 (水) 20:35
136
+ abc@ezweb.ne.jp
137
+ 2019/02/04 (月) 20:35
138
+ Test
139
+
140
+ Received: from HK****:.****.outlook.com (2******)
141
+ by HK****:.****.outlook.com with HTTPS via
142
+ **********.OUTLOOK.COM; Mon, 4 Feb 2019 11:35:07 +0000
143
+ Received: from ***********.outlook.com (****)
144
+ by ********.outlook.com (*****) with
145
+ Microsoft SMTP Server (version=TLS1_2,
146
+ cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1580.17; Mon, 4 Feb
147
+ 2019 11:35:06 +0000
148
+ Received: from ***********.outlook.com
149
+ (*********) by ********.office365.com
150
+ (*****) with Microsoft SMTP Server (version=TLS1_2,
151
+ cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1580.17 via Frontend
152
+ Transport; Mon, 4 Feb 2019 11:35:05 +0000
153
+ Authentication-Results: spf=pass (sender IP is ***.***.**.**)
154
+ smtp.mailfrom=mail.example.jp; example.jp; dkim=none (message
155
+ not signed) header.d=none;example.jp; dmarc=fail action=none
156
+ header.from=ezweb.ne.jp;compauth=fail reason=001
157
+ Received-SPF: Pass (****.outlook.com: domain of
158
+ mail.example.jp designates ***.**.**.** as permitted sender)
159
+ receiver=****.outlook.com; client-ip=***.**.**.**;
160
+ helo=mail.example.jp;
161
+ Received: from mail.example.jp (***.**.**.**) by
162
+ *****.outlook.com (***.**.**.**) with Microsoft
163
+ SMTP Server id 15.20.1580.10 via Frontend Transport; Mon, 4 Feb 2019 11:35:05
164
+ +0000
165
+ Received: from localhost (localhost [127.0.0.1])
166
+ by mail.example.jp (Postfix) with ESMTP id B2136C5270E
167
+ for <test@example.com>; Mon, 4 Feb 2019 20:35:04 +0900 (JST)
168
+ DKIM-Filter: OpenDKIM Filter v2.11.0 mail.example.jp B2136C5270E
169
+ X-Virus-Scanned: amavisd-new at mail.example.jp
170
+ Received: from mail.example.jp ([127.0.0.1])
171
+ by localhost (mailserver01.example.jp [127.0.0.1]) (amavisd-new, port 10024)
172
+ with ESMTP id 8sonWnwK4MOR for <test@example.com>;
173
+ Mon, 4 Feb 2019 20:35:04 +0900 (JST)
174
+ Received: from ezweb.ne.jp (nx3oBP05-10.ezweb.ne.jp [***.***.**.***])
175
+ by mail.example.jp (Postfix) with ESMTP id 1E339C5270C
176
+ for <test-sender@mail.example.jp>; Mon, 4 Feb 2019 20:35:04 +0900 (JST)
177
+ DKIM-Filter: OpenDKIM Filter v2.11.0 mail.example.jp 1E339C5270C
178
+ Received: from mm01proxy07 (localhost [127.0.0.1])
179
+ by au.com with ESMTP id x14BZ3cF031103
180
+ for <test-sender@mail.example.jp>; Mon, 4 Feb 2019 20:35:03 +0900
181
+ Date: Mon, 4 Feb 2019 20:35:03 +0900
182
+ From: <abc@ezweb.ne.jp>
183
+ To: <test-sender@mail.example.jp>
184
+ Message-ID: <20*******1proxy07.ezweb.ne.jp>
185
+ Subject: Reply
186
+ MIME-Version: 1.0
187
+ Content-Type: text/plain; charset="US-ASCII"
188
+ Content-Transfer-Encoding: 7bit
189
+ Return-Path: support@mail.example.jp
190
+
191
+ ```
192
+
193
+
77
194
  ---
78
- 2/6 追記
79
195
 
196
+
80
197
  virtual_alias_maps = hash:/etc/postfix/virtualでの転送設定でも当該事象は解消されませんでした。
81
198
 
82
199
  また、https://blog.jicoman.info/2014/09/postfix_aliases_envelope_from/

4

修正

2019/02/05 17:51

投稿

tk_flavor
tk_flavor

スコア104

title CHANGED
File without changes
body CHANGED
@@ -50,7 +50,7 @@
50
50
 
51
51
 
52
52
  ```ここに言語を入力
53
- ■auキャリア宛メール送信⇒test@mail.example.jpに返信⇒test@example.comに転送
53
+ ■auキャリア宛メール⇒test@mail.example.jpに返信⇒test@example.comに転送
54
54
  Feb 5 13:30:13 mailserver01 postfix/smtpd[20863]: connect from localhost[127.0.0.1]
55
55
 
56
56
  Feb 5 13:30:13 mailserver01 postfix/smtpd[20863]: BE826C5270E: client=localhost[127.0.0.1]

3

内容修正

2019/02/05 17:10

投稿

tk_flavor
tk_flavor

スコア104

title CHANGED
File without changes
body CHANGED
@@ -2,35 +2,93 @@
2
2
 
3
3
  送信専用のメールサーバのドメインが@**mail.example.jp**です
4
4
  送信する際にsender_canonical_mapsで
5
- Return-Pathsupport@mail.example.jpのsupportアカウントに変えてメールを送っています。
5
+ Return-Pathsupport@mail.example.jpのsupportアカウントに変えてメールを送っています。
6
6
 
7
7
  このメールサーバからdocomo.ne.jp i.softbank.jp ezweb.ne.jp宛てのキャリア向けアドレスにメール送信を行います。
8
8
  受信したキャリアメールを送信アドレスに返信します。
9
9
  返信されたメールは元の送信専用メールサーバに到着し、/etc/aliasで指定されたアカウントメールを
10
- **mail.example.com**の別ドメインに転送するようにしています。
10
+ OFFICE365側にある**example.com**の別ドメインに転送するようにしています。
11
- アカウント@mail.example.com向けに転送されますが、DKIM設定で、no signing table matchとなり、
12
- アカウントの受信ボックスでなく、迷惑フォルダに入ってくる事が問題になっています。
13
- キャリアから返信されたメールをsender_canonical_mapsで送信専用のメールサーバドメインに置き換えて、転送する事は可能なのでしょうか
14
11
 
15
- この時、キャリアメールから受信メール対して返信を行い、送信専用のメールサーバからtest@mail.example.comに転送した時のログで
12
+ この時、OFFICE365側あるアカウント@example.com向けに転送されまが、迷惑フォルダに入ってくる事が問題になっています。
13
+ メールログを見ると、DKIM設定で、no signing table matchのログが確認出来ます。
16
14
 
15
+ ですが、gmail.com、yahoo.co.jp宛てに送信したメールから返信されたメールについては
16
+ aliasesでexample.comに転送され、受信ボックスに格納されてきます
17
+
18
+ gmail.com、yahoo.co.jpから返信したメールの転送時は受信ボックスに格納され、
19
+ 携帯キャリアからの返信メールの転送時は迷惑ボックスに格納されるのかが不明となっています。
20
+
21
+
22
+ キャリアメールから受信メールに対して返信を行い、送信専用のメールサーバからtest@example.comに転送した時のログです
23
+
24
+ また、本サーバ構成を添付しますのでご参照ください
25
+
26
+ ![イメージ説明](3e2829b75049a95a1dd969f4598fe15c.png)
27
+
28
+
29
+ ■auキャリア宛メール送信⇒test@mail.example.jpに返信⇒test@example.comに転送
30
+
31
+
17
32
  ```ここに言語を入力
33
+ ■mail.example.jp⇒auキャリア宛メール送信
18
- Feb 1 10:24:07 mailserver01 postfix/cleanup[27673]: 8848DC5270E: message-id=<2019020****@mm04***.ezweb.ne.jp>
34
+ Feb 5 13:29:59 mailserver01 postfix/cleanup[1264]: E2ED0C5270E: message-id=<20190205042959.E2ED0C5270E@mail.example.jp>
19
- Feb 1 10:24:07 mailserver01 opendkim[1089]: 8848DC5270E: no signing table match for 'abcd@ezweb.ne.jp'
20
- Feb 1 10:24:07 mailserver01 opendkim[1089]: 8848DC5270E: no signature data
21
35
 
22
- Feb 1 10:24:07 mailserver01 postfix/qmgr[34590]: 8848DC5270E: from=<mail@mail.example.jp>, size=1694, nrcpt=1 (queue active)
23
- > Feb 1 10:24:07 mailserver01 amavis[124059]: (124059-01) Passed CLEAN {RelayedInbound}, [***.***.**.***]:45909 [***.***.**.***] <support@mail.example.jp> -> <test@mail.example.jp>, Queue-ID: D5A37C5270C, Message-ID: <2019020****@mm04***.ezweb.ne.jp>, mail_id: mK6y6R5gwjNY, Hits: 3.152, size: 808, queued_as: 8848DC5270E, 1686 ms
24
- Feb 1 10:24:07 mailserver01 postfix/smtp[27674]: D5A37C5270C: to=<test@mail.example.jp>, relay=127.0.0.1[127.0.0.1]:10024,
25
- delay=1.8, delays=0.09/0/0.01/1.7, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 8848DC5270E)
26
- Feb 1 10:24:07 mailserver01 postfix/qmgr[34590]: D5A37C5270C: removed
27
- Feb 1 10:24:07 mailserver01postfix/cleanup[27673]: 9E6F4C5270C: message-id=<2019020****@mm04***.ezweb.ne.jp>
28
- Feb 1 10:24:07 mailserver01 postfix/local[27769]: 8848DC5270E: to=<test@mail.example.jp>, relay=local, delay=0.1, delays=0.08/0.01/0/0.01, dsn=2.0.0, status=sent (forwarded as 9E6F4C5270C)
29
- Feb 1 10:24:07 mailserver01 postfix/qmgr[34590]: 9E6F4C5270C: from=<support@mail.example.jp>, size=1936, nrcpt=1 (queue active)
30
- Feb 1 10:24:07 mailserver01 postfix/qmgr[34590]: 8848DC5270E: removed
31
- Feb 1 10:24:09 mailserver01 postfix/smtp[27682]: 9E6F4C5270C: to=<test@mail.example.com>, orig_to=<test@mail.example.jp>, relay=example-jp.mail.eo.outlook.com[***.**.**.**]:25, delay=1.7, delays=0.01/0/0.34/1.4, dsn=2.6.0, status=sent (250 2.6.0 <2019020****@mm04***.ezweb.ne.jp> [InternalId=1314259994436, Hostname=SG***.apcpr**.prod.outlook.com] 9724 bytes in 0.255, 37.129 KB/sec Queued mail for delivery)
32
- Feb 1 10:24:09 mailserver01 postfix/qmgr[34590]: 9E6F4C5270C: removed
36
+ Feb 5 13:29:59 mailserver01 opendkim[1089]: E2ED0C5270E: DKIM-Signature field added (s=20190117, d=mail.example.jp)
33
37
 
38
+ Feb 5 13:30:00 mailserver01 postfix/qmgr[26631]: E2ED0C5270E: from=<support@mail.example.jp>, size=1391, nrcpt=1 (queue active)
34
39
 
40
+ Feb 5 13:30:00 mailserver01 amavis[77266]: (77266-01) Passed CLEAN {RelayedOutbound}, MYNETS LOCAL [**.**.**.**]:51716 <support@mail.example.jp> -> <abc@ezweb.ne.jp>, Queue-ID: 329F0C5270C, mail_id: Q61yBWbSIT2Z, Hits: -0.86, size: 779, queued_as: E2ED0C5270E, 1721 ms
35
41
 
36
- ```
42
+ Feb 5 13:30:00 mailserver01 postfix/smtp[1265]: 329F0C5270C: to=<abc@ezweb.ne.jp>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.8, delays=0.09/0.01/0.01/1.7, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as E2ED0C5270E)
43
+
44
+ Feb 5 13:30:00 mailserver01 postfix/qmgr[26631]: 329F0C5270C: removed
45
+
46
+ Feb 5 13:30:00 mailserver01 postfix/smtp[1276]: E2ED0C5270E: to=<abc@ezweb.ne.jp>, relay=lsean.ezweb.ne.jp[***.**.***.***]:25, delay=0.22, delays=0.09/0.01/0.09/0.04, dsn=2.0.0, status=sent (250 Ok: queued as 1C4AFCE)
47
+ ```
48
+
49
+
50
+
51
+
52
+ ```ここに言語を入力
53
+ ■auキャリア宛メール送信⇒test@mail.example.jpに返信⇒test@example.comに転送
54
+ Feb 5 13:30:13 mailserver01 postfix/smtpd[20863]: connect from localhost[127.0.0.1]
55
+
56
+ Feb 5 13:30:13 mailserver01 postfix/smtpd[20863]: BE826C5270E: client=localhost[127.0.0.1]
57
+
58
+ Feb 5 13:30:13 mailserver01 postfix/cleanup[20854]: BE826C5270E: message-id=<2019proxy09.ezweb.ne.jp>
59
+
60
+ Feb 5 13:30:13 mailserver01 opendkim[1058]: BE826C5270E: no signing table match for 'abc@ezweb.ne.jp'
61
+
62
+ Feb 5 13:30:13 mailserver01 opendkim[1058]: BE826C5270E: no signature data
63
+
64
+ Feb 5 13:30:13 mailserver01 postfix/qmgr[46328]: BE826C5270E: from=<support@mail.example.jp>, size=1332, nrcpt=1 (queue active)
65
+
66
+ Feb 5 13:30:13 mailserver01 amavis[99888]: (99888-01) Passed CLEAN {RelayedOpenRelay}, [***.**.***.**]:3862 [**.***.**.**] <support@mail.example.jp> -> <test@example.com>, Queue-ID: 129C1C5270C, Message-ID: <2019proxy09.ezweb.ne.jp>, mail_id: wh1F6zkehPCM, Hits: 2.932, size: 791, queued_as: BE826C5270E, 1697 ms
67
+
68
+ Feb 5 13:30:13 mailserver01 postfix/smtp[20856]: 129C1C5270C: to=<test@example.com>, orig_to=<test@mail.example.jp>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.8, delays=0.1/0.01/0.01/1.7, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as BE826C5270E)
69
+
70
+ Feb 5 13:30:13 mailserver01 postfix/qmgr[46328]: 129C1C5270C: removed
71
+
72
+ Feb 5 13:30:16 mailserver01 postfix/smtp[20865]: BE826C5270E: to=<test@example.com>, relay=example.com.mail.eo.outlook.com[***.**.**.**]:25, delay=2.6, delays=0.08/0.01/0.36/2.1, dsn=2.6.0, status=sent (250 2.6.0 <2019proxy09.ezweb.ne.jp> [InternalId=19683835119297, Hostname=TY***.prod.outlook.com] 8912 bytes in 0.304, 28.612 KB/sec Queued mail for delivery)
73
+
74
+ Feb 5 13:30:16 mailserver01 postfix/qmgr[46328]: BE826C5270E: removed
75
+ ```
76
+
77
+ ---
78
+ 2/6 追記
79
+
80
+ virtual_alias_maps = hash:/etc/postfix/virtualでの転送設定でも当該事象は解消されませんでした。
81
+
82
+ また、https://blog.jicoman.info/2014/09/postfix_aliases_envelope_from/
83
+ のように、
84
+
85
+
86
+ ```ここに言語を入力
87
+ virtual_alias_maps = regexp:/etc/postfix/recipient_canonical.regexp
88
+ /etc/postfix/sender_canonical.regexp
89
+ ```
90
+
91
+ を設定をしましたが、
92
+ mail.example.jpのメールサーバからabc@ezweb.ne.j宛てのキャリア向けに送信しようとすると、
93
+ このメールサーバ内でabcユーザのドメインをexample.comドメインに書き換えてしまい、
94
+ example.comにはabcユーザがいない事でbounceになってしまいます。

2

説明修正

2019/02/05 16:58

投稿

tk_flavor
tk_flavor

スコア104

title CHANGED
File without changes
body CHANGED
@@ -8,7 +8,8 @@
8
8
  受信したキャリアメールを送信アドレスに返信します。
9
9
  返信されたメールは元の送信専用メールサーバに到着し、/etc/aliasで指定されたアカウントメールを
10
10
  **mail.example.com**の別ドメインに転送するようにしています。
11
- アカウント@mail.example.com向けに転送されますが、アカウントの受信ボックスなく迷惑フォルダに入ってくる事が問題にっています。
11
+ アカウント@mail.example.com向けに転送されますが、DKIM設定で、no signing table matchとり、
12
+ アカウントの受信ボックスでなく、迷惑フォルダに入ってくる事が問題になっています。
12
13
  キャリアから返信されたメールをsender_canonical_mapsで送信専用のメールサーバドメインに置き換えて、転送する事は可能なのでしょうか
13
14
 
14
15
  この時、キャリアメールから受信メールに対して返信を行い、送信専用のメールサーバからtest@mail.example.comに転送した時のログです

1

修正

2019/02/01 17:04

投稿

tk_flavor
tk_flavor

スコア104

title CHANGED
File without changes
body CHANGED
@@ -1,13 +1,13 @@
1
1
  現在、起こっている問題は下記となります。
2
2
 
3
- 送信専用のメールサーバのドメインが@mail.example.jpです
3
+ 送信専用のメールサーバのドメインが@**mail.example.jp**です
4
4
  送信する際にsender_canonical_mapsで
5
5
  Return-Pathがsupport@mail.example.jpのsupportアカウントに変えてメールを送っています。
6
6
 
7
7
  このメールサーバからdocomo.ne.jp i.softbank.jp ezweb.ne.jp宛てのキャリア向けアドレスにメール送信を行います。
8
8
  受信したキャリアメールを送信アドレスに返信します。
9
9
  返信されたメールは元の送信専用メールサーバに到着し、/etc/aliasで指定されたアカウントメールを
10
- mail.example.comの別ドメインに転送するようにしています。
10
+ **mail.example.com**の別ドメインに転送するようにしています。
11
11
  アカウント@mail.example.com向けに転送されますが、アカウントの受信ボックスでなく、迷惑フォルダに入ってくる事が問題になっています。
12
12
  キャリアから返信されたメールをsender_canonical_mapsで送信専用のメールサーバドメインに置き換えて、転送する事は可能なのでしょうか
13
13