Discussion:
[gentoo-user] I can't send attachments
(too old to reply)
Michael Sullivan
2008-01-06 12:50:05 UTC
Permalink
I tried to send a comic strip as an attachment to my wife and I got a
Mailbox Unavailable error. I'm running:

baby log # emerge -pv exim

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] mail-mta/exim-4.68 USE="exiscan exiscan-acl ldap mysql
pam perl sasl ssl syslog tcpd -X -dnsdb -domainkeys -dovecot-sasl
-gnutls -ipv6 -lmtp -mailwrapper -mbox -mbx -nis -postgres -radius -spf
-sqlite -srs" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

And here's my exim.conf file:
baby log # cat /etc/exim/exim.conf | sed '/#/d'
domainlist local_domains = @ : espersunited.com :
baby.espersunited.com : localhost : localdomain :
camille.espersunited.com : catherine.espersunited.com : camille :
catherine
domainlist relay_to_domains =
hostlist relay_from_hosts = 127.0.0.1 : 192.168.1.2 : 192.168.1.3 :
192.168.1.4
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data
acl_smtp_mime = acl_check_mime
av_scanner = clamd:/tmp/clamd
spamd_address = 127.0.0.1 783
qualify_domain = espersunited.com
never_users = root
host_lookup = *
rfc1413_hosts = *
rfc1413_query_timeout = 5s
sender_unqualified_hosts = baby.espersunited.com :
camille.espersunited.com : catherine.espersunited.com :
localhost.localdomain
recipient_unqualified_hosts = baby.espersunited.com :
camille.espersunited.com : catherine.espersunited.com :
localhost.localdomain
ignore_bounce_errors_after = 2d
timeout_frozen_after = 7d
begin acl
acl_check_rcpt:
accept hosts = :
deny message = Restricted characters in address
domains = +local_domains
local_parts = ^[.] : ^.*[@%!/|]
deny message = Restricted characters in address
domains = !+local_domains
local_parts = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
accept local_parts = postmaster
domains = +local_domains
require verify = sender
accept hosts = +relay_from_hosts
control = submission
accept authenticated = *
control = submission
require message = relay not permitted
domains = +local_domains : +relay_to_domains
require verify = recipient
accept
acl_check_data:
warn message = X-SpamScore: $spam_score ($spam_bar)
spam = nobody:true
warn message = X-SpamReport: $spam_report
spam = nobody:true
warn message = X-Spam-Flag: ${if \
{$spam_score_int}{58}{Almost Certainly}\
{${if >{$spam_score_int}{55}{Probably}\
{${if >{$spam_score_int}{50}{Possibly}{Doubtful}\
}}}}}
spam = nobody
warn message = Subject: [*SPAM*] $h_Subject ${if \
{$spam_score_int}{58}{Almost Certainly}\
{${if >{$spam_score_int}{55}{Probably}\
{${if >{$spam_score_int}{50}{Possibly}{Doubtful}\
}}}}}
spam = nobody
deny message = Rejected: spam score $spam_score
spam = nobody:true
condition = ${if >{$spam_score_int}{60}{1}{0}}
accept
acl_check_mime:
warn decode = default
deny message = Blacklisted file extension detected
condition = ${if match \
{${lc:$mime_filename}} \
{\N(\.exe|\.pif|\.bat|\.scr|\.lnk|\.com|.vbs)$\N} \
{1}{0}}
accept
acl_check_content:
deny message = Serious MIME defect detected ($demime_reason)
demime = *
condition = ${if >{$demime_errorlevel}{2}{1}{0}}
deny message = This message contains malware ($malware_name)
malware = *
warn message = X-Spam-Score: $spam_score ($spam_bar)
spam = nobody:true
warn message = X-Spam-Report: $spam_report
spam = nobody:true
warn message = Subject: [*SPAM*] $h_Subject
spam = nobody
deny message = This message scored $spam_score points.
Congratulations!
spam = nobody:true
condition = ${if >{$spam_score_int}{50}{1}{0}}
accept
begin routers
dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more
system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/mail/aliases}}
file_transport = address_file
pipe_transport = address_pipe
userforward:
driver = redirect
check_local_user
file = $home/.forward
no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
localuser:
driver = accept
check_local_user
transport = local_delivery
cannot_route_message = Unknown user
begin transports
remote_smtp:
driver = smtp
local_delivery:
driver = appendfile
directory = /home/$local_part/.maildir
maildir_format
delivery_date_add
envelope_to_add
return_path_add
address_pipe:
driver = pipe
return_output
address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
address_reply:
driver = autoreply
begin retry
* * F,2h,15m; G,16h,1h,1.5; F,4d,6h
begin rewrite
begin authenticators

