i zaczeło działać ! to co na czerwono w exim.conf to zachaszowałem i działa.
a to mój exim.conf, ten wygenerowany wywaliłem a to jest oryginalny zmieniony.
primary_hostname = hotelmalbork.dyn.pl
smtp_banner = +OK exim_domain ready
domainlist local_domains = @:hotelmalbork.dyn.pl
domainlist relay_to_domains = @:hotelmalbork.dyn.pl
hostlist relay_from_hosts = 127.0.0.1:192.168.1.0/24
acl_smtp_rcpt = acl_check_rcpt
#acl_smtp_data = exiscan
#acl_smtp_auth = acl_check_auth
av_scanner = clamd:/var/lib/clamav/clamd.sock
qualify_domain = hotelmalbork.dyn.pl
# qualify_recipient =
# allow_domain_literals
#never_users = root
host_lookup = *
rfc1413_hosts = *
rfc1413_query_timeout = 30s
# sender_unqualified_hosts =
# recipient_unqualified_hosts =
# percent_hack_domains =
############################################
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
############################################
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}}} (exim_hostname 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>}}"
###########################################
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 = *
accept
deny message = Pliki z rozszerzeniem $found_extension nie sa tutaj mile widziane
demime = com:vbs:bat:pif:scr
#accept hosts = /etc/mail/dontscan
####################################
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
# Deny unless the sender address can be verified.
require verify = sender
accept domains = +local_domains
!sender_domains = +local_domains
endpass
verify = recipient
accept domains = +relay_to_domains
endpass
verify = recipient
accept hosts = +relay_from_hosts
accept authenticated = *
# deny message = relay not permitted
deny message = authentication PLAIN or LOGIN
acl_check_content:
deny message = This message contains a MIME error ($demime_reason)
# demime = *
condition = ${if >{$demime_errorlevel}{2}{1}{0}}
deny message = This message contains an unwanted file extension ($found_extension)
# demime = scr:vbs:bat:lnk:pif
deny message = This message contains malware ($malware_name)
# malware = *
deny message = This message matches a blacklisted regular expression ($regex_match_string)
# regex = [Vv] *[Ii] *[Aa] *[Gg] *[Rr] *[Aa]
# (user "nobody"), no matter if over threshold or not.
warn message = X-Spam-Score: $spam_score ($spam_bar)
# spam = nobody:true
warn message = X-Spam-Report: $spam_report
# spam = nobody:true
# Add X-Spam-Flag if spam is over system-wide threshold
warn message = X-Spam-Flag: YES
# spam = nobody
# Reject spam messages with score over 10, using an extra condition.
deny message = This message scored $spam_score points. Congratulations!
# spam = nobody:true
condition = ${if >{$spam_score_int}{100}{1}{0}}
# finally accept all the rest
accept
acl_check_mail:
accept condition = ${if or { \
{eq{$authenticated_id}{}} \
{eq{$authenticated_id@hotelmalbork.dyn.pl}{$sender_address}} \
}{1}{0}}
deny message = Authenticated user must match sender!
######################################################################
begin routers
# domain_literal:
# driver = ipliteral
# domains = ! +local_domains
# transport = remote_smtp
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
#################################
# router
#procmail:
#driver = accept
#check_local_user
#transport = procmail_pipe
################################
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
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
####################################
# transport
#procmail_pipe:
#driver = pipe
#command = /usr/bin/procmail -d $local_part
#return_path_add
#delivery_date_add
#envelope_to_add
#check_string = "From "
#escape_string = ">From "
#headers_add = "X-AntiVirus: sprawdzone przez mks_vir"
#user = $local_part
# group = mail
begin retry
# Address or Domain Error Retries
# ----------------- ----- -------
* * 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