Am Sat, 11 Jan 2014 09:54:47 +0100
schrieb Olaf Mersmann <[email protected]>:

> Hi Martin,

> I don't run that setup anymore and instead have each user (I have no
> virtual users) use procmail or maildrop to hook up spamassasin. If I
> remember correctly it was something along the lines of:
> 
>   ## Return path for spampd
>   listen on lo0 port 10028 tag spampd_return
> 
>   accept tagged spampd_return deliver to ...
>   accept from any relay via smtp://127.0.0.1:10027
> 
> There must have been more logic involved because I think the above
> ruleset would also scan all outgoing mail. 
> 
> Cheers,
> Olaf


Hey there,

got it working with spampd. Thanks for your hint.

Here is my smtpd.conf:

# =================================================================
# set certificate and key for ssl
pki mail.example.de certificate "/usr/local/etc/mail/certs/mail.example.de.crt"
pki mail.example.de key "/usr/local/etc/mail/certs/mail.example.de.key"

# Incoming mail on port 25
listen on re0 port 25 tls pki mail.example.de tag erstes_eintreffen
# for relaying mails listen on smtps port and request auth
listen on re0 smtps pki mail.example.de auth
# after processing mails with spamassassin spampd sends mails to port 10025
listen on 127.0.0.1 port 10025 tag nach_spamerkennung

# set my tables
table aliases file:/etc/mail/aliases
table domains file:/etc/mail/domains
table vusers  file:/etc/mail/vusers

# st first deliver any local mails
accept from local for local alias <aliases> deliver to lmtp 
"/var/run/dovecot/lmtp"
accept from local for local deliver to lmtp "/var/run/dovecot/lmtp"

# anything coming from the outside world is deliverd to spampd listening on 
port 10024
accept tagged erstes_eintreffen from any for domain <domains> relay via 
smtp://localhost:10024 hostname localhost source 127.0.0.1

# after beeing processed by spamds, mails can be delivered by dovecot-lmtp 
accept tagged nach_spamerkennung from any for domain <domains> virtual <vusers> 
deliver to lmtp "/var/run/dovecot/lmtp"

# local users are alloed to relay
accept for any relay
# ==================== E O F ======================================

Regards
Martin

-- 
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to