I have removed a lot of whitespace from this listing. Does anyone have
any ideas? We just noticed it this morning, as we very rarely send
attachments. We can still send attachment-less emails normally.
-Michael Sullivan-
--
gentoo-***@lists.gentoo.org mailing list
Mark Shields
2008-01-06 14:00:13 UTC
Permalink
Post by Michael Sullivan
I tried to send a comic strip as an attachment to my wife and I got a
baby log # emerge -pv exim
Calculating dependencies... done!
[ebuild R ] mail-mta/exim-4.68 USE="exiscan exiscan-acl ldap mysql
pam perl sasl ssl syslog tcpd -X -dnsdb -domainkeys -dovecot-sasl
-gnutls -ipv6 -lmtp -mailwrapper -mbox -mbx -nis -postgres -radius -spf
-sqlite -srs" 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB
baby log # cat /etc/exim/exim.conf | sed '/#/d'
catherine
domainlist relay_to_domains =
192.168.1.4
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data
acl_smtp_mime = acl_check_mime
av_scanner = clamd:/tmp/clamd
spamd_address = 127.0.0.1 783
qualify_domain = espersunited.com
never_users = root
host_lookup = *
rfc1413_hosts = *
rfc1413_query_timeout = 5s
localhost.localdomain
localhost.localdomain
ignore_bounce_errors_after = 2d
timeout_frozen_after = 7d
begin acl
deny message = Restricted characters in address
domains = +local_domains
deny message = Restricted characters in address
domains = !+local_domains
accept local_parts = postmaster
domains = +local_domains
require verify = sender
accept hosts = +relay_from_hosts
control = submission
accept authenticated = *
control = submission
require message = relay not permitted
domains = +local_domains : +relay_to_domains
require verify = recipient
accept
warn message = X-SpamScore: $spam_score ($spam_bar)
spam = nobody:true
warn message = X-SpamReport: $spam_report
spam = nobody:true
warn message = X-Spam-Flag: ${if \
{$spam_score_int}{58}{Almost Certainly}\
{${if >{$spam_score_int}{55}{Probably}\
{${if >{$spam_score_int}{50}{Possibly}{Doubtful}\
}}}}}
spam = nobody
warn message = Subject: [*SPAM*] $h_Subject ${if \
{$spam_score_int}{58}{Almost Certainly}\
{${if >{$spam_score_int}{55}{Probably}\
{${if >{$spam_score_int}{50}{Possibly}{Doubtful}\
}}}}}
spam = nobody
deny message = Rejected: spam score $spam_score
spam = nobody:true
condition = ${if >{$spam_score_int}{60}{1}{0}}
accept
warn decode = default
deny message = Blacklisted file extension detected
condition = ${if match \
{${lc:$mime_filename}} \
{\N(\.exe|\.pif|\.bat|\.scr|\.lnk|\.com|.vbs)$\N} \
{1}{0}}
accept
deny message = Serious MIME defect detected ($demime_reason)
demime = *
condition = ${if >{$demime_errorlevel}{2}{1}{0}}
deny message = This message contains malware ($malware_name)
malware = *
warn message = X-Spam-Score: $spam_score ($spam_bar)
spam = nobody:true
warn message = X-Spam-Report: $spam_report
spam = nobody:true
warn message = Subject: [*SPAM*] $h_Subject
spam = nobody
deny message = This message scored $spam_score points.
Congratulations!
spam = nobody:true
condition = ${if >{$spam_score_int}{50}{1}{0}}
accept
begin routers
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/mail/aliases}}
file_transport = address_file
pipe_transport = address_pipe
driver = redirect
check_local_user
file = $home/.forward
no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
driver = accept
check_local_user
transport = local_delivery
cannot_route_message = Unknown user
begin transports
driver = smtp
driver = appendfile
directory = /home/$local_part/.maildir
maildir_format
delivery_date_add
envelope_to_add
return_path_add
driver = pipe
return_output
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
driver = autoreply
begin retry
* * F,2h,15m; G,16h,1h,1.5; F,4d,6h
begin rewrite
begin authenticators
I have removed a lot of whitespace from this listing. Does anyone have
any ideas? We just noticed it this morning, as we very rarely send
attachments. We can still send attachment-less emails normally.
-Michael Sullivan-
--
The "Mailbox Unavailable" sounds like an error in the form of an e-mail
bounceback from the e-mail address' server you were trying to send to.
Sometimes I see this error working in tech support (cable modem). I doubt
it's anything on your end.
--
- Mark Shields
Michael Sullivan
2008-01-06 14:20:09 UTC
Permalink
Post by Mark Shields
Post by Michael Sullivan
I tried to send a comic strip as an attachment to my wife and I got a
baby log # emerge -pv exim
Calculating dependencies... done!
[ebuild R ] mail-mta/exim-4.68 USE="exiscan exiscan-acl ldap mysql
pam perl sasl ssl syslog tcpd -X -dnsdb -domainkeys -dovecot-sasl
-gnutls -ipv6 -lmtp -mailwrapper -mbox -mbx -nis -postgres -radius -spf
-sqlite -srs" 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB
baby log # cat /etc/exim/exim.conf | sed '/#/d'
catherine
domainlist relay_to_domains =
192.168.1.4
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data
acl_smtp_mime = acl_check_mime
av_scanner = clamd:/tmp/clamd
spamd_address = 127.0.0.1 783
qualify_domain = espersunited.com
never_users = root
host_lookup = *
rfc1413_hosts = *
rfc1413_query_timeout = 5s
localhost.localdomain
localhost.localdomain
ignore_bounce_errors_after = 2d
timeout_frozen_after = 7d
begin acl
deny message = Restricted characters in address
domains = +local_domains
deny message = Restricted characters in address
domains = !+local_domains
accept local_parts = postmaster
domains = +local_domains
require verify = sender
accept hosts = +relay_from_hosts
control = submission
accept authenticated = *
control = submission
require message = relay not permitted
domains = +local_domains : +relay_to_domains
require verify = recipient
accept
warn message = X-SpamScore: $spam_score ($spam_bar)
spam = nobody:true
warn message = X-SpamReport: $spam_report
spam = nobody:true
warn message = X-Spam-Flag: ${if \
{$spam_score_int}{58}{Almost Certainly}\
{${if >{$spam_score_int}{55}{Probably}\
{${if >{$spam_score_int}{50}{Possibly}{Doubtful}\
}}}}}
spam = nobody
warn message = Subject: [*SPAM*] $h_Subject ${if \
{$spam_score_int}{58}{Almost Certainly}\
{${if >{$spam_score_int}{55}{Probably}\
{${if >{$spam_score_int}{50}{Possibly}{Doubtful}\
}}}}}
spam = nobody
deny message = Rejected: spam score $spam_score
spam = nobody:true
condition = ${if >{$spam_score_int}{60}{1}{0}}
accept
warn decode = default
deny message = Blacklisted file extension detected
condition = ${if match \
{${lc:$mime_filename}} \
{\N(\.exe|\.pif|\.bat|\.scr|\.lnk|\.com|.vbs)$\N} \
{1}{0}}
accept
deny message = Serious MIME defect detected ($demime_reason)
demime = *
condition = ${if >{$demime_errorlevel}{2}{1}{0}}
deny message = This message contains malware ($malware_name)
malware = *
warn message = X-Spam-Score: $spam_score ($spam_bar)
spam = nobody:true
warn message = X-Spam-Report: $spam_report
spam = nobody:true
warn message = Subject: [*SPAM*] $h_Subject
spam = nobody
deny message = This message scored $spam_score points.
Congratulations!
spam = nobody:true
condition = ${if >{$spam_score_int}{50}{1}{0}}
accept
begin routers
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/mail/aliases}}
file_transport = address_file
pipe_transport = address_pipe
driver = redirect
check_local_user
file = $home/.forward
no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
driver = accept
check_local_user
transport = local_delivery
cannot_route_message = Unknown user
begin transports
driver = smtp
driver = appendfile
directory = /home/$local_part/.maildir
maildir_format
delivery_date_add
envelope_to_add
return_path_add
driver = pipe
return_output
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
driver = autoreply
begin retry
* * F,2h,15m; G,16h,1h,1.5; F,4d,6h
begin rewrite
begin authenticators
I have removed a lot of whitespace from this listing. Does anyone have
any ideas? We just noticed it this morning, as we very rarely send
attachments. We can still send attachment-less emails normally.
-Michael Sullivan-
--
The "Mailbox Unavailable" sounds like an error in the form of an e-mail
bounceback from the e-mail address' server you were trying to send to.
Sometimes I see this error working in tech support (cable modem). I doubt
it's anything on your end.
--
- Mark Shields
I own espersunited.com, so it is on my end.
--
gentoo-***@lists.gentoo.org mailing list
Hans-Werner Hilse
2008-01-06 16:50:12 UTC
Permalink
Hi,

