1 |
I have three computers: |
2 |
|
3 |
baby.espersunited.com (192.168.1.2) |
4 |
camille.espersunited.com (192.168.1.3) |
5 |
catherine.espersunited.com (192.168.1.4) |
6 |
|
7 |
camille and catherine are running ssmpt: |
8 |
|
9 |
camille ~ # emerge -pv ssmtp |
10 |
|
11 |
These are the packages that would be merged, in order: |
12 |
|
13 |
Calculating dependencies... done! |
14 |
[ebuild R ] mail-mta/ssmtp-2.61-r2 USE="ipv6 ssl -mailwrapper |
15 |
-md5sum" 53 kB |
16 |
|
17 |
Total: 1 package (1 reinstall), Size of downloads: 53 kB |
18 |
|
19 |
|
20 |
catherine ~ # emerge -pv ssmtp |
21 |
|
22 |
These are the packages that would be merged, in order: |
23 |
|
24 |
Calculating dependencies... done! |
25 |
[ebuild R ] mail-mta/ssmtp-2.61-r2 USE="ipv6 ssl -mailwrapper |
26 |
-md5sum" 53 kB |
27 |
|
28 |
Total: 1 package (1 reinstall), Size of downloads: 53 kB |
29 |
|
30 |
|
31 |
baby is running exim: |
32 |
|
33 |
baby ~ # emerge -pv exim |
34 |
|
35 |
These are the packages that would be merged, in order: |
36 |
|
37 |
Calculating dependencies... done! |
38 |
[ebuild R ] mail-mta/exim-4.67 USE="exiscan exiscan-acl ldap mysql |
39 |
pam perl sasl ssl syslog tcpd -X -dnsdb -domainkeys -dovecot-sasl |
40 |
-gnutls -ipv6 -lmtp -mailwrapper -mbox -mbx -nis -postgres -radius -spf |
41 |
-sqlite -srs" 0 kB |
42 |
|
43 |
Total: 1 package (1 reinstall), Size of downloads: 0 kB |
44 |
|
45 |
|
46 |
|
47 |
camille ~ # emerge -pv ssmtp |
48 |
|
49 |
These are the packages that would be merged, in order: |
50 |
|
51 |
Calculating dependencies... done! |
52 |
[ebuild R ] mail-mta/ssmtp-2.61-r2 USE="ipv6 ssl -mailwrapper |
53 |
-md5sum" 53 kB |
54 |
|
55 |
Total: 1 package (1 reinstall), Size of downloads: 53 kB |
56 |
camille ~ # cat /etc/ssmtp/revaliases |
57 |
# sSMTP aliases |
58 |
# |
59 |
# Format: local_account:outgoing_address:mailhub |
60 |
# |
61 |
# Example: root:your_login@××××.domain:mailhub.your.domain[:port] |
62 |
# where [:port] is an optional port number that defaults to 25. |
63 |
# |
64 |
michael:michael@baby:baby.espersunited.com |
65 |
root:root@baby:baby.espersunited.com |
66 |
postmaster:root@baby:baby.espersunited.com |
67 |
|
68 |
|
69 |
|
70 |
catherine ~ # cat /etc/ssmtp/revaliases |
71 |
# sSMTP aliases |
72 |
# |
73 |
# Format: local_account:outgoing_address:mailhub |
74 |
# |
75 |
# Example: root:your_login@××××.domain:mailhub.your.domain[:port] |
76 |
# where [:port] is an optional port number that defaults to 25. |
77 |
# |
78 |
root:root@baby:baby.espersunited.com |
79 |
amy@catherine:amy@baby:baby.espersunited.com |
80 |
|
81 |
|
82 |
Here is baby's exim.conf: |
83 |
|
84 |
baby ~ # cat /etc/exim/exim.conf | sed '/#/ d' |
85 |
|
86 |
domainlist local_domains = @ : espersunited.com : |
87 |
baby.espersunited.com : localhost : localdomain : |
88 |
camille.espersunited.com : catherine.espersunited.com : camille : |
89 |
catherine |
90 |
domainlist relay_to_domains = |
91 |
hostlist relay_from_hosts = 127.0.0.1 : 192.168.1.2 : 192.168.1.3 : |
92 |
192.168.1.4 |
93 |
acl_smtp_rcpt = acl_check_rcpt |
94 |
acl_smtp_data = acl_check_data |
95 |
acl_smtp_mime = acl_check_mime |
96 |
av_scanner = clamd:/tmp/clamd |
97 |
spamd_address = 127.0.0.1 783 |
98 |
qualify_domain = espersunited.com |
99 |
never_users = root |
100 |
host_lookup = * |
101 |
rfc1413_hosts = * |
102 |
rfc1413_query_timeout = 5s |
103 |
sender_unqualified_hosts = baby.espersunited.com : |
104 |
camille.espersunited.com : catherine.espersunited.com : |
105 |
localhost.localdomain |
106 |
recipient_unqualified_hosts = baby.espersunited.com : |
107 |
camille.espersunited.com : catherine.espersunited.com : |
108 |
localhost.localdomain |
109 |
ignore_bounce_errors_after = 2d |
110 |
timeout_frozen_after = 7d |
111 |
begin acl |
112 |
acl_check_rcpt: |
113 |
accept hosts = : |
114 |
deny message = Restricted characters in address |
115 |
domains = +local_domains |
116 |
local_parts = ^[.] : ^.*[@%!/|] |
117 |
deny message = Restricted characters in address |
118 |
domains = !+local_domains |
119 |
local_parts = ^[./|] : ^.*[@%!] : ^.*/\\.\\./ |
120 |
accept local_parts = postmaster |
121 |
domains = +local_domains |
122 |
require verify = sender |
123 |
accept hosts = +relay_from_hosts |
124 |
control = submission |
125 |
accept authenticated = * |
126 |
control = submission |
127 |
require message = relay not permitted |
128 |
domains = +local_domains : +relay_to_domains |
129 |
require verify = recipient |
130 |
accept |
131 |
acl_check_data: |
132 |
warn message = X-SpamScore: $spam_score ($spam_bar) |
133 |
spam = nobody:true |
134 |
warn message = X-SpamReport: $spam_report |
135 |
spam = nobody:true |
136 |
warn message = X-Spam-Flag: ${if \ |
137 |
>{$spam_score_int}{58}{Almost Certainly}\ |
138 |
{${if >{$spam_score_int}{55}{Probably}\ |
139 |
{${if >{$spam_score_int}{50}{Possibly}{Doubtful}\ |
140 |
}}}}} |
141 |
spam = nobody |
142 |
warn message = Subject: [*SPAM*] $h_Subject ${if \ |
143 |
>{$spam_score_int}{58}{Almost Certainly}\ |
144 |
{${if >{$spam_score_int}{55}{Probably}\ |
145 |
{${if >{$spam_score_int}{50}{Possibly}{Doubtful}\ |
146 |
}}}}} |
147 |
spam = nobody |
148 |
accept |
149 |
acl_check_mime: |
150 |
warn decode = default |
151 |
deny message = Blacklisted file extension detected |
152 |
condition = ${if match \ |
153 |
{${lc:$mime_filename}} \ |
154 |
{\N(\.exe|\.pif|\.bat|\.scr|\.lnk|\.com|.vbs)$\N} \ |
155 |
{1}{0}} |
156 |
accept |
157 |
acl_check_content: |
158 |
deny message = Serious MIME defect detected ($demime_reason) |
159 |
demime = * |
160 |
condition = ${if >{$demime_errorlevel}{2}{1}{0}} |
161 |
deny message = This message contains malware ($malware_name) |
162 |
malware = * |
163 |
warn message = X-Spam-Score: $spam_score ($spam_bar) |
164 |
spam = nobody:true |
165 |
warn message = X-Spam-Report: $spam_report |
166 |
spam = nobody:true |
167 |
warn message = Subject: [*SPAM*] $h_Subject |
168 |
spam = nobody |
169 |
deny message = This message scored $spam_score points. |
170 |
Congratulations! |
171 |
spam = nobody:true |
172 |
condition = ${if >{$spam_score_int}{50}{1}{0}} |
173 |
accept |
174 |
begin routers |
175 |
dnslookup: |
176 |
driver = dnslookup |
177 |
domains = ! +local_domains |
178 |
transport = remote_smtp |
179 |
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 |
180 |
no_more |
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 |
userforward: |
189 |
driver = redirect |
190 |
check_local_user |
191 |
file = $home/.forward |
192 |
no_verify |
193 |
no_expn |
194 |
check_ancestor |
195 |
file_transport = address_file |
196 |
pipe_transport = address_pipe |
197 |
reply_transport = address_reply |
198 |
localuser: |
199 |
driver = accept |
200 |
check_local_user |
201 |
transport = local_delivery |
202 |
cannot_route_message = Unknown user |
203 |
begin transports |
204 |
remote_smtp: |
205 |
driver = smtp |
206 |
local_delivery: |
207 |
driver = appendfile |
208 |
directory = /home/$local_part/.maildir |
209 |
maildir_format |
210 |
delivery_date_add |
211 |
envelope_to_add |
212 |
return_path_add |
213 |
address_pipe: |
214 |
driver = pipe |
215 |
return_output |
216 |
address_file: |
217 |
driver = appendfile |
218 |
delivery_date_add |
219 |
envelope_to_add |
220 |
return_path_add |
221 |
address_reply: |
222 |
driver = autoreply |
223 |
begin retry |
224 |
* * F,2h,15m; G,16h,1h,1.5; F,4d,6h |
225 |
begin rewrite |
226 |
begin authenticators |
227 |
|
228 |
The problem is that mail from michael on camille and from amy on |
229 |
catherine is not accepted: |
230 |
|
231 |
michael@camille ~ $ echo "This is a test" | mail -s "Test" michael |
232 |
send-mail: RCPT TO:<michael@camille> (550 Sender verify failed) |
233 |
Can't send mail: sendmail process failed with error code 1 |
234 |
|
235 |
|
236 |
catherine ~ # echo "This is a test" | mail -s "Test" amy |
237 |
send-mail: RCPT TO:<amy@catherine> (550 Sender verify failed) |
238 |
Can't send mail: sendmail process failed with error code 1 |
239 |
|
240 |
|
241 |
But mail from root on both boxes is accepted. I think this is probably |
242 |
exim being paranoid again, but I'm not sure how to fix it. Can anyone |
243 |
help me? |
244 |
-Michael Sullivan- |
245 |
|
246 |
-- |
247 |
gentoo-user@g.o mailing list |