PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : exim, fetchmail und spamassassin



Suffer
13.11.07, 00:48
Hallo,

ich hab folgendes Problem: ich möchte gerne alle per fetchmail abgeholten Mails auf Viren und Spam prüfen. Gleichzeitig sollen alle Mails aus dem lokalen Netz ungeprüft versendet werden.

In exim hab ich dazu folgende Einträge:


hostlist relay_from_hosts = 127.0.0.1 : 192.168.1.0/24

acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data

av_scanner = clamd:/var/run/clamav/clamd.ctl
spamd_address = 127.0.0.1 783

acl_check_rcpt:
# Accept if the source is local SMTP (i.e. not over TCP/IP). We do this by
# testing for an empty sending host field.
accept hosts = :
[...Einige Überprüfungen auf Relaying, usw.]
# At this point, the address has passed all the checks that have been
# configured, so we accept it unconditionally.
accept

acl_check_data:

# Deny if the message contains a virus. Before enabling this check, you
# must install a virus scanner and set the av_scanner option above.
deny malware = *
message = This message contains a virus ($malware_name).

# put headers in all messages (no matter if spam or not)
warn spam = nobody:true
condition = ${if < {$message_size}{50K}}
add_header = X-Spam-Score: $spam_score
add_header = X-Spam-Bar: $spam_bar
add_header = X-Spam-Report: $spam_report



Das Problem ist, dass fetchmail über SMTP auf localhost:25 zustellt und ich kann 127.0.0.1 nicht aus der Liste relay_from_hosts rausnehmen, da sonst lokale SMTP-Verbindungen (also SMTP über localhost:25) ebenfalls nicht mehr überprüft werden.

Ich müsste jetzt mit exim überprüfen, ob eine Mail von fetchmail kommt oder durch einen lokal-laufenden Prozess. Gibt es da eine Möglichkeit?