Gentoo Archives: gentoo-user

From: Michael Sullivan <michael@××××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: Re[4]: [gentoo-user] OT - Exim question
Date: Fri, 14 Mar 2008 02:07:52
Message-Id: 1205460469.11582.23.camel@camille.espersunited.com
In Reply to: Re[4]: [gentoo-user] OT - Exim question by Sergey Kobzar
1 On Thu, 2008-03-13 at 22:29 +0200, Sergey Kobzar wrote:
2 > Hi Michael,
3 >
4 > Thursday, March 13, 2008, 10:15:33 PM, you wrote:
5 >
6 > > It didn't work:
7 >
8 > > Mar 13 15:13:31 baby exim[26470]: 2008-03-13 15:13:31 unqualified
9 > > recipient rejected: <amy> H=([192.168.0.2]) [192.168.1.100] (failed to
10 > > find host name from IP address)
11 > > baby bind # grep 192.168.1.100 /etc/exim/exim.conf
12 > > hostlist relay_from_hosts = 127.0.0.1 : 192.168.1.2 : 192.168.1.3 :
13 > > 192.168.1.4 : 192.168.0.2 192.168.1.100
14 >
15 > > Is there any other option?
16 >
17 > 1. Show your config.
18 > 2. Tell Exim to not do resolving for hosts from 192.168.0/24 and
19 > 192.168.1/24 networks (host_lookup option).
20 >
21 >
22 > --
23 > Sergey
24 >
25
26 Here's the config. I think I have my sed command correct to remove the
27 commented lines from the listing:
28
29 baby ~ # cat /etc/exim/exim.conf | sed /#/d
30 domainlist local_domains = @ : espersunited.com :
31 baby.espersunited.com : localhost : localdomain :
32 camille.espersunited.com : catherine.espersunited.com : camille :
33 catherine
34 domainlist relay_to_domains =
35 hostlist relay_from_hosts = 127.0.0.1 : 192.168.1.2 : 192.168.1.3 :
36 192.168.1.4 : 192.168.0.2 192.168.1.100
37 acl_smtp_rcpt = acl_check_rcpt
38 acl_smtp_data = acl_check_data
39 acl_smtp_mime = acl_check_mime
40 av_scanner = clamd:/tmp/clamd
41 spamd_address = 127.0.0.1 783
42 qualify_domain = espersunited.com
43 never_users = root
44 host_lookup = *
45 rfc1413_hosts = *
46 rfc1413_query_timeout = 5s
47 sender_unqualified_hosts = baby.espersunited.com :
48 camille.espersunited.com : catherine.espersunited.com :
49 localhost.localdomain
50 recipient_unqualified_hosts = baby.espersunited.com :
51 camille.espersunited.com : catherine.espersunited.com :
52 localhost.localdomain
53 ignore_bounce_errors_after = 2d
54 timeout_frozen_after = 7d
55 begin acl
56 acl_check_rcpt:
57 accept hosts = :
58 deny message = Restricted characters in address
59 domains = +local_domains
60 local_parts = ^[.] : ^.*[@%!/|]
61
62
63 deny message = Restricted characters in address
64 domains = !+local_domains
65 local_parts = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
66
67
68 accept local_parts = postmaster
69 domains = +local_domains
70
71
72 require verify = sender
73
74
75
76
77 accept hosts = +relay_from_hosts
78 control = submission
79
80
81 accept authenticated = *
82 control = submission
83
84
85 require message = relay not permitted
86 domains = +local_domains : +relay_to_domains
87
88
89 require verify = recipient
90
91
92
93
94 accept
95
96
97
98
99 acl_check_data:
100
101
102
103
104
105
106 warn message = X-SpamScore: $spam_score ($spam_bar)
107 spam = nobody:true
108 warn message = X-SpamReport: $spam_report
109 spam = nobody:true
110 warn message = X-Spam-Flag: ${if \
111 >{$spam_score_int}{58}{Almost Certainly}\
112 {${if >{$spam_score_int}{55}{Probably}\
113 {${if >{$spam_score_int}{50}{Possibly}{Doubtful}\
114 }}}}}
115 spam = nobody
116 warn message = Subject: [*SPAM*] $h_Subject ${if \
117 >{$spam_score_int}{58}{Almost Certainly}\
118 {${if >{$spam_score_int}{55}{Probably}\
119 {${if >{$spam_score_int}{50}{Possibly}{Doubtful}\
120 }}}}}
121 spam = nobody
122
123 deny message = Rejected: spam score $spam_score
124 spam = nobody:true
125 condition = ${if >{$spam_score_int}{60}{1}{0}}
126
127 accept
128
129 acl_check_mime:
130 warn decode = default
131
132 deny message = Blacklisted file extension detected
133 condition = ${if match \
134 {${lc:$mime_filename}} \
135 {\N(\.exe|\.pif|\.bat|\.scr|\.lnk|\.com|.vbs)$\N} \
136 {1}{0}}
137
138 accept
139 acl_check_content:
140 deny message = Serious MIME defect detected ($demime_reason)
141 demime = *
142 condition = ${if >{$demime_errorlevel}{2}{1}{0}}
143
144 deny message = This message contains malware ($malware_name)
145 malware = *
146
147 warn message = X-Spam-Score: $spam_score ($spam_bar)
148 spam = nobody:true
149 warn message = X-Spam-Report: $spam_report
150 spam = nobody:true
151
152 warn message = Subject: [*SPAM*] $h_Subject
153 spam = nobody
154
155 deny message = This message scored $spam_score points.
156 Congratulations!
157 spam = nobody:true
158 condition = ${if >{$spam_score_int}{50}{1}{0}}
159
160 accept
161
162
163
164 begin routers
165
166
167
168
169
170 dnslookup:
171 driver = dnslookup
172 domains = ! +local_domains
173 transport = remote_smtp
174 ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
175 no_more
176
177
178
179
180
181 system_aliases:
182 driver = redirect
183 allow_fail
184 allow_defer
185 data = ${lookup{$local_part}lsearch{/etc/mail/aliases}}
186 file_transport = address_file
187 pipe_transport = address_pipe
188
189
190
191
192
193
194
195 userforward:
196 driver = redirect
197 check_local_user
198 file = $home/.forward
199 no_verify
200 no_expn
201 check_ancestor
202 file_transport = address_file
203 pipe_transport = address_pipe
204 reply_transport = address_reply
205
206
207
208
209 localuser:
210 driver = accept
211 check_local_user
212 transport = local_delivery
213 cannot_route_message = Unknown user
214
215
216
217
218
219 begin transports
220
221
222
223 remote_smtp:
224 driver = smtp
225
226
227
228 local_delivery:
229 driver = appendfile
230 directory = /home/$local_part/.maildir
231 maildir_format
232 delivery_date_add
233 envelope_to_add
234 return_path_add
235
236
237
238 address_pipe:
239 driver = pipe
240 return_output
241
242
243
244 address_file:
245 driver = appendfile
246 delivery_date_add
247 envelope_to_add
248 return_path_add
249
250
251
252 address_reply:
253 driver = autoreply
254
255
256
257
258 begin retry
259
260
261
262 * * F,2h,15m; G,16h,1h,1.5; F,4d,6h
263
264
265
266
267
268 begin rewrite
269
270
271
272
273
274 begin authenticators
275
276
277
278
279
280
281
282
283
284
285 I'm not quite sure how to word the host_lookup option. I'm not sure how
286 to tell it not to do host lookups for my network and subnetwork, but
287 still do lookups for everyone else...
288
289 --
290 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re[6]: [gentoo-user] OT - Exim question Sergey Kobzar <tod.zullu@×××××.com>