sendmail在用outlook和foxmail不能接发邮件.
具体问题如下;
1 divert(-1)dnl
2 dnl #
3 dnl # This is the sendmail macro config file for m4. If you make changesto
4 dnl # /etc/mail/sendmail.mc, you will need to regenerate the
5 dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is
6 dnl # installed and then performing a
7 dnl #
8 dnl # make -C /etc/mail
9 dnl #
10 include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
11 VERSIONID(`setup for Red Hat Linux')dnl
12 OSTYPE(`linux')dnl
13 dnl #
14 dnl # Uncomment and edit the following line if your outgoing mail needs to
15 dnl # be sent out through an external mail server:
16 dnl #
17 dnl define(`SMART_HOST',`smtp.your.provider')
18 dnl #
19 define(`confDEF_USER_ID',``8:12'')dnl
20 define(`confTRUSTED_USER', `smmsp')dnl dnl define(`confAUTO_REBUILD')dnl
21 dnl define(`confAUTO_REBUILD')dnl
22 define(`confTO_CONNECT', `1m')dnl
23 define(`confTRY_NULL_MX_LIST',true)dnl
24 define(`confDONT_PROBE_INTERFACES',true)dnl
25 define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
26 define(`ALIAS_FILE', `/etc/aliases')dnl
27 dnl define(`STATUS_FILE', `/etc/mail/statistics')dnl
28 define(`UUCP_MAILER_MAX', `2000000')dnl
29 define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
30 define(`confPRIVACY_FLAGS',`authwarnings,novrfy,noexpn,restrictqrun')dnl
31 define(`confAUTH_OPTIONS', `A')dnl
32 dnl #
33 dnl # The following allows relaying if the user authenticates, and disal lows
34 dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links
35 dnl #
36 dnl define(`confAUTH_OPTIONS', `A p')dnl
37 dnl #
38 dnl # PLAIN is the preferred plaintext authentication method and used by
39 dnl # Mozilla Mail and Evolution, though Outlook Express and other MUAs do
@ dnl # use LOGIN. Other mechanisms should be used if the connection is not
40 dnl # use LOGIN. Other mechanisms should be used if the connection is no t
41 dnl # guaranteed secure.
42 dnl #
43 define(`QUEUE_DIR',`/var/spool/mqueue/q*')dnl
44 TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
45 define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
46 dnl #
47 dnl # Rudimentary information on creating certificates for sendmail TLS:
48 dnl # make -C /usr/share/ssl/certs usage
49 dnl #
50 dnl define(`confCACERT_PATH',`/usr/share/ssl/certs')
51 dnl define(`confCACERT',`/usr/share/ssl/certs/ca-bundle.crt')
52 dnl define(`confSERVER_CERT',`/usr/share/ssl/certs/sendmail.pem')
53 dnl define(`confSERVER_KEY',`/usr/share/ssl/certs/sendmail.pem')
54 dnl #
55 dnl # This allows sendmail to use a keyfile that is shared with OpenLDAP 's
56 dnl # slapd, which requires the file to be readble by group ldap
57 dnl #
58 dnl define(`confDONT_BLAME_SENDMAIL',`groupreadablekeyfile')dnl
59 dnl #
60 dnl define(`confTO_QUEUEWARN', `4h')dnl
61 dnl define(`confTO_QUEUERETURN', `5d')dnl
62 dnl define(`confQUEUE_LA', `12')dnl
63 dnl define(`confREFUSE_LA', `18')dnl
64 define(`confTO_IDENT', `0')dnl
65 dnl FEATURE(delay_checks)dnl
66 FEATURE(`no_default_msa',`dnl')dnl
67 FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
68 FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
69 FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
70 FEATURE(redirect)dnl
71 FEATURE(always_add_domain)dnl
72 FEATURE(use_cw_file)dnl
73 FEATURE(use_ct_file)dnl
74 dnl #
75 dnl # The -t option will retry delivery if e.g. the user runs over his quota.
76 dnl #
77 FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
78 FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
79 FEATURE(`blacklist_recipients')dnl
80 EXPOSED_USER(`root')dnl
81 dnl #
82 dnl # The following causes sendmail to only listen on the IPv4 loopback address
83 dnl # 127.0.0.1 and not on any other network devices. Remove the loopbac k
84 dnl # address restriction to accept email from the internet or intranet.
85 dnl #
86 DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
87 dnl #
88 dnl # The following causes sendmail to additionally listen to port 587 for
89 dnl # mail from MUAs that authenticate. Roaming users who can't reach their
90 dnl # preferred sendmail daemon due to port 25 being blocked or redirected find
91 dnl # this useful.
92 dnl #
93 dnl DAEMON_OPTIONS(`Port=25, Name=MSA,M=Ea')dnl
94 dnl #
95 dnl # The following causes sendmail to additionally listen to port 465,but
96 dnl # starting immediately in TLS mode upon connecting. Port 25or587 followed
97 dnl # by STARTTLS is preferred, but roaming clients using Outlook Express can't 98 dnl # do STARTTLS on ports other than 25. Mozilla Mail can ONLY use STAR TTLS
99 dnl # and doesn't support the deprecated smtps; Evolution <1.1.1 uses smtps
100 dnl # when SSL is enabled-- STARTTLS support is available in version 1.1.1.
101 dnl #
102 dnl # For this to work your OpenSSL certificates must be configured.
103 dnl #
104 dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
105 dnl #
106 dnl # The following causes sendmail to additionally listen on the IPv6 loopback
107 dnl # device. Remove the loopback address restriction listen to the network.
108 dnl #
109 dnl # NOTE: binding both IPv4 and IPv6 daemon to the same port requires
110 dnl # a kernel patch
111 dnl #
112 dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl
113 dnl #
114 dnl # We strongly recommend not accepting unresolvable domains if you want to
115 dnl # protect yourself from spam. However, the laptop and users on computers
116 dnl # that do not have 24x7 DNS do need this.
117 dnl #
118 dnl FEATURE(`accept_unresolvable_domains')dnl
119 dnl #
120 dnl FEATURE(`relay_based_on_MX')dnl
121 dnl #
122 dnl # Also accept email sent to "localhost.localdomain" as local email.
123 dnl #
124 LOCAL_DOMAIN(`look.com')dnl
125 dnl #
126 dnl # The following example makes mail from this host and any additional
127 dnl # specified domains appear to be sent from mydomain.com
128 dnl #
129 dnl MASQUERADE_AS(`mydomain.com')dnl
130 dnl #
131 dnl # masquerade not just the headers, but the envelope as well
132 dnl #
133 dnl FEATURE(masquerade_envelope)dnl
134 dnl #
135 dnl # masquerade not just @mydomainalias.com, but@*.mydomainalias.com as well
136 dnl #
137 dnl FEATURE(masquerade_entire_domain)dnl
138 dnl #
139 dnl MASQUERADE_DOMAIN(localhost)dnl
140 dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
141 dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl
142 dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
143 MAILER(smtp)dnl
144 MAILER(procmail)dnl
这是我sendmail.mc配置.
并且我在sendmail.cf中修改了这一句:Cwlocalhost. localdomain.mail.look.com.
我在linux里可以用命令行正常发送邮件...
为什么用outlook和foxmail就不行.
大家帮我看一下...给点意见..现在实在着急.