On Sun, 6 Jan 2008 08:12:10 -0600 (CST)
Post by Michael Sullivan
I own espersunited.com, so it is on my end.
...and so should be exim's logs, right? I usually find it easier to read
actual error reports than (stripped) configurations for complex
software that is claimed to be responsible for the error...

Also, I have a hard time trying to understand the problem. A mailbox
unavailable shouldn't occur after SMTP's "DATA" command, it should
happen after the "RCPT TO" (answer code 450). At that point, no data has
been transmitted, so the error does not make sense except if it is
wrongly phrased by the MUA or (sorry) you. SMTP doesn't allow it at
that point. There's only the possibility for much more general error
codes. BTW, what's the MUA? You just introduced the MTA. Did you try
another one?

-hwh
--
gentoo-***@lists.gentoo.org mailing list
Michael Sullivan
2008-01-06 17:20:09 UTC
Permalink
Post by Hans-Werner Hilse
Hi,
On Sun, 6 Jan 2008 08:12:10 -0600 (CST)
Post by Michael Sullivan
I own espersunited.com, so it is on my end.
...and so should be exim's logs, right? I usually find it easier to read
actual error reports than (stripped) configurations for complex
software that is claimed to be responsible for the error...
Also, I have a hard time trying to understand the problem. A mailbox
unavailable shouldn't occur after SMTP's "DATA" command, it should
happen after the "RCPT TO" (answer code 450). At that point, no data has
been transmitted, so the error does not make sense except if it is
wrongly phrased by the MUA or (sorry) you. SMTP doesn't allow it at
that point. There's only the possibility for much more general error
codes. BTW, what's the MUA? You just introduced the MTA. Did you try
another one?
-hwh
We use evolution. I tried using Squirrelmail and got this:

