vermaden said:I assume that there were zero responses here because not many experienced mail server admins here?
Well, I have to work with sendmail and most of the time I don't have many time because of this fact ;-)
vermaden said:I assume that there were zero responses here because not many experienced mail server admins here?
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/dovecot-lda -f ${sender} -d ${recipient}
dovecot_destination_recipient_limit = 1
virtual_transport = dovecot
virtual_transport = dovecot
Oct 8 17:15:20 venus postfix/pipe[90375]: 21876A42C0: to=<cb@****.**>, orig_to=<colin>, relay=dovecot, delay=0.5, delays=0.4/0.02/0/0.08, dsn=5.1.1, status=bounced (user unknown)
Oct 8 17:16:13 venus postfix/virtual[90497]: 77025A42C0: to=<cb@****.**>, orig_to=<colin>, relay=virtual, delay=0.04, delays=0.03/0/0/0, dsn=2.0.0, status=sent (delivered to maildir)
cbrace said:First, a big thanks for vermaden for this very useful how-to.
cbrace said:It sounds straightforward: adding this line to master.cf:
and this to main.cf:Code:dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/dovecot-lda -f ${sender} -d ${recipient}
Code:dovecot_destination_recipient_limit = 1 virtual_transport = dovecot
dovecot unix - n n - - pipe
flags=DRhu user=virtual:virtual argv=/usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient}
dovecot unix - n n - - pipe
flags=DRhu user=virtual:virtual argv=/usr/local/bin/spamc -u ${recipient} -e /usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient}
Oct 16 12:39:37 paz postfix/lmtp[514]: 320883BE2D: to=<cb@lim.nl>, relay=paz[/var/run/dspam.sock], delay=0.71, delays=0.02/0.01/0/0.67, dsn=2.6.0, status=sent (250 2.6.0 <cb@lim.nl> Message accepted for delivery)
Oct 16 12:39:37 paz postfix/qmgr[414]: 320883BE2D: removed
Oct 16 12:41:02 paz postfix/qmgr[414]: CD03E3BE5B: from=<cbrace@mail.#######.net>, size=1282, nrcpt=1 (queue active)
Oct 16 12:41:02 paz postfix/pipe[516]: CD03E3BE5B: to=<cb@lim.nl>, relay=dovecot, delay=583, delays=583/0.01/0/0.06, dsn=4.3.0, status=deferred (temporary failure)
Oct 16 12:31:19 auth: Debug: auth client connected (pid=0)
Oct 16 12:31:20 auth: Debug: master in: USER 1 cb@lim.nl service=lda
Oct 16 12:31:20 auth: Debug: passwd(cb@lim.nl): lookup
Oct 16 12:31:20 auth: Info: passwd(cb@lim.nl): unknown user
Oct 16 12:31:20 auth: Debug: passwd-file /usr/local/etc/dovecot-passwd: Read # users in 0 secs
Oct 16 12:31:20 auth: Debug: passwd-file(cb@lim.nl): lookup: user=cb@lim.nl file=/usr/local/etc/dovecot-passwd
Oct 16 12:31:20 auth: Debug: userdb out: USER 1 cb@lim.nl uid=1001 gid=6 home=/var/db/vmail/lim.nl/cb
colin:{PLAIN-MD5}516b38afeee70474b04881a633728b15
cb@lim.nl:{SSHA}63a5fRaKfNcG2f8FPy3y4xC8Vz3o+D9e
home=/var/db/vmail/lim.nl/cb
This appears to have been fixed with release v3.10.2_2 of mail/dspam which, if I am not mistaken, was released in May. From files/UPDATING:My current concerns are:
-- dspam(1) daemon runs on root, it should run on its user (like dspam for example), any tips how to make the permissions?
# dspam-3.10.2_2
#
Port Changes:
- Runs as dspam:dspam instead of root:mail [1]
- Default run directory is now /var/run/dspam [1]
- Default daemon/client communication port is now 2424 [1]
- New SETUID option to enable old insecure behavior [1]
[1] Questionable ownership and security on mail/dspam (PR #115957)
Nov 2 14:17:07 galatea dspam[94824]: Daemon process starting
Nov 2 14:17:07 galatea dspam[94824]: Creating local domain socket /var/run/dspam.sock
Nov 2 14:17:07 galatea dspam[94824]: Daemon mode failed to start
Nov 2 14:17:07 galatea dspam[94824]: Daemon process exiting
Nov 2 14:19:37 galatea dspam[94843]: Unable to determine the destination user
Nov 2 14:19:37 galatea dspam[94843]: DSPAM agent misconfigured: aborting
$rcmail_config['markasjunk2_spam_cmd'] = "/usr/local/bin/dspam --user %u --class=spam --source=error --signature=%xds";