mein Mailempfang mit Postfix+Cyrus funktioniert wunderbar.
Jetzt wollte ich allerdings noch Spamassassin einbinden, das über Procmail aufgerufen wird.
Die Mails kommen auch bei Procmail an.
Die Weiterleitung zu Cyrus schlägt dagegen fehl, da der LMTP Socket scheinbar nicht offen ist.
Fehlermeldung mail Log:
Code: Select all
cyrus/deliver[9875]: connect(/var/run/cyrus/socket/lmtp) failed: Connection refused
Code: Select all
echo "Hallo" | /usr/sbin/cyrdeliver -e -a user1 -q -m user.user1
couldn't connect to lmtpd: Connection refused
421 4.3.0 deliver: couldn't connect to lmtpd
Da ist er auf jeden Fall:
Code: Select all
ls -l /var/run/cyrus/socket/lmtp
srwxrwxrwx 1 root root 0 Apr 30 08:36 /var/run/cyrus/socket/lmtp
Konfigurationen:
master.cf:
Code: Select all
smtp inet n - - - - smtpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - - - - smtp
relay unix - - - - - smtp
-o smtp_fallback_relay=
showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
Code: Select all
...
mailbox_command = procmail -a "$EXTENSION"
...
Code: Select all
DELIVER="/usr/sbin/cyrdeliver"
LOGFILE=/var/log/procmail
VERBOSE=off
:0fw: spamassassin.lock
* < 256000
| spamassassin
:0 w
| $DELIVER -e -a $USER -q -m user.$USER
~