Message not sent. Server replied:
Requested action not taken: mailbox unavailable
550 Rejected: spam score 6.5
--
gentoo-***@lists.gentoo.org mailing list
Alan McKinnon
2008-01-06 17:40:13 UTC
Permalink
Post by Michael Sullivan
Post by Hans-Werner Hilse
Hi,
On Sun, 6 Jan 2008 08:12:10 -0600 (CST)
Post by Michael Sullivan
I own espersunited.com, so it is on my end.
...and so should be exim's logs, right? I usually find it easier to
read actual error reports than (stripped) configurations for
complex software that is claimed to be responsible for the error...
Also, I have a hard time trying to understand the problem. A
mailbox unavailable shouldn't occur after SMTP's "DATA" command, it
should happen after the "RCPT TO" (answer code 450). At that point,
no data has been transmitted, so the error does not make sense
except if it is wrongly phrased by the MUA or (sorry) you. SMTP
doesn't allow it at that point. There's only the possibility for
much more general error codes. BTW, what's the MUA? You just
introduced the MTA. Did you try another one?
-hwh
Requested action not taken: mailbox unavailable
550 Rejected: spam score 6.5
^^^^^^^^^^^^^^

perhaps this bit?
--
Alan McKinnon
alan dot mckinnon at gmail dot com
--
gentoo-***@lists.gentoo.org mailing list
Hans-Werner Hilse
2008-01-06 17:50:08 UTC
Permalink
Hi,

On Sun, 06 Jan 2008 11:09:15 -0600
Post by Michael Sullivan
Requested action not taken: mailbox unavailable
550 Rejected: spam score 6.5
Ah, I see. Exim does output a 550 anyway (and it makes some sense, I
guess the SMTP protocol definition is impractical w/ regard to the
allowed errors). But reading the full error report, it seems it's your
spam detection software that leads exim to deny the mail. Your exim
config seems to indicate that everything with a spam score > 6.0 is to
be denied (those numbers in the config are given with a factor of ten,
I guess?). Depending on whether the full spam check report is available
on the logs, you might want to temporarly disable that mail denial and
check the mail headers for the protocol of which certain spam checks
leads your spam filter to the conclusion it is spam, then adjust that.

-hwh
--
gentoo-***@lists.gentoo.org mailing list
Loading...