Jani Partanen wrote:
> Hello!
>
> Is anyone working with rpm spec file for systems in topic?
>
> I have one spec file from Stevan, what he have made... erm...
> * Sun Dec 23 2007 Stevan Bajic<[email protected]>
> - Make Tony Earnshaw happy :)
>
> I did try it finaly out and was able to build current git release with
> small changes.
>
> But this spec file is not ready yet, it missing some setups, like apache
> config for dspam-web, also web stuff is installed to /var/www/dspam,
> when it seems to be common that web stuff is installed via rpm to
> /usr/share/dspam
>
>
> Soo ummh.. apache conf should look something like this, I think.
>
> Alias /dspam /usr/share/dspam
> <Directory "/usr/share/dspam">
> Options ExecCGI
> Order deny,allow
> deny from all
> allow from 127.0.0.1
> </Directory>
>
> Thats minimum so dspam web ui isn't exposed without configured auth..
> There is too many ways to do auth so I don't think its any use to try
> list them all there. Better to put on wiki some examples.
>
> What you guys think?
>
> ------------------------------------------------------------------------------
Hello Jani,
I maintain some RPM for Fedora, for my needs and pleasure :)
Their RPM, SRPM and .spec files are at (low speed) URL:
http://www.hanzlici.cz/packages/fedora/dspam/
Short notes:
- dspam is configured with
--with-storage-driver="hash_drv,mysql_drv"
--with-delivery-agent=/usr/bin/procmail.dspam --disable-homedir \
--with-dspam-home=%{_localstatedir}/dspam --with-dspam-home-mode=775
--with-dspam-home-owner="dspam" \
--with-dspam-home-group="dspam" --with-dspam-mode=2755 --enable-daemon \
--with-dspam-owner="dspam" --with-dspam-group="dspam"
- firstrun.txt, firstspam.txt and quarantinefull.txt are localized into Czech
- {pre,post}install scripts will create/do:
- "dspam" user falling into supplemental groups mail and apache
- "/etc/httpd/conf.d/dspamssl.conf" - cfg for HTTPS virtual server
(on port 4433)
- copy procmail as suid root:mail mode 750 procmail.dspam (LDA]
- create (from /etc/passwd") "/etc/aliases.dspam" as dspam forwarding
entries prototype for inclusion to /etc/aliases
- symlink /etc/smrsh/dspam to dspam binary in /usr/bin/
- add dspam to "/etc/mail/trusted-users"
- create appropriate entries LOCAL_MAILER_PATH and LOCAL_MAILER_ARGS
in "/etc/mail/sendmail.mc"
- some customization of "/etc/dspam" cfg file
- some stuff in "/usr/share/doc/dspam-3.9.0/contrib/fedora/":
- dspam1group.sh - scripr for creating single shared,managed group
- dspam_auth_fc5.sh and dspam_auth_fc4.sh - Fedora5+ and Fedora4 scripts
for WebUI authentication via mod_auth_external (Apache 2.0) or
mod_authnz_external (Apache 2.2) and program pwauth (authentication over
PAM) - see http://code.google.com/p/pwauth/
These scripts will install /usr/bin/pwauth and authentication module
under "/usr/lib/httpd/modules/"
- hash-sigclean.tgz - "/usr/local/sbin/dspam-hash-sigclean" script for
hash driver signature cleaning and its "/etc/cron.d/dspam-hash-sigclean"
cron entry.
These things I use because majority of my dspam installation use mainly
- Fedora as distro
- sendmail as MTA
- dspam with hash driver
- users are local users in /etc/{passwd,shadow}
(my typical dspam usage is in small organizations with fewer than several
hundert (typically 10-100) mail accounts/users.
When some of these stuff could have been useful for others, I shall be
happy when they will be included in dspam contrib.
Sorry for my English.
Regards, Franta Hanzlik
------------------------------------------------------------------------------
_______________________________________________
Dspam-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-user