Maciek pisze:
Żeby ten wątek mógłbyć wykorzystany przez innych, logi niezbędne daj tutaj. Oczywiście wyłącznie niezbędne fragmenty. Jeśli jest clamav, także i jego logi.
exim.confi wykasowłem opisu i linie z # - przy takim konfigu mogę jedynie wysyłać pocztę
primary_hostname = afa98.internetdsl.tpnet.pl
############################
# dodane
############################
smtp_banner = +OK Microsoft Exchange SMTP server version 5.0.1459.75 ready
############################
domainlist local_domains = @ : afa98.internetdsl.tpnet.pl
domainlist relay_to_domains = @:
hostlist relay_from_hosts = localhost : 192.168.0.0/24
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = exiscan
av_scanner = clamd:/var/lib/clamav/clamd.sock
qualify_domain = afa98.internetdsl.tpnet.pl
host_lookup = *
rfc1413_hosts = *
rfc1413_query_timeout = 30s
############################################
# dodane
############################################
tls_certificate = /etc/mail/exim.crt
tls_privatekey = /etc/mail/exim.key
tls_advertise_hosts = *
#tls_verify_hosts = *
############################################
acl_smtp_mail = acl_check_mail
message_size_limit = 10M
acl_smtp_auth = acl_check_auth
############################################
# zmienia naglowki w poczcie od:
############################################
received_header_text = "Received: \
${if def:sender_fullhost {from ${sender_fullhost}\n\t}\
{${if def:sender_ident {from ${sender_ident} }}\
${if def:sender_helo_name {(helo=${sender_helo_name})\n\t}}}}\
by ${primary_hostname} \
${if def:received_protocol {with ${received_protocol}}} (Ufoludek SMTP)\n\t\
${if def:tls_cipher {(tls_cipher ${tls_cipher}) }}\
${if def:tls_peerdn {(tls_peerdn ${tls_peerdn}) }}\
id ${message_id}\
${if def:received_for {\n\tfor <$received_for>}}"
###########################################
# uwaga! zamiast ufoludek SMTP - w nawiasie wpisz co chcesz
###########################################
ignore_bounce_errors_after = 2d
timeout_frozen_after = 7d
begin acl
exiscan:
warn message = X-MIME-Warning: Serious MIME defect detected ($demime_reason)
demime = *
deny message = Virus found / znaleziono wirusa :$malware_name
malware = *
deny message = Pliki z rozszerzeniem $found_extension nie sa tutaj mile widziane
demime = com:vbs:bat:pif:scr
accept
####################################
# dodane
####################################
acl_check_auth:
accept encrypted = *
deny message = STARTTLS required before AUTH
####################################
acl_check_rcpt:
accept hosts = :
deny domains = +local_domains
local_parts = ^[.] : ^.*[@%!/|]
deny domains = !+local_domains
local_parts = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
accept local_parts = postmaster
domains = +local_domains
require verify = sender
list at $dnslist_domain\n$dnslist_text
at $dnslist_domain
accept domains = +local_domains
endpass
verify = recipient
accept domains = +relay_to_domains
endpass
verify = recipient
accept hosts = +relay_from_hosts
accept authenticated = *
deny message = authentication PLAIN or LOGIN
acl_check_content:
deny message = This message contains a MIME error ($demime_reason)
condition = ${if >{$demime_errorlevel}{2}{1}{0}}
deny message = This message contains an unwanted file extension ($found_extension)
deny message = This message contains malware ($malware_name)
combinations
deny message = This message matches a blacklisted regular expression ($regex_match_string)
settings
warn message = X-Spam-Score: $spam_score ($spam_bar)
warn message = X-Spam-Report: $spam_report
warn message = X-Spam-Flag: YES
deny message = This message scored $spam_score points. Congratulations!
condition = ${if >{$spam_score_int}{100}{1}{0}}
accept
acl_check_mail:
accept condition = ${if or { \
{eq{$authenticated_id}{}} \
{eq{$authenticated_id@afa98.internetdsl.tpnet.pl}{$sender_address}} \
}{1}{0}}
deny message = Authenticated user must match sender!
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}}
# user = exim
file_transport = address_file
pipe_transport = address_pipe
userforward:
driver = redirect
check_local_user
file = $home/.forward
no_verify
no_expn
check_ancestor
# allow_filter
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
#################################
# dodane procmail
#################################
# router
#procmail:
#driver = accept
#check_local_user
#transport = procmail_pipe
################################
# This router matches local user mailboxes. If the router fails, the error
# message is "Unknown user".
localuser:
driver = accept
check_local_user
transport = local_delivery
cannot_route_message = Unknown user
begin transports
remote_smtp:
driver = smtp
local_delivery:
driver = appendfile
file = /var/spool/mail/$local_part/.Mailbox
delivery_date_add
envelope_to_add
return_path_add
# group = mail
# mode = 0660
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
plain:
driver = plaintext
public_name = PLAIN
server_condition = ${if pwcheck{$2:$3}{1}{0}}
server_set_id = $2
login:
driver = plaintext
public_name = LOGIN
server_prompts = "Username:: : Password::"
server_condition = ${if pwcheck{$1:$2}{1}{0}}
server_set_id = $1
# begin local_scan
# End of Exim configuration file