質問編集履歴
5
ログデータ追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -40,4 +40,76 @@
|
|
40
40
|
smtp_connect_timeout = 10s
|
41
41
|
smtpd_error_sleep_time = 0
|
42
42
|
in_flow_delay = 0
|
43
|
+
```
|
44
|
+
|
45
|
+
|
46
|
+
●/var/log/maillog
|
47
|
+
```ここに言語を入力
|
48
|
+
Oct 5 16:00:02 s1example postfix/cleanup[9830]: 240E740525BF9: message-id=<JD20201005160002.9778.sender@example.com>
|
49
|
+
Oct 5 16:00:02 s1example postfix/qmgr[10529]: 240E740525BF9: from=<return@example.com>, size=529, nrcpt=1 (queue active)
|
50
|
+
Oct 5 16:00:02 s1example postfix/pickup[5790]: 37FC840525BFA: uid=1001 from=<return@example.com>
|
51
|
+
Oct 5 16:00:02 s1example postfix/cleanup[9830]: 37FC840525BFA: message-id=<JD20201005160002.9778.sender@example.com>
|
52
|
+
Oct 5 16:00:02 s1example postfix/qmgr[10529]: 37FC840525BFA: from=<return@example.com>, size=533, nrcpt=1 (queue active)
|
53
|
+
Oct 5 16:00:02 s1example postfix/pickup[5790]: 5012040525BFC: uid=1001 from=<return@example.com>
|
54
|
+
Oct 5 16:00:02 s1example postfix/cleanup[9830]: 5012040525BFC: message-id=<JD20201005160002.9778.sender@example.com>
|
55
|
+
Oct 5 16:00:02 s1example postfix/qmgr[10529]: 5012040525BFC: from=<return@example.com>, size=534, nrcpt=1 (queue active)
|
56
|
+
Oct 5 16:00:02 s1example postfix/pickup[5790]: 6AD0440525BFD: uid=1001 from=<return@example.com>
|
57
|
+
Oct 5 16:00:02 s1example postfix/cleanup[9830]: 6AD0440525BFD: message-id=<JD20201005160002.9778.sender@example.com>
|
58
|
+
Oct 5 16:00:02 s1example postfix/qmgr[10529]: 6AD0440525BFD: from=<return@example.com>, size=534, nrcpt=1 (queue active)
|
59
|
+
Oct 5 16:00:02 s1example postfix/pickup[5790]: 8336A40525BFE: uid=1001 from=<return@example.com>
|
60
|
+
Oct 5 16:00:02 s1example postfix/cleanup[9830]: 8336A40525BFE: message-id=<JD20201005160002.9778.sender@example.com>
|
61
|
+
Oct 5 16:00:02 s1example postfix/qmgr[10529]: 8336A40525BFE: from=<return@example.com>, size=534, nrcpt=1 (queue active)
|
62
|
+
Oct 5 16:00:02 s1example postfix/pickup[5790]: 9C96D40525BFF: uid=1001 from=<return@example.com>
|
63
|
+
Oct 5 16:00:02 s1example postfix/cleanup[9830]: 9C96D40525BFF: message-id=<JD20201005160002.9778.sender@example.com>
|
64
|
+
Oct 5 16:00:02 s1example postfix/smtp[9843]: 5012040525BFC: to=<destination+3@example.com>, relay=mx01.muumuu-mail.com[123.4.567.8]:25, delay=0.42, delays=0.16/0.01/0.05/0.2, dsn=2.0.0, status=sent (250 Queued! <JD20201005160002.9778.sender@example.com> (Queue-Id: A909F41004F5))
|
65
|
+
Oct 5 16:00:02 s1example postfix/qmgr[10529]: 5012040525BFC: removed
|
66
|
+
Oct 5 16:00:02 s1example postfix/qmgr[10529]: 9C96D40525BFF: from=<return@example.com>, size=534, nrcpt=1 (queue active)
|
67
|
+
Oct 5 16:00:02 s1example postfix/pickup[5790]: B5F0940525BFC: uid=1001 from=<return@example.com>
|
68
|
+
Oct 5 16:00:02 s1example postfix/cleanup[9830]: B5F0940525BFC: message-id=<JD20201005160002.9778.sender@example.com>
|
69
|
+
Oct 5 16:00:02 s1example postfix/smtp[9846]: 6AD0440525BFD: to=<destination+4@example.com>, relay=mx01.muumuu-mail.com[123.4.567.8]:25, delay=0.41, delays=0.17/0.02/0.05/0.18, dsn=2.0.0, status=sent (250 Queued! <JD20201005160002.9778.sender@example.com> (Queue-Id: BD4541C80568))
|
70
|
+
Oct 5 16:00:02 s1example postfix/qmgr[10529]: 6AD0440525BFD: removed
|
71
|
+
Oct 5 16:00:02 s1example postfix/smtp[9849]: 8336A40525BFE: to=<destination+5@example.com>, relay=mx01.muumuu-mail.com[123.4.567.8]:25, delay=0.37, delays=0.16/0.01/0.03/0.15, dsn=2.0.0, status=sent (250 Queued! <JD20201005160002.9778.sender@example.com> (Queue-Id: CD6BD41004F5))
|
72
|
+
Oct 5 16:00:02 s1example postfix/qmgr[10529]: 8336A40525BFE: removed
|
73
|
+
Oct 5 16:00:02 s1example postfix/qmgr[10529]: B5F0940525BFC: from=<return@example.com>, size=534, nrcpt=1 (queue active)
|
74
|
+
Oct 5 16:00:02 s1example postfix/pickup[5790]: D06BA40525BFD: uid=1001 from=<return@example.com>
|
75
|
+
Oct 5 16:00:02 s1example postfix/cleanup[9830]: D06BA40525BFD: message-id=<JD20201005160002.9778.sender@example.com>
|
76
|
+
Oct 5 16:00:02 s1example postfix/smtp[9843]: 9C96D40525BFF: to=<destination+6@example.com>, relay=mx01.muumuu-mail.com[123.4.567.8]:25, delay=0.39, delays=0.17/0/0.04/0.18, dsn=2.0.0, status=sent (250 Queued! <JD20201005160002.9778.sender@example.com> (Queue-Id: EC3311A40478))
|
77
|
+
Oct 5 16:00:02 s1example postfix/qmgr[10529]: 9C96D40525BFF: removed
|
78
|
+
Oct 5 16:00:03 s1example postfix/qmgr[10529]: D06BA40525BFD: from=<return@example.com>, size=534, nrcpt=1 (queue active)
|
79
|
+
Oct 5 16:00:03 s1example postfix/pickup[5790]: 00F0E40525BFE: uid=1001 from=<return@example.com>
|
80
|
+
Oct 5 16:00:03 s1example postfix/cleanup[9830]: 00F0E40525BFE: message-id=<JD20201005160002.9778.sender@example.com>
|
81
|
+
Oct 5 16:00:03 s1example postfix/smtp[9846]: B5F0940525BFC: to=<destination+7@example.com>, relay=mx01.muumuu-mail.com[123.4.567.8]:25, delay=0.35, delays=0.17/0/0.05/0.13, dsn=2.0.0, status=sent (250 Queued! <JD20201005160002.9778.sender@example.com> (Queue-Id: 0843E41004F6))
|
82
|
+
Oct 5 16:00:03 s1example postfix/qmgr[10529]: B5F0940525BFC: removed
|
83
|
+
Oct 5 16:00:03 s1example postfix/qmgr[10529]: 00F0E40525BFE: from=<return@example.com>, size=534, nrcpt=1 (queue active)
|
84
|
+
Oct 5 16:00:03 s1example postfix/pickup[5790]: 178EE40525BFC: uid=1001 from=<return@example.com>
|
85
|
+
Oct 5 16:00:03 s1example postfix/cleanup[9830]: 178EE40525BFC: message-id=<JD20201005160003.9778.sender@example.com>
|
86
|
+
Oct 5 16:00:03 s1example postfix/smtp[9849]: D06BA40525BFD: to=<destination+8@example.com>, relay=mx01.muumuu-mail.com[123.4.567.8]:25, conn_use=2, delay=0.38, delays=0.21/0/0.01/0.15, dsn=2.0.0, status=sent (250 Queued! <JD20201005160002.9778.sender@example.com> (Queue-Id: 2751D1A40569))
|
87
|
+
Oct 5 16:00:03 s1example postfix/smtp[9837]: 240E740525BF9: to=<test@example.com>, relay=mx01.muumuu-mail.com[123.4.567.8]:25, delay=1.1, delays=0.17/0.02/0.77/0.15, dsn=2.0.0, status=sent (250 Queued! <JD20201005160002.9778.sender@example.com> (Queue-Id: 275391A405C0))
|
88
|
+
Oct 5 16:00:03 s1example postfix/qmgr[10529]: 240E740525BF9: removed
|
89
|
+
Oct 5 16:00:03 s1example postfix/qmgr[10529]: D06BA40525BFD: removed
|
90
|
+
Oct 5 16:00:03 s1example postfix/cleanup[9864]: 2E2AD40525BF9: message-id=<20201005070003.2E2AD40525BF9@s1.example.com>
|
91
|
+
Oct 5 16:00:03 s1example postfix/qmgr[10529]: 178EE40525BFC: from=<return@example.com>, size=535, nrcpt=1 (queue active)
|
92
|
+
Oct 5 16:00:03 s1example postfix/pickup[5790]: 3E15440525BFD: uid=1001 from=<return@example.com>
|
93
|
+
Oct 5 16:00:03 s1example postfix/cleanup[9830]: 3E15440525BFD: message-id=<JD20201005160003.9778.sender@example.com>
|
94
|
+
Oct 5 16:00:03 s1example postfix/smtp[9843]: 00F0E40525BFE: to=<destination+9@example.com>, relay=mx01.muumuu-mail.com[123.4.567.8]:25, conn_use=2, delay=0.34, delays=0.16/0/0.01/0.17, dsn=2.0.0, status=sent (250 Queued! <JD20201005160002.9778.sender@example.com> (Queue-Id: 4193F4100543))
|
95
|
+
Oct 5 16:00:03 s1example postfix/qmgr[10529]: 2E2AD40525BF9: from=<>, size=2547, nrcpt=1 (queue active)
|
96
|
+
Oct 5 16:00:03 s1example postfix/bounce[9861]: 37FC840525BFA: sender non-delivery notification: 2E2AD40525BF9
|
97
|
+
Oct 5 16:00:03 s1example postfix/trivial-rewrite[9557]: warning: do not list domain example.com in BOTH virtual_mailbox_domains and relay_domains
|
98
|
+
Oct 5 16:00:03 s1example postfix/qmgr[10529]: 00F0E40525BFE: removed
|
99
|
+
Oct 5 16:00:03 s1example postfix/qmgr[10529]: 37FC840525BFA: removed
|
100
|
+
Oct 5 16:00:03 s1example postfix/qmgr[10529]: 3E15440525BFD: from=<return@example.com>, size=535, nrcpt=1 (queue active)
|
101
|
+
Oct 5 16:00:03 s1example postfix/smtp[9846]: 178EE40525BFC: to=<destination+10@example.com>, relay=mx01.muumuu-mail.com[123.4.567.8]:25, conn_use=3, delay=0.39, delays=0.22/0.04/0.01/0.13, dsn=2.0.0, status=sent (250 Queued! <JD20201005160003.9778.sender@example.com> (Queue-Id: 671CC1A40569))
|
102
|
+
Oct 5 16:00:03 s1example postfix/qmgr[10529]: 178EE40525BFC: removed
|
103
|
+
Oct 5 16:00:03 s1example postfix/pickup[5790]: 66AD340525BFA: uid=1001 from=<return@example.com>
|
104
|
+
Oct 5 16:00:03 s1example postfix/virtual[9868]: 2E2AD40525BF9: to=<return@example.com>, relay=virtual, delay=0.26, delays=0.11/0.01/0/0.14, dsn=2.0.0, status=sent (delivered to maildir)
|
105
|
+
Oct 5 16:00:03 s1example postfix/qmgr[10529]: 2E2AD40525BF9: removed
|
106
|
+
Oct 5 16:00:03 s1example postfix/cleanup[9864]: 66AD340525BFA: message-id=<JD20201005160003.9778.sender@example.com>
|
107
|
+
Oct 5 16:00:03 s1example postfix/smtp[9837]: 3E15440525BFD: to=<destination+11@example.com>, relay=mx01.muumuu-mail.com[123.4.567.8]:25, conn_use=3, delay=0.29, delays=0.12/0/0.01/0.17, dsn=2.0.0, status=sent (250 Queued! <JD20201005160003.9778.sender@example.com> (Queue-Id: 71DC341004F6))
|
108
|
+
Oct 5 16:00:03 s1example postfix/qmgr[10529]: 3E15440525BFD: removed
|
109
|
+
Oct 5 16:00:03 s1example postfix/qmgr[10529]: 66AD340525BFA: from=<return@example.com>, size=535, nrcpt=1 (queue active)
|
110
|
+
Oct 5 16:00:03 s1example postfix/pickup[5790]: 7F0B040525BF9: uid=1001 from=<return@example.com>
|
111
|
+
Oct 5 16:00:03 s1example postfix/cleanup[9830]: 7F0B040525BF9: message-id=<JD20201005160003.9778.sender@example.com>
|
112
|
+
Oct 5 16:00:03 s1example postfix/qmgr[10529]: 7F0B040525BF9: from=<return@example.com>, size=535, nrcpt=1 (queue active)
|
113
|
+
Oct 5 16:00:03 s1example postfix/pickup[5790]: 997BF40525BFC: uid=1001 from=<return@example.com>
|
114
|
+
Oct 5 16:00:03 s1example postfix/cleanup[9864]: 997BF40525BFC: message-id=<JD20201005160003.9778.sender@example.com>
|
43
115
|
```
|
4
説明文追加
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
postfixで
|
1
|
+
postfixでsendmailコマンドの処理速度を高速化するには
|
body
CHANGED
@@ -5,8 +5,18 @@
|
|
5
5
|
ちなみに、メールの送信はPerlプログラムから行っています。
|
6
6
|
|
7
7
|
テストとしてforでループしながら千通のメールを送信するだけのプログラムを実行してみても、処理が終了するまで2分程かかってしまいます。
|
8
|
-
(テストは独自ドメインのサブアドレス宛に送っている為再送なくスムーズに全件送られます)
|
8
|
+
(テストは独自ドメインのサブアドレス宛に送っている為全件再送なくスムーズに全件送られます)
|
9
9
|
|
10
|
+
```Perl
|
11
|
+
for (my $i = 1 ; $i <= 1000 ; $i++) {
|
12
|
+
open(MAIL, "| /usr/sbin/sendmail destination+".$i."@example.com");
|
13
|
+
print MAIL "From: sender@example.com\n";
|
14
|
+
~この後ヘッダやら本文やらを指定~
|
15
|
+
close(MAIL);
|
16
|
+
}
|
17
|
+
```
|
18
|
+
|
19
|
+
|
10
20
|
■旧サーバ
|
11
21
|
CPU Intel(R) Xeon(R) CPU E3-1231 v3 @ 3.40GHz
|
12
22
|
RAM 1036MB
|
@@ -22,10 +32,12 @@
|
|
22
32
|
|
23
33
|
|
24
34
|
●main.cf
|
35
|
+
```
|
25
36
|
default_process_limit = 5000
|
26
37
|
smtpd_client_connection_count_limit = 200
|
27
38
|
default_destination_recipient_limit = 100
|
28
39
|
default_destination_concurrency_limit = 60
|
29
40
|
smtp_connect_timeout = 10s
|
30
41
|
smtpd_error_sleep_time = 0
|
31
|
-
in_flow_delay = 0
|
42
|
+
in_flow_delay = 0
|
43
|
+
```
|
3
説明追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
ちなみに、メールの送信はPerlプログラムから行っています。
|
6
6
|
|
7
7
|
テストとしてforでループしながら千通のメールを送信するだけのプログラムを実行してみても、処理が終了するまで2分程かかってしまいます。
|
8
|
+
(テストは独自ドメインのサブアドレス宛に送っている為再送なくスムーズに全件送られます)
|
8
9
|
|
9
|
-
|
10
10
|
■旧サーバ
|
11
11
|
CPU Intel(R) Xeon(R) CPU E3-1231 v3 @ 3.40GHz
|
12
12
|
RAM 1036MB
|
2
設定項目追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -25,6 +25,7 @@
|
|
25
25
|
default_process_limit = 5000
|
26
26
|
smtpd_client_connection_count_limit = 200
|
27
27
|
default_destination_recipient_limit = 100
|
28
|
+
default_destination_concurrency_limit = 60
|
28
29
|
smtp_connect_timeout = 10s
|
29
30
|
smtpd_error_sleep_time = 0
|
30
31
|
in_flow_delay = 0
|
1
実行方法を追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,8 +1,12 @@
|
|
1
|
-
古い以前のサーバでは1万通のメールを5分程で送り終えていましたが、サーバを変えてから同じリストに配信しても、
|
1
|
+
古い以前のサーバでは1万通のメールを5分程で送り終えていましたが、サーバを変えてから同じリストに配信しても、26分程かかる様になってしまいました。
|
2
2
|
|
3
3
|
処理能力的にはまだまだ余裕があると思うのですが、どの設定項目を変更すれば早く処理出来る様になりますでしょうか?
|
4
4
|
|
5
|
+
ちなみに、メールの送信はPerlプログラムから行っています。
|
5
6
|
|
7
|
+
テストとしてforでループしながら千通のメールを送信するだけのプログラムを実行してみても、処理が終了するまで2分程かかってしまいます。
|
8
|
+
|
9
|
+
|
6
10
|
■旧サーバ
|
7
11
|
CPU Intel(R) Xeon(R) CPU E3-1231 v3 @ 3.40GHz
|
8
12
|
RAM 1036MB
|