ORF反垃圾邮件系统

邮件服务器-邮件系统-邮件技术论坛(BBS)

 找回密码
 会员注册
查看: 9330|回复: 3
打印 上一主题 下一主题

使用rh7.3 sendmail作邮件服务器的请参考下文

[复制链接]
跳转到指定楼层
顶楼
发表于 2003-6-23 15:25:11 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
如果默认安装rehat 7.3 sendmail,绝对值的一看!! <br>
<br>
Sendmail <br>
<br>
<br>
Red Hat Linux uses Sendmail as its MTA to deliver messages, whether they are intended for users on the same system or for remote destinations. Other MTAs do exist (and can be used well with Red Hat Linux), but most administrators elect to use Sendmail as their MTA due to its power, scalability, and compliance to important Internet standards, such as SMTP. <br>
<br>
Sendmail's core duty, like other MTAs, is to safely move email between hosts, usually utilizing the SMTP protocol. However, Sendmail is highly configurable, allowing you to control almost every aspect of how email is handled, including the protocol used. <br>
<br>
History <br>
============================================= <br>
Sendmail's roots can be traced to the birth of email, occurring in the decade before the birth of ARPANET, the precursor to the Internet. In those days, every user's mailbox was a file that only they had rights to read, and mail applications simply added text to that file. Every user had to wade through their mail file to find any old mail, and reading new mail was a equally difficult. The first actual transfer of a mail message file from one host to another did not take place until 1972, when email began to be moved by FTP over the NCP network protocol. This easier method of communication quickly became popular, even to the point where it made up most of ARPANET's traffic in less than a year. <br>
<br>
However, a lack of standardization between competing protocols made email much harder to send from some systems. This continued until the ARPANET standardized on TCP/IP in 1982. Soon after, a new protocol, SMTP, materialized for transporting email messages. These developments, combined with HOSTS files being replaced with DNS, allowed full-featured MTAs to materialize. Sendmail, which grew out of an earlier email delivery system called Delivermail, quickly became the standard as the email began to expand and become widely used. <br>
<br>
Purpose and Limitations <br>
============================================= <br>
It is important to be aware of what Sendmail is and what it can do for you as opposed to what it is not. In these days of monolithic applications that fulfill multiple roles, you might initially think that Sendmail is the only application you need to run an email server within your organization. Technically, this is true, as Sendmail can spool mail to your users' directories and accepts new email via the command line. But, most users actually require much more than simple email delivery. They usually want to interact with their email using an MUA that uses POP or IMAP to download their messages to their local machine. Or, they may prefer a Web interface to gain access to their mailbox. These other applications can work in conjunction with Sendmail and SMTP, but they actually exist for different reasons and can operate separately from one another. <br>
<br>
It is beyond the scope of this section to go into all that Sendmail should or could be configured to do. With literally hundreds of different options and rule sets, entire volumes are dedicated to helping explain everything that can be done and how to fix things that go wrong. You should consult the many excellent resources on Sendmail in order to shape it to fit your exact specifications. <br>
<br>
However, you should understand what files are installed with Sendmail by default on your system and know how to make basic configuration changes. You should also be aware of how to stop unwanted email (spam) and how to extend Sendmail with the Lightweight Directory Access Protocol (LDAP). <br>
<br>
The Default Sendmail Installation <br>
============================================= <br>
While you can download the source code for Sendmail and build your own copy, many users prefer to use the version of Sendmail installed by default with their Red Hat Linux system. You can also use the Red Hat Linux CD-ROMs to reinstall the sendmail RPM at a later point. Be aware that you must alter the default configuration file for Sendmail to use it as a mail server for more than one host. See the Section called Common Sendmail Configuration Changes for details. <br>
<br>
After installation, the sendmail executable is placed in the /usr/sbin/ directory. <br>
<br>
Sendmail's lengthy and detailed configuration file, sendmail.cf, is installed in the /etc/ directory. You should avoid editing the sendmail.cf file directly. Instead, to make configuration changes to Sendmail, edit the /etc/mail/sendmail.mc file and use the included m4 macro processor to create a new /etc/sendmail.cf (after backing up the original /etc/sendmail.cf, of course). More information on configuring Sendmail can be found in the Section called Common Sendmail Configuration Changes. <br>
<br>
Various Sendmail configuration files are installed in the /etc/mail/ directory including: <br>
<br>
<br>
access — Specifies which systems can use Sendmail for relaying email. <br>
<br>
domaintable — Allows you to provide domain name mapping. <br>
<br>
local-host-names — The place where you include all aliases for your machine. <br>
<br>
mailertable — Specifies instructions that override routing for particular domains. <br>
<br>
virtusertable — Permits you to do a domain-specific form of aliasing, allowing multiple virtual domains to be hosted on one machine. <br>
<br>
Several of the configuration files in /etc/mail/, such as access, domaintable, mailertable and virtusertable, must actually store their information in database files before Sendmail can use any configuration changes. To include any changes you make to these configurations in their database files, you must run the makemap hash /etc/mail/<name> < /etc/mail/<name> command, where <name> is the name of the configuration file to convert. <br>
<br>
For example, if you want all email addressed to any domain.com account to be delivered to <bob@otherdomain.com>, you need to add a line to the virtusertable file&#58 <br>
<br>
@domain.com bob@otherdomain.com <br>
<br>
<br>
<br>
Then, to add this new information to the virtusertable.db file, execute makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable as root. This will create a new virtusertable.db that contains the new configuration. <br>
<br>
Common Sendmail Configuration Changes <br>
============================================= <br>
Although a default sendmail.cf file is installed in /etc/ during the Red Hat Linux installation process, you will need to alter it to utilize some of the program's more advanced features. <br>
<br>
When altering the Sendmail configuration file, it is best generate a entirely new /etc/sendmail.cf file instead of editing an existing one. <br>
<br>
<br>
Important <br>
Before changing the sendmail.cf file, it is a good idea to backup the default version. <br>
<br>
<br>
To add the desired functionality Sendmail edit the /etc/mail/sendmail.mc file. When you are finished, use the m4 macro processor to generate a new sendmail.cf by executing the m4 /etc/mail/sendmail.mc > /etc/sendmail.cf command. After creating a new /etc/sendmail.cf, you must restart Sendmail to make it take effect. The easiest way to do this is to type the /sbin/service sendmail restart command as root. <br>
<br>
By default, the m4 macro processor is installed with Sendmail. The m4 macro processor is included with the sendmail-cf package. <br>
<br>
<br>
Important <br>
The default sendmail.cf does not allow sendmail to accept network connections from any host other than the local computer. If you want to configure sendmail as a server for other clients, please edit /etc/mail/sendmail.mc and change DAEMON_OPTIONS to also listen on network devices or comment out this option all together. Then regenerate /etc/sendmail.cf by running: <br>
<br>
<br>
This configuration should work for most SMTP-only sites. It will not work for UUCP (UNIX to UNIX Copy) sites; you will need to generate a new sendmail.cf if you must use UUCP mail transfers. <br>
<br>
You should consult the /usr/share/sendmail-cf/README file before you edit any of the files in the directories under the /usr/share/sendmail-cf directory, as they can affect how future /etc/sendmail.cf files are configured. <br>
<br>
Masquerading <br>
============================================= <br>
One common Sendmail configuration is to have a single machine act as a mail gateway for all the machines on the network. For instance, a company may want to have a machine called mail.bigcorp.com that does all their mail. On that machine, add the names of machines for which mail.bigcorp.com will handle mail to /etc/mail/local-host-names. Here is an example: <br>
<br>
# sendmail.cw - include all aliases for your machine <br>
# here. <br>
torgo.bigcorp.com <br>
poodle.bigcorp.com <br>
devel.bigcorp.com <br>
<br>
<br>
<br>
<br>
On the other machines, torgo, poodle, and devel, edit /etc/sendmail.cf to "masquerade" as mail.bigcorp.com when sending mail and to forward any local mail processing to bigcorp.com. Find the DH and DM lines in /etc/sendmail.cf and edit them as such: <br>
<br>
# who I send unqualified names to <br>
# (null means deliver locally) <br>
DRmail.bigcorp.com <br>
<br>
# who gets all local email traffic <br>
DHmail.bigcorp.com <br>
<br>
# who I masquerade as (null for no masquerading) <br>
DMbigcorp.com <br>
<br>
<br>
<br>
With this type of configuration, all mail sent will appear as if it were sent from bigcorp.com, and any mail sent to torgo.bigcorp.com or the other hosts will be delivered to mail.bigcorp.com. <br>
<br>
Stopping Spam with Sendmail <br>
============================================= <br>
Email spam can be defined as unnecessary and unwanted email received by a user who never requested the communication. It is a disruptive, costly, and widespread abuse of Internet communication standards. <br>
<br>
Sendmail has made it relatively easy to block new spamming techniques being employed to send junk email using your system. It even blocks many of the more usual spamming methods by default. You would need to consciously activate them by changing your /etc/mail/sendmail.mc file in a particular way to make your system susceptible. <br>
<br>
For example, forwarding of SMTP messages, also referred to as SMTP relaying, has been disabled by default since Sendmail version 8.9. Before this change occurred, Sendmail would direct your mail host (x.org) to accept messages from one party (y.com) and send them to a different party (z.net). Now, however, you have to specifically tell Sendmail to permit a domain to relay mail through your domain. Simply edit the /etc/mail/relay-domains file and restart Sendmail by typing the service sendmail restart command as root to activate the changes. <br>
<br>
However, many times, your users may be bombarded with spam from other servers throughout the Internet that are beyond your control. In these instances, you can use Sendmail's access control features available through the /etc/mail/access file. As root, add the domains that you would like to block or specifically allow access, such as: <br>
<br>
badspammer.com 550 Go away and do not spam us anymore <br>
tux.badspammer.com OK <br>
10.0 RELAY <br>
<br>
<br>
<br>
Because /etc/mail/access.db is a database, you need to use makemap to activate your changes by recreating the database map. This is easily done by running the makemap hash /etc/mail/access < /etc/mail/access command as root. <br>
<br>
This example shows that any email sent from badspammer.com would be blocked with a 550 RFC-821 compliant error code and message back to the spammer, except for email sent from the tux.badspammer.com sub-domain, which would be accepted. The last line shows that any email sent from the 10.0.*.* network can be relayed through your mail server. <br>
<br>
As you might expect, this example only scratches the surface of what Sendmail can do in terms of allowing or blocking access. See the /usr/share/doc/sendmail/README.cf for more detailed information and examples. <br>
<br>
Using Sendmail with LDAP <br>
============================================= <br>
Using the Lightweight Directory Access Protocol (LDAP) is a very quick and powerful way to find specific information about a particular user from a much larger group. For example, you could use an LDAP server to look up a particular email address from a common corporate directory by a user's last name. In this kind of implementation, LDAP is largely separate from Sendmail, with LDAP storing the hierarchical user information and Sendmail only being given the result of LDAP queries in pre-addressed email messages. <br>
<br>
However, Sendmail supports a much greater integration with LDAP, where it uses LDAP to replace separately maintained files, such as aliases and virtusertables, on different mail servers that work together to support a medium- to enterprise-level organization. In short, you can use LDAP to abstract the mail routing level from Sendmail and its separate configuration files to a powerful LDAP cluster that is being leveraged by many different applications. <br>
<br>
The current version of Sendmail contains support for LDAP. To extend your Sendmail server using LDAP, first get an LDAP server, such as OpenLDAP, running and properly configured. Then, you need to edit your /etc/mail/sendmail.mc to include: <br>
<br>
LDAPROUTE_DOMAIN('yourdomain.com')dnl <br>
FEATURE('ldap_routing')dnl <br>
<br>
<br>
<br>
<br>
Note <br>
This is only for a very basic configuration of Sendmail with LDAP. Your configuration should differ greatly from this depending on your implementation of LDAP, especially if you wish to configure several Sendmail machines to use a common LDAP server. <br>
<br>
Consult /usr/share/doc/sendmail/README.cf for detailed LDAP routing configuration instructions and examples. <br>
<br>
<br>
Next, recreate your /etc/sendmail.cf file by running m4 and restarting Sendmail. See the Section called Common Sendmail Configuration Changes for instructions on doing this. <br>
<br>
<br>
沙发
 楼主| 发表于 2003-6-23 16:40:40 | 只看该作者

