LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: fleagle

安装 Exim 邮件服务器

[复制链接]
发表于 2004-11-14 02:07:00 | 显示全部楼层
exim4应该修改哪个配置文件,我都想试一下。
发表于 2004-11-14 16:41:06 | 显示全部楼层
为什么我用mutt发邮件,总是提示xxx@163.com mailing to remote domains not supported。
发表于 2004-11-14 17:41:53 | 显示全部楼层
其实个人使用,xmail方便多了。
发表于 2005-4-22 21:48:09 | 显示全部楼层
为什么我总不能通过认证??
我的配置文件有问题?请各位帮我看看
谢谢先

pii:/var/log/exim# cat rejectlog
2005-04-22 21:37:21 Authentication failed for (LJ-silver) [59.64.176.33]: 535 Incorrect authentication data
------------------------------------------------------------------------------
2005-04-22 21:38:14 Authentication failed for (LJ-silver) [59.64.176.33]: 535 Incorrect authentication data
------------------------------------------------------------------------------
2005-04-22 21:40:15 Authentication failed for (LJ-silver) [59.64.176.33]: 535 Incorrect authentication data
------------------------------------------------------------------------------
pii:/var/log/exim#


pii:/var/log/exim# cat mainlog
2005-04-22 21:25:50 Failed to create IPv6 socket for wildcard listening (Address family not supported by protocol): falling back to IPv4
2005-04-22 21:25:50 exim 3.35 daemon started: pid=12063, -q30m, listening for SMTP on port 25
2005-04-22 21:25:51 Start queue run: pid=12065
2005-04-22 21:25:51 End queue run: pid=12065
2005-04-22 21:28:08 Start queue run: pid=12087 -qf
2005-04-22 21:28:08 End queue run: pid=12087 -qf
2005-04-22 21:30:06 1DOyEL-000391-00 <= root@smtp.bupticet.com U=root P=local S=594
2005-04-22 21:30:06 1DOyEL-000391-00 == lj-silver@smtp.bupticet.com <root@smtp.bupticet.com> D=userforward defer (-1): failed to stat /home/lj-silver (No such file or directory)
2005-04-22 21:37:01 Failed to create IPv6 socket for wildcard listening (Address family not supported by protocol): falling back to IPv4
2005-04-22 21:37:01 exim 3.35 daemon started: pid=12114, -q30m, listening for SMTP on port 25
2005-04-22 21:37:01 Start queue run: pid=12116
2005-04-22 21:37:01 1DOyEL-000391-00 == lj-silver@smtp.bupticet.com <root@smtp.bupticet.com> directing defer (-41): retry time not reached
2005-04-22 21:37:01 End queue run: pid=12116
2005-04-22 21:37:21 Authentication failed for (LJ-silver) [59.64.176.33]: 535 Incorrect authentication data
2005-04-22 21:38:01 Start queue run: pid=12124
2005-04-22 21:38:01 1DOyEL-000391-00 == lj-silver@smtp.bupticet.com <root@smtp.bupticet.com> directing defer (-41): retry time not reached
2005-04-22 21:38:01 End queue run: pid=12124
2005-04-22 21:38:14 Authentication failed for (LJ-silver) [59.64.176.33]: 535 Incorrect authentication data
2005-04-22 21:40:15 Authentication failed for (LJ-silver) [59.64.176.33]: 535 Incorrect authentication data
2005-04-22 21:45:01 1DOySr-00039t-00 <= root@smtp.bupticet.com U=root P=local S=547
2005-04-22 21:45:01 1DOySr-00039t-00 => lj-silver <root@smtp.bupticet.com> D=localuser T=local_delivery
2005-04-22 21:45:01 1DOySr-00039t-00 Completed
2005-04-22 21:53:02 Start queue run: pid=12162
2005-04-22 21:53:02 1DOyEL-000391-00 => lj-silver <root@smtp.bupticet.com> D=localuser T=local_delivery
2005-04-22 21:53:02 1DOyEL-000391-00 Completed
2005-04-22 21:53:02 End queue run: pid=12162
pii:/var/log/exim#




  1. # This is the main exim configuration file.
  2. # It was originally generated by `eximconfig', part of the exim package
  3. # distributed with Debian, but it may edited by the mail system administrator.
  4. # This file originally generated by eximconfig at Fri Apr 22 21:25:21 CST 2005
  5. # See exim info section for details of the things that can be configured here.

  6. # Please see the manual for a complete list
  7. # of all the runtime configuration options that can be included in a
  8. # configuration file.

  9. # This file is divided into several parts, all but the last of which are
  10. # terminated by a line containing the word "end". The parts must appear
  11. # in the correct order, and all must be present (even if some of them are
  12. # in fact empty). Blank lines, and lines starting with # are ignored.

  13. ######################################################################
  14. #                    MAIN CONFIGURATION SETTINGS                     #
  15. ######################################################################

  16. # Specify the domain you want to be added to all unqualified addresses
  17. # here. Unqualified addresses are accepted only from local callers by
  18. # default. See the receiver_unqualified_{hosts,nets} options if you want
  19. # to permit unqualified addresses from remote sources. If this option is
  20. # not set, the primary_hostname value is used for qualification.

  21. qualify_domain = smtp.bupticet.com

  22. # If you want unqualified recipient addresses to be qualified with a different
  23. # domain to unqualified sender addresses, specify the recipient domain here.
  24. # If this option is not set, the qualify_domain value is used.

  25. # qualify_recipient =

  26. # Specify your local domains as a colon-separated list here. If this option
  27. # is not set (i.e. not mentioned in the configuration file), the
  28. # qualify_recipient value is used as the only local domain. If you do not want
  29. # to do any local deliveries, uncomment the following line, but do not supply
  30. # any data for it. This sets local_domains to an empty string, which is not
  31. # the same as not mentioning it at all. An empty string specifies that there
  32. # are no local domains; not setting it at all causes the default value (the
  33. # setting of qualify_recipient) to be used.

  34. local_domains = localhost:smtp.bupticet.com:bupticet.com

  35. # Allow mail addressed to our hostname, or to our IP address.

  36. local_domains_include_host = true
  37. local_domains_include_host_literals = true

  38. # Domains we relay for; that is domains that aren't considered local but we
  39. # accept mail for them.

  40. relay_domains = *.bupticet.com
  41. sender_verify = true
  42. # If this is uncommented, we accept and relay mail for all domains we are
  43. # in the DNS as an MX for.

  44. relay_domains_include_local_mx = true

  45. # No local deliveries will ever be run under the uids of these users (a colon-
  46. # separated list). An attempt to do so gets changed so that it runs under the
  47. # uid of "nobody" instead. This is a paranoic safety catch. Note the default
  48. # setting means you cannot deliver mail addressed to root as if it were a
  49. # normal user. This isn't usually a problem, as most sites have an alias for
  50. # root that redirects such mail to a human administrator.

  51. never_users = root

  52. # The setting below causes Exim to do a reverse DNS lookup on all incoming
  53. # IP calls, in order to get the true host name. If you feel this is too
  54. # expensive, you can specify the networks for which a lookup is done, or
  55. # remove the setting entirely.

  56. host_lookup = *

  57. # The setting below would, if uncommented, cause Exim to check the syntax of
  58. # all the headers that are supposed to contain email addresses (To:, From:,
  59. # etc). This reduces the level of bounced bounces considerably.

  60. # headers_check_syntax

  61. # Exim contains support for the Realtime Blocking List (RBL), and the many
  62. # similar services that are being maintained as part of the DNS. See
  63. # http://www.mail-abuse.org/ for background. The line below, if uncommented,
  64. # will reject mail from hosts in the RBL, and add warning headers to mail
  65. # from hosts in a list of dynamic-IP dialups. Note that MAPS may charge
  66. # for this service.

  67. #rbl_domains = rbl.mail-abuse.org/reject : dialups.mail-abuse.org/warn

  68. # http://www.rfc-ignorant.org is another interesting site with a number of
  69. # services you can use with the rbl_domains option

  70. # The setting below allows your host to be used as a mail relay only by
  71. # localhost: it locks out the use of your host as a mail relay by any
  72. # other host. See the section of the manual entitled "Control of relaying"
  73. # for more info.

  74. host_accept_relay = 127.0.0.1 : ::::1

  75. # This setting allows anyone who has authenticated to use your host as a
  76. # mail relay. To use this you will need to set up some authenticators at
  77. # the end of the file

  78. host_auth_accept_relay = *

  79. # If you want Exim to support the "percent hack" for all your local domains,
  80. # uncomment the following line. This is the feature by which mail addressed
  81. # to x%y@z (where z is one of your local domains) is locally rerouted to
  82. # x@y and sent on. Otherwise x%y is treated as an ordinary local part

  83. # percent_hack_domains=*

  84. # If this option is set, then any process that is running as one of the
  85. # listed users may pass a message to Exim and specify the sender's
  86. # address using the "-f" command line option, without Exim's adding a
  87. # "Sender" header.

  88. trusted_users = mail

  89. # If this option is true, the SMTP command VRFY is supported on incoming
  90. # SMTP connections; otherwise it is not.

  91. smtp_verify = true

  92. # Some operating systems use the "gecos" field in the system password file
  93. # to hold other information in addition to users' real names. Exim looks up
  94. # this field when it is creating "sender" and "from" headers. If these options
  95. # are set, exim uses "gecos_pattern" to parse the gecos field, and then
  96. # expands "gecos_name" as the user's name. $1 etc refer to sub-fields matched
  97. # by the pattern.

  98. gecos_pattern = ^([^,:]*)
  99. gecos_name = $1

  100. # This sets the maximum number of messages that will be accepted in one
  101. # connection and immediately delivered. If one connection sends more
  102. # messages than this, any further ones are accepted and queued but not
  103. # delivered. The default is 10, which is probably enough for most purposes,
  104. # but is too low on dialup SMTP systems, which often have many more mails
  105. # queued for them when they connect.

  106. smtp_accept_queue_per_connection = 100

  107. # Send a mail to the postmaster when a message is frozen. There are many
  108. # reasons this could happen; one is if exim cannot deliver a mail with no
  109. # return address (normally a bounce) another that may be common on dialup
  110. # systems is if a DNS lookup of a smarthost fails. Read the documentation
  111. # for more details: you might like to look at the auto_thaw option

  112. freeze_tell_mailmaster = true

  113. # This string defines the contents of the \`Received' message header that
  114. # is added to each message, except for the timestamp, which is automatically
  115. # added on at the end, preceded by a semicolon. The string is expanded each
  116. # time it is used.

  117. received_header_text = "Received: \
  118.          ${if def:sender_rcvhost {from ${sender_rcvhost}\n\t}\
  119.          {${if def:sender_ident {from ${sender_ident} }}\
  120.          ${if def:sender_helo_name {(helo=${sender_helo_name})\n\t}}}}\
  121.          by ${primary_hostname} \
  122.          ${if def:received_protocol {with ${received_protocol}}} \
  123.          (Exim ${version_number} #${compile_number} (Debian))\n\t\
  124.          id ${message_id}\
  125.          ${if def:received_for {\n\tfor <$received_for>}}"

  126. # Attempt to verify recipient address before receiving mail, so that mails
  127. # to invalid addresses are rejected rather than accepted and then bounced.
  128. # Apparently some spammers are abusing servers that accept and then bounce
  129. # to send bounces containing their spam to people.

  130. receiver_try_verify = true

  131. # This would make exim advertise the 8BIT-MIME option. According to
  132. # RFC1652, this means it will take an 8bit message, and ensure it gets
  133. # delivered correctly. exim won't do this: it is entirely 8bit clean
  134. # but won't do any conversion if the next hop isn't. Therefore, if you
  135. # set this option you are asking exim to lie and not be RFC
  136. # compliant. But some people want it.

  137. #accept_8bitmime = true

  138. # This will cause it to accept mail only from the local interface

  139. #local_interfaces = 127.0.0.1

  140. # If this next line is uncommented, any user can see the mail queue
  141. # by using the mailq command or exim -bp.

  142. #queue_list_requires_admin = false

  143. #
  144. end


  145. ######################################################################
  146. #                      TRANSPORTS CONFIGURATION                      #
  147. ######################################################################
  148. #                       ORDER DOES NOT MATTER                        #
  149. #     Only one appropriate transport is called for each delivery.    #
  150. ######################################################################

  151. # This transport is used for local delivery to user mailboxes. On debian
  152. # systems group mail is used so we can write to the /var/spool/mail
  153. # directory. (The alternative, which most other unixes use, is to deliver
  154. # as the user's own group, into a sticky-bitted directory)

  155. local_delivery:
  156.   driver = appendfile
  157.   group = mail
  158.   mode = 0660
  159.   mode_fail_narrower = false
  160.   envelope_to_add = true
  161.   return_path_add = true
  162.   file = /var/spool/mail/${local_part}

  163. maildir_tag = ,S=$message_size
  164. quota = ${lookup{$local_part}lsearch*{/etc/exim/quota}{$value}{0M}}
  165. quota_size_regex = S=(\d+)$
  166. quota_warn_threshold = 85%
  167. quota_warn_message = "\
  168. To: $local_part@$domain\n\
  169. Subject: Your mailbox full\n\n\
  170. This message is automatically created \
  171. by mail delivery software.\n\n\
  172. The size of your mailbox has exceeded \
  173. a warning threshold that is\n\
  174. set by the system administrator.\n"

  175. #message_size_limit = 5M


  176. # This transport is used for handling pipe addresses generated by
  177. # alias or .forward files. If the pipe generates any standard output,
  178. # it is returned to the sender of the message as a delivery error. Set
  179. # return_fail_output instead if you want this to happen only when the
  180. # pipe fails to complete normally.

  181. address_pipe:
  182.   driver = pipe
  183.   path = /usr/bin:/bin:/usr/local/bin
  184.   return_output

  185. # This transport is used for handling file addresses generated by alias
  186. # or .forward files.

  187. address_file:
  188.   driver = appendfile
  189.   envelope_to_add = true
  190.   return_path_add = true

  191. # This transport is used for handling file addresses generated by alias
  192. # or .forward files if the path ends in "/", which causes it to be treated
  193. # as a directory name rather than a file name. Each message is then delivered
  194. # to a unique file in the directory. If instead you want all such deliveries to
  195. # be in the "maildir" format that is used by some other mail software,
  196. # uncomment the final option below. If this is done, the directory specified
  197. # in the .forward or alias file is the base maildir directory.
  198. #
  199. # Should you want to be able to specify either maildir or non-maildir
  200. # directory-style deliveries, then you must set up yet another transport,
  201. # called address_directory2. This is used if the path ends in "//" so should
  202. # be the one used for maildir, as the double slash suggests another level
  203. # of directory. In the absence of address_directory2, paths ending in //
  204. # are passed to address_directory.

  205. address_directory:
  206.   driver = appendfile
  207.   no_from_hack
  208.   prefix = ""
  209.   suffix = ""
  210. # maildir_format

  211. # This transport is used for handling autoreplies generated by the filtering
  212. # option of the forwardfile director.

  213. address_reply:
  214.   driver = autoreply

  215. # This transport is used for procmail

  216. procmail_pipe:
  217.   driver = pipe
  218.   command = "/usr/bin/procmail"
  219.   return_path_add
  220.   delivery_date_add
  221.   envelope_to_add
  222. # check_string = "From "
  223. # escape_string = ">From "
  224.   suffix = ""


  225. # This transport is used for delivering messages over SMTP connections.

  226. remote_smtp:
  227.   driver = smtp
  228. # authenticate_hosts = smarthost.isp.com

  229. # To use SMTP AUTH when sending to a particular host, such as your ISP's
  230. # smarthost, uncomment and edit the above line, and also the example
  231. # client-side authenticators at the bottom of the file

  232. end


  233. ######################################################################
  234. #                      DIRECTORS CONFIGURATION                       #
  235. #             Specifies how local addresses are handled              #
  236. ######################################################################
  237. #                          ORDER DOES MATTER                         #
  238. #   A local address is passed to each in turn until it is accepted.  #
  239. ######################################################################

  240. # This allows local delivery to be forced, avoiding alias files and
  241. # forwarding.

  242. real_local:
  243.   prefix = real-
  244.   driver = localuser
  245.   transport = local_delivery

  246. # This director handles aliasing using a traditional /etc/aliases file.
  247. # If any of your aliases expand to pipes or files, you will need to set
  248. # up a user and a group for these deliveries to run under. You can do
  249. # this by uncommenting the "user" option below (changing the user name
  250. # as appropriate) and adding a "group" option if necessary.

  251. system_aliases:
  252.   driver = aliasfile
  253.   file_transport = address_file
  254.   pipe_transport = address_pipe
  255.   file = /etc/aliases
  256.   search_type = lsearch
  257. # user = list
  258. # Uncomment the above line if you are running smartlist


  259. # This director handles forwarding using traditional .forward files.
  260. # It also allows mail filtering when a forward file starts with the
  261. # string "# Exim filter": to disable filtering, uncomment the "filter"
  262. # option. The check_ancestor option means that if the forward file
  263. # generates an address that is an ancestor of the current one, the
  264. # current one gets passed on instead. This covers the case where A is
  265. # aliased to B and B has a .forward file pointing to A.

  266. # For standard debian setup of one group per user, it is acceptable---normal
  267. # even---for .forward to be group writable. If you have everyone in one
  268. # group, you should comment out the "modemask" line. Without it, the exim
  269. # default of 022 will apply, which is probably what you want.

  270. userforward:
  271.   driver = forwardfile
  272.   file_transport = address_file
  273.   pipe_transport = address_pipe
  274.   reply_transport = address_reply
  275.   no_verify
  276.   check_ancestor
  277.   check_local_user
  278.   file = .forward
  279.   modemask = 002
  280.   filter

  281. # This director runs procmail for users who have a .procmailrc file

  282. procmail:
  283.   driver = localuser
  284.   transport = procmail_pipe
  285.   require_files = ${local_part}:+${home}:+${home}/.procmailrc:+/usr/bin/procmail
  286.   no_verify
  287.    
  288. # This director matches local user mailboxes.

  289. localuser:
  290.   driver = localuser
  291.   transport = local_delivery

  292. end


  293. ######################################################################
  294. #                      ROUTERS CONFIGURATION                         #
  295. #            Specifies how remote addresses are handled              #
  296. ######################################################################
  297. #                          ORDER DOES MATTER                         #
  298. #  A remote address is passed to each in turn until it is accepted.  #
  299. ######################################################################

  300. # Remote addresses are those with a domain that does not match any item
  301. # in the "local_domains" setting above.

  302. # This router routes to remote hosts over SMTP using a DNS lookup with
  303. # default options.

  304. lookuphost:
  305.   driver = lookuphost
  306.   transport = remote_smtp

  307. # This router routes to remote hosts over SMTP by explicit IP address,
  308. # given as a "domain literal" in the form [nnn.nnn.nnn.nnn]. The RFCs
  309. # require this facility, which is why it is enabled by default in Exim.
  310. # If you want to lock it out, set forbid_domain_literals in the main
  311. # configuration section above.

  312. literal:
  313.   driver = ipliteral
  314.   transport = remote_smtp

  315. end


  316. ######################################################################
  317. #                      RETRY CONFIGURATION                           #
  318. ######################################################################

  319. # This single retry rule applies to all domains and all errors. It specifies
  320. # retries every 15 minutes for 2 hours, then increasing retry intervals,
  321. # starting at 2 hours and increasing each time by a factor of 1.5, up to 16
  322. # hours, then retries every 8 hours until 4 days have passed since the first
  323. # failed delivery.

  324. # Domain               Error       Retries
  325. # ------               -----       -------

  326. *                      *           F,2h,15m; G,16h,2h,1.5; F,4d,8h

  327. end


  328. ######################################################################
  329. #                      REWRITE CONFIGURATION                         #
  330. ######################################################################


  331. # There are no rewriting specifications in this default configuration file.


  332. # This rewriting rule is particularly useful for dialup users who
  333. # don't have their own domain, but could be useful for anyone.
  334. # It looks up the real address of all local users in a file

  335. *@smtp.bupticet.com    ${lookup{$1}lsearch{/etc/email-addresses}\
  336.                                                 {$value}fail} frFs

  337. end

  338. ######################################################################
  339. #                   AUTHENTICATION CONFIGURATION                     #
  340. ######################################################################

  341. # Look in the documentation (in package exim-doc or exim-doc-html for
  342. # information on how to set up authenticated connections.

  343. # The examples below are for server side authentication; they allow two
  344. # styles of plain-text authentication against an /etc/exim/passwd file
  345. # which should have user IDs in the first column and crypted passwords
  346. # in the second.

  347. plain:
  348.    driver = plaintext
  349.    public_name = PLAIN
  350.    server_condition = "${if crypteq{$2}{${extract{1}{:}{${lookup{$1}lsearch{/etc/exim/passwd}{$value}{*:*}}}}}{1}{0}}"
  351.    server_set_id = $1

  352. login:
  353.    driver = plaintext
  354.    public_name = LOGIN
  355.    server_prompts = "Username:: : Password::"
  356.    server_condition = "${if crypteq{$2}{${extract{1}{:}{${lookup{$1}lsearch{/etc/exim/passwd}{$value}{*:*}}}}}{1}{0}}"
  357.    server_set_id = $1

  358. # These examples below are the equivalent for client side authentication.
  359. # They assume that you only use client side authentication to connect to
  360. # one host (such as a smarthost at your ISP), or else use the same user
  361. # name and password everywhere

  362. # plain:
  363. #   driver = plaintext
  364. #   public_name = PLAIN
  365. #   client_send = "^username^password"
  366. #
  367. # login:
  368. #   driver = plaintext
  369. #   public_name = LOGIN
  370. #   client_send = ": username : password"
  371. #
  372. # cram_md5:
  373. #   driver = cram_md5
  374. #   public_name = CRAM-MD5
  375. #   client_name = username
  376. #   client_secret = password

  377. # End of Exim configuration file
复制代码
回复 支持 反对

使用道具 举报

发表于 2005-6-29 11:51:04 | 显示全部楼层
Post by 难免有错
为什么我用mutt发邮件,总是提示xxx@163.com mailing to remote domains not supported。

我也是一样,不能往外发信
我的exim就从来没有正式工作,我也不知道该如何处理,郁闷
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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