Re: Filtering spam with spamassassin
Hi Martin, * Martin Kropfinger free...@rakor-net.de [700101 00:59]: Am 2014-01-11 09:24, schrieb Martin Kropfinger: Am 2014-01-10 19:08, schrieb Olaf Mersmann: in the past I have used spampd[1] for just such a setup. OK, so there is no way using spamassassin without introducing an additional lmtp-proxy i asume? :( not sure, at the time it was the path with least resistance. P.S. Could you show me the important snippets of your config? :) 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 -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
Re: Filtering spam with spamassassin
Am Sat, 11 Jan 2014 09:54:47 +0100 schrieb Olaf Mersmann ol...@p-value.net: 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 misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
no domain in from and to headers
Hi, I have opensmtpd running on a few machine (running openbsd 5.3-stable and 5.4-stable) and I'm very happy with it. There are a few differences with sendmail that I am trying to work around. One thing that is bugging me is the following. For mail from the local system (like output from cron jobs or the warning from sudo when you are not in the sudoers file), sendmail apparantly fills in the hostname for the domain part in the From and To header. OpenSMTPD doesn't touch these headers, so the From header can be something like From: maurice My email is forwarded to a sendmail server which doesn't accept this email: x...@xs4all.nl: 550 5.7.1 No domain in From: header, message rejected Is there a way to tell OpenSMTPD to fill in the domain like sendmail does? Thanks, Maurice -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org