Re:Exchange 2000常见问题解决集---仅供参考,请各位勿回贴,谢谢!

如果对OWA, Outlook等客户端语言设置比较关心的用户,应该看看这个文档,或者对你会 <br>
有不少帮助: <br>
<br>
How Special Folder Names Are Assigned for Multiple Language Clients in <br>
Exchange 2000 Server <br>
<br>
<a target=_blank href=http://support.microsoft.com/?id=325625>http://support.microsoft.com/?id=325625</a> <br>
<br>
The information in this article applies to: <br>a.. Microsoft Exchange 2000 Server <br>
This article was previously published under Q325625 <br>a.. Summary <br>b.. Folder Names for MAPI Clients <br>c.. Folder Names for Non-MAPI Clients <br>d.. Change the Language of the Folder Names <br>
SUMMARY <br>
This article discusses the way that the information store assigns folder <br>
names if your Exchange 2000 supports multiple-language MAPI and non-MAPI <br>
clients. <br>
<br>
back to the top <br>
<br>
<br>
Folder Names for MAPI Clients <br>
The first time that a user logs on to an Exchange 2000 mailbox by using a <br>
MAPI client (Microsoft Outlook, for example), the information store creates <br>
the special folders that Exchange 2000 uses in the language that is <br>
appropriate for that client. The information store determines the language <br>
by using the client's Locale ID property &#118alue. The client language is used <br>
to generate the folder names for the special Server folders, which include: <br>a.. Inbox <br>b.. Outbox <br>c.. Sent Items <br>d.. Deleted Items <br>
The client language is also used to generate the names of the special <br>
Outlook folders (which are generated by Collaboration Data Objects [CDO]). <br>
These include: <br>a.. Calendar <br>b.. Contacts <br>c.. Drafts <br>d.. Journal <br>e.. Notes <br>f.. Tasks <br>
back to the top <br>
<br>
<br>
Folder Names for Non-MAPI Clients <br>
The first time that a user logs on to an Exchange 2000 mailbox by using a <br>
POP3 or IMAP4 client, (Microsoft Outlook Express, for example), the folder <br>
names are generated in the client language if either of the following <br>
conditions is true: <br>a.. The user completes a task that commits information to the server. <br>
<br>-or- <br>b.. The user touches the server, such as by sending or receiving mail. <br>
If a user logs on with a POP3 or IMAP4 client and does not touch the server, <br>
the folder names are not generated. For example, if a user logs on to the <br>
server and then immediately logs off of the server, they have not touched <br>
the server. If a user logs on to the server at a later date and then touches <br>
the server, the folder names are generated in the client language. For <br>
additional information about how folder names are assigned in Outlook Web <br>
Access (OWA), click the article number below to view the article in the <br>
Microsoft Knowledge Base: <br>
<br>
325626 XGEN: How Special Folder Names are Assigned in Outlook Web Access <br>
(OWA) <br>
<br>
back to the top <br>
<br>
<br>
Change the Language of the Folder Names <br>
After the names of the special folders have been generated, the folder <br>
assignments cannot be changed. However, you can change the language of the <br>
folder assignments if the language to which they were set is incorrect. For <br>
example, if an uninitialized mailbox receives an e-mail message, the names <br>
of the folders are set to the language of the Exchange 2000 server, instead <br>
of to the language of the client. <br>
<br>
NOTE: An uninitialized mailbox is a mailbox that has been created but whose <br>
owner has not yet logged on to it. <br>
<br>
For additional information about how to rename special folders, click the <br>
article number below to view the article in the Microsoft Knowledge Base: <br>
<br>
251636 XADM: Cannot Rename the Default Mailbox Folders from the System <br>
Manager <br>
<br>
<br>
Another method to rename the special folders is to use Microsoft Outlook <br>
2002. To do this, configure Outlook to use the language that you want the <br>
special folders to use on the Exchange 2000 server, and then start Outlook <br>
with the /resetfoldernames command-line switch. For additional information <br>
about command-line switches for Outlook 2002, click the article number below <br>
to view the article in the Microsoft Knowledge Base: <br>
<br>
296192 OL2002: Additional Command-Line Switches <br>
<br>
藤椅
发表于 2004-7-12 14:22:06 | 只看该作者

Re:使用rh7.3 sendmail作邮件服务器的请参考下文

nice doc
板凳
发表于 2004-9-15 16:48:01 | 只看该作者

re:钉子哥,是不是针对不同版本的sendma...

钉子哥,是不是针对不同版本的sendmail都可以呀<br>
<br>
我的sendmail是red hat linux 8.0系统自带的。
您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

小黑屋|手机版|Archiver|邮件技术资讯网

GMT+8, 2024-12-28 02:40

Powered by Discuz! X3.2

© 2001-2016 Comsenz Inc.

本论坛为非盈利中立机构,所有言论属发表者个人意见,不代表本论坛立场。内容所涉及版权和法律相关事宜请参考各自所有者的条款。
如认定侵犯了您权利,请联系我们。本论坛原创内容请联系后再行转载并务必保留我站信息。此声明修改不另行通知,保留最终解释权。
*本论坛会员专属QQ群:邮件技术资讯网会员QQ群
*本论坛会员备用QQ群:邮件技术资讯网备用群

快速回复 返回顶部 返回列表