由 szsailing 在 12-01-2002 23:10 发表:
sendmail的问题
我配好sendmail后,收信看原始信息中的一项如下:
Message-Id: <[email protected]>
如何配置sendmail,才能
显示
Message-Id: <[email protected]>
由 xxbin 在 12-01-2002 23:38 发表:
Re: sendmail的问题
> quote:
>
> * * *
>
> 最初由 szsailing 发布
>
> **我配好sendmail后,收信看原始信息中的一项如下:
>
> Message-Id: <[email protected]>
>
> 如何配置sendmail,才能
>
> 显示
>
> Message-Id: <[email protected]> **
>
> * * *
你是不是在本机测试?
发到hotmail看看?
如果你想把这个后缀定死,可以编辑sendmail.cf
找到下面的东西,自己该成固定的就OK了。
H?M?Resent-Message-Id: <$t.$i@$j>
H?M?Message-Id: <$t.$i@$j>
由 szsailing 在 12-02-2002 09:18 发表:
我不是在本机上测试
不定死后缀的话,
还有没有其他方法?
由 dancingpig 在 12-02-2002 11:26 发表:
你看看dns做下有用吗?还有localhost.localdomain我记的好象是本机器装好有默认的名字,你把他改了看看
由 xxbin 在 12-02-2002 11:37 发表:
> quote:
>
> * * *
>
> 最初由 szsailing 发布
>
> **我不是在本机上测试
>
> 不定死后缀的话,
>
> 还有没有其他方法? **
>
> * * *
#hostname
看看显示的是否是localhost.localdomain
是的话就修改主机名。
由 romanknight 在 12-06-2002 09:25 发表:
我的也是类似的问题,我都搞了好几天了。现在把问题详细说一下。
OS:redhat 8.0
SOFTWARE: 8.0自带的sendmail(忘了版本号)
环境:校园网内,固定ip:172.16.85.93
目的:在同一个校园网内的其他用户的DNS添加我的域名服务器(DNS已经测试通过),并用我的邮件服务器pop3和smtp能够发收邮件.
DNS域名介绍:用artlinux.com代替ip号172.16.85.93,详细情况见以下的DNS文件.
问题:
<1>.好像邮件服务器名称老是显示localhost.localdomain
<2>.打开pop3端口110,能够接受邮件(在Evolution MUA界面下用pop3格式测试通过,在另一台机'windows'的outlook用pop3格式测试也通过),看来收取邮件是没有问题了.但是发送邮件不行.
测试过程:
1. 在终端下telnet 127.0.0.1 25通过,但是telnet 172.16.85.93 25总是不通过.
2.telnet 127.0.0.1 25(root权限)后,用冗余模式发送信件.输入部分为:
mail from:
1<[email protected]>
2
3rcpt to:<[email protected]>
4
5data
6
7test
8
9.
10
11quit
12
13
14
15之后在收取st01lk帐号的信中发现,因邮件服务器找不到artlinux的server退回到st01lk的信件.信件如下:
16
17
18
19发件人: Mail Delivery Subsystem<[email protected]>
20
21收件人: [email protected]
22
23
24
25\--------Transcript of session follows --------
26
27550 5.1.2 <[email protected]>... Host unknown (Name Server:mail artlinux.com. artlinux.com.:Host not found)
28
29
30
313.在Evolution MUA界面下,用smtp(服务器添artlinux.com)发信,出错信息:找不到服务器.
32
33
34
35
36
37
38
39个人估计:应该是ip地址和那个域名服务器没有协调好,并且在sendmail.cf里面没有更改一些识别这个ip甚至这个域名的设置.
40
41
42
43
44
45请大侠们多多指教!
46
47以下一贴付上我的各个文件的设置!
48
49__________________
50
51
52
53是我的总是我的,不是我的偷来的也不是我的!
54
55
56
57
58* * *
59
60
61_由 romanknight 在 12-06-2002 09:30 发表:_
62
63
64
65****
66
67
68
69
70
71\---------------------------------------------------------------------
72
73named.conf:
74
75
76
77
78
79
80
81// generated by named-bootconf.pl
82
83
84
85
86
87options {
88
89directory "/var/named";
90
91// query-source address * port 53;
92
93};
94
95
96
97
98
99zone "." {
100
101type hint;
102
103file "named.ca";
104
105};
106
107
108
109zone "artlinux.com" {
110
111notify no;
112
113type master;
114
115file "named.artlinux";
116
117};
118
119
120
121zone "84.16.172.in-addr.arpa" {
122
123notify no;
124
125type master;
126
127file "172.16.84.rev";
128
129};
130
131
132
133zone "0.0.127.in-addr.arpa" {
134
135type master;
136
137file "named.local";
138
139};
140
141
142
143zone "85.16.172.in-addr.arpa" {
144
145notify no;
146
147type master;
148
149file "172.16.85.rev";
150
151};
152
153
154
155
156
157include "/etc/rndc.key";
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185\---------------------------------------------------------------------
186
187named.artlinux:
188
189
190
191
192
193$TTL 86400
194
195@ IN SOA ns.artlinux.com. root.mail.artlinux.com. (
196
1971457252724; Serial
198
19928800 ; Refresh
200
20114400 ; Retry
202
2033600000 ; Expire
204
20586400) ; Minimum
206
207
208
209NS ns.artlinux.com.
210
211MX 10 mail.artlinux.com
212
213
214
215ns A 172.16.85.93
216
217
218
219hwd A 172.16.84.118
220
221
222
223www A 172.16.85.93
224
225
226
227lajimao A 211.66.138.48
228
229
230
231mail A 172.16.85.93
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257\-----------------------------------------------------------------------
258
259named.local:
260
261
262
263
264
265
266
267$TTL 86400
268
269@ IN SOA ns.artlinux.com. root.mail.artlinux.com. (
270
2711 ; Serial
272
27328800 ; Refresh
274
2757200 ; Retry
276
277604800 ; Expire
278
27986400) ; Minimum
280
281
282
283
284
285
286
287NS ns.artlinux.com.
288
289MX 10 mail.artlinux.com
290
291
292
2931 IN PTR localhost.
294
295
296
297
298
299
300
301
302
303
304
305\------------------------------------------------------------------------
306
307sendmail.mc:
308
309
310
311
312
313divert(-1)
314
315dnl This is the sendmail macro config file. If you make changes to this file,
316
317dnl you need the sendmail-cf rpm installed and then have to generate a
318
319dnl new /etc/mail/sendmail.cf by running the following command:
320
321dnl
322
323dnl m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
324
325dnl
326
327include(`/usr/share/sendmail-cf/m4/cf.m4')
328
329VERSIONID(`linux setup for Red Hat Linux')dnl
330
331OSTYPE(`linux')
332
333dnl Uncomment and edit the following line if your mail needs to be sent out
334
335dnl through an external mail server:
336
337dnl define(`SMART_HOST',`smtp.your.provider')
338
339define(`confDEF_USER_ID',``8:12'')dnl
340
341undefine(`UUCP_RELAY')dnl
342
343undefine(`BITNET_RELAY')dnl
344
345dnl define(`confAUTO_REBUILD')dnl
346
347define(`confTO_CONNECT', `1m')dnl
348
349define(`confTRY_NULL_MX_LIST',true)dnl
350
351define(`confDONT_PROBE_INTERFACES',true)dnl
352
353define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
354
355define(`ALIAS_FILE', `/etc/aliases')dnl
356
357dnl define(`STATUS_FILE', `/etc/mail/statistics')dnl
358
359define(`UUCP_MAILER_MAX', `2000000')dnl
360
361define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
362
363define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
364
365define(`confAUTH_OPTIONS', `A')dnl
366
367dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
368
369dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
370
371dnl define(`confCACERT_PATH',`/usr/share/ssl/certs')
372
373dnl define(`confCACERT',`/usr/share/ssl/certs/ca-bundle.crt')
374
375dnl define(`confSERVER_CERT',`/usr/share/ssl/certs/sendmail.pem')
376
377dnl define(`confSERVER_KEY',`/usr/share/ssl/certs/sendmail.pem')
378
379dnl define(`confTO_QUEUEWARN', `4h')dnl
380
381dnl define(`confTO_QUEUERETURN', `5d')dnl
382
383dnl define(`confQUEUE_LA', `12')dnl
384
385dnl define(`confREFUSE_LA', `18')dnl
386
387define(`confTO_IDENT', `0')dnl
388
389dnl FEATURE(delay_checks)dnl
390
391FEATURE(`no_default_msa',`dnl')dnl
392
393FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
394
395FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
396
397FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
398
399FEATURE(redirect)dnl
400
401FEATURE(always_add_domain)dnl
402
403FEATURE(use_cw_file)dnl
404
405FEATURE(use_ct_file)dnl
406
407dnl The '-t' option will retry delivery if e.g. the user runs over his quota.
408
409FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
410
411FEATURE(`access_db',`hash -T<tmpf> -o /etc/mail/access.db')dnl
412
413FEATURE(`blacklist_recipients')dnl
414
415EXPOSED_USER(`root')dnl
416
417dnl This changes sendmail to only listen on the loopback device 127.0.0.1
418
419dnl and not on any other network devices. Comment this out if you want
420
421dnl to accept email over the network.
422
423DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
424
425dnl NOTE: binding both IPv4 and IPv6 daemon to the same port requires
426
427dnl a kernel patch
428
429dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')
430
431dnl We strongly recommend to comment this one out if you want to protect
432
433dnl yourself from spam. However, the laptop and users on computers that do
434
435dnl not have 24x7 DNS do need this.
436
437FEATURE(`accept_unresolvable_domains')dnl
438
439dnl FEATURE(`relay_based_on_MX')dnl
440
441MAILER(smtp)dnl
442
443MAILER(procmail)dnl
444
445Cwlocalhost.localdomain
446
447
448
449
450
451
452
453\-------------------------------------------------------------------------------
454
455access:
456
457
458
459
460
461
462
463# Check the /usr/share/doc/sendmail/README.cf file for a description
464
465# of the format of this file. (search for access_db in that file)
466
467# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
468
469# package.
470
471#
472
473# by default we allow relaying from localhost...
474
475localhost.localdomain RELAY
476
477localhost RELAY
478
479127.0.0.1 RELAY
480
481172.16.84 RELAY
482
483172.16.85 RELAY
484
485artlinux.com RELAY
486
487
488
489
490
491
492
493
494
495\-------------------------------------------------------------------------------
496
497aliases:
498
499
500
501
502
503
504
505#
506
507# Aliases in this file will NOT be expanded in the header from
508
509# Mail, but WILL be visible over networks or from /bin/mail.
510
511#
512
513# >>>>>>>>>> The program "newaliases" must be run after
514
515# >> NOTE >> this file is updated for any changes to
516
517# >>>>>>>>>> show through to sendmail.
518
519#
520
521<br</tmpf></[email protected]></[email protected]></[email protected]></[email protected]>