Compare commits

..

38 Commits
sme9 ... master

Author SHA1 Message Date
Daniel Berteaud 748e24ece3 Automatic commit of package [ipasserelle-base] release [0.2.70-1]. 5 years ago
Daniel Berteaud a4c2839d21 Hide warning if year maildir already exists 5 years ago
Daniel Berteaud d09aa0db6f Automatic commit of package [ipasserelle-base] release [0.2.69-1]. 6 years ago
Daniel Berteaud a3bfaa2126 Don't try to create or delete scan dir if no user has been passed 6 years ago
Daniel Berteaud e15950284b Automatic commit of package [ipasserelle-base] release [0.2.68-1]. 7 years ago
Daniel Berteaud 4d00447448 Handle Bcc being a fully qualified address in rotate script 7 years ago
Daniel Berteaud 19722f2507 Automatic commit of package [ipasserelle-base] release [0.2.67-1]. 7 years ago
Daniel Berteaud eb25e3c574 Typo in Category CGI param id 7 years ago
Daniel Berteaud 1e40299614 Automatic commit of package [ipasserelle-base] release [0.2.66-1]. 7 years ago
Daniel Berteaud 0f8ee16442 Remove GIT Changelog 7 years ago
Daniel Berteaud dafd7d2865 Automatic commit of package [ipasserelle-base] release [0.2.65-1]. 7 years ago
Daniel Berteaud 7d04a7220a Add support for buisnessCategory LDAP field 7 years ago
Daniel Berteaud 3dd640bee9 Configure for tito 7 years ago
Daniel Berteaud 068f0f2f79 Initialized to use tito. 7 years ago
Daniel Berteaud 2a796db809 Merge branch 'sme9' 7 years ago
Daniel Berteaud 9bdd70224f Fix /var/clamav ownership 9 years ago
Daniel Berteaud ccec09089c Spec file update 9 years ago
Daniel Berteaud d26c23c72b Ignore winnow.spam.ts.brokenspam.1 sig 9 years ago
Daniel Berteaud 279cef8874 Spec file update 10 years ago
Daniel Berteaud 345b032364 Remove hardcoded open_files_limit for mysql 10 years ago
Daniel Berteaud de91174f9f Spec file update 10 years ago
Daniel Berteaud cb4fbc5689 Add a new EmailPrimaryDomain prop to user accounts 10 years ago
Daniel Berteaud 65c1710c08 Spec file update 10 years ago
Daniel Berteaud 9a4fbb0e7c Add --skip-broken to nightly updates downloader 10 years ago
Daniel Berteaud 791ba80b40 Spec file update 11 years ago
Daniel Berteaud 615ea2fe96 Fix AllowedRemoteIP (SPF Whitelist) 11 years ago
Daniel Berteaud 6b966f8435 Spec file update 11 years ago
Daniel Berteaud b8f402bc86 Add SPF config 11 years ago
Daniel Berteaud e78c7d0ce3 Spec file update 11 years ago
Daniel Berteaud cffb9d817a Add a simple audit page in userinfo panel to show which shares are accessible for each user (read only and read/write) 11 years ago
Daniel Berteaud a80194de4a Spec file update 11 years ago
Daniel Berteaud d4bd4233e6 Also update LDAP email address if the order has changed (at least if the first address of the list is not the same) 11 years ago
Daniel Berteaud eeac7aae1d Spec file update 11 years ago
Daniel Berteaud cb9922e7c6 Remove the non templated qmail-notify cron file (which somehow is still there) 11 years ago
Daniel Berteaud e189b63928 spec file update 11 years ago
Daniel Berteaud d29b73261f Really fix qmail-notify cron 11 years ago
Daniel Berteaud a646159200 Spec file update 11 years ago
Daniel Berteaud d2675bb752 Fix qmail-notify cron 11 years ago
  1. 3
      .tito/packages/.readme
  2. 1
      .tito/packages/ipasserelle-base
  3. 1
      .tito/releasers.conf
  4. 6
      .tito/tito.props
  5. 28
      ipasserelle-base.spec
  6. 11
      root/etc/cron.monthly/maillog-rotate
  7. 5
      root/etc/e-smith/events/actions/ldap-update-info
  8. 4
      root/etc/e-smith/events/actions/share-modify-scan
  9. 4
      root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userinfo
  10. 4
      root/etc/e-smith/web/functions/userinfo
  11. 1
      root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/userinfo.pm

@ -0,0 +1,3 @@
the .tito/packages directory contains metadata files
named after their packages. Each file has the latest tagged
version and the project's relative directory.

@ -0,0 +1 @@
../../tito_libs/releasers.conf

@ -0,0 +1,6 @@
[buildconfig]
builder = tito.builder.Builder
tagger = tito.tagger.VersionTagger
changelog_do_not_remove_cherrypick = 0
changelog_format = %s (%ae)
lib_dir = ../tito_libs

@ -4,9 +4,9 @@
Summary: Meta-Package to turn a SME Server into an iPasserelle Summary: Meta-Package to turn a SME Server into an iPasserelle
Name: %{name} Name: ipasserelle-base
Version: %{version} Version: 0.2.70
Release: %{release}%{?dist} Release: 1%{?dist}
Epoch: 9 Epoch: 9
License: GPL License: GPL
Group: Networking/Daemons Group: Networking/Daemons
@ -49,6 +49,26 @@ Based on SMEServer, iPasserelle is a specially configured
SME Server, with some additionnal modules SME Server, with some additionnal modules
%changelog %changelog
* Thu Dec 19 2019 Daniel Berteaud <daniel@firewall-services.com> 0.2.70-1
- Hide warning if year maildir already exists (daniel@firewall-services.com)
* Thu Mar 14 2019 Daniel Berteaud <daniel@firewall-services.com> 0.2.69-1
- Don't try to create or delete scan dir if no user has been passed
(daniel@firewall-services.com)
* Tue Feb 06 2018 Daniel Berteaud <daniel@firewall-services.com> 0.2.68-1
- Handle Bcc being a fully qualified address in rotate script GLPI #30996
(daniel@firewall-services.com)
* Wed Dec 06 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2.67-1
- Typo in Category CGI param id (daniel@firewall-services.com)
* Wed Dec 06 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2.66-1
- Remove GIT Changelog (daniel@firewall-services.com)
* Wed Dec 06 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2.65-1
- new package built with tito
- Add Support for buisnessCategory LDAP field
* Wed Jul 19 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2.64-1 * Wed Jul 19 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2.64-1
- Reduce spamassassin's BL score to 1.0 each - Reduce spamassassin's BL score to 1.0 each
@ -383,7 +403,7 @@ perl createlinks
--file /usr/bin/make-srv 'attr(0755,root,root)' \ --file /usr/bin/make-srv 'attr(0755,root,root)' \
--dir /var/clamav 'attr(0755,clamav,clamav)' \ --dir /var/clamav 'attr(0755,clamav,clamav)' \
> %{name}-%{version}-filelist > %{name}-%{version}-filelist
echo "%doc CHANGELOG.git" >> %{name}-%{version}-filelist echo "%doc" >> %{name}-%{version}-filelist
%files -f %{name}-%{version}-filelist %files -f %{name}-%{version}-filelist
%defattr(-,root,root) %defattr(-,root,root)

@ -11,15 +11,22 @@ if [ "$BCC" != "enabled" -o "$ARCHIVE" != "enabled" ]; then
fi fi
USER=$(db configuration getprop qpsmtpd BccUser || echo 'maillog') USER=$(db configuration getprop qpsmtpd BccUser || echo 'maillog')
# Truncate if it's a mail address
USER=${USER%@*}
HOME="/home/e-smith/files/users/$USER" HOME="/home/e-smith/files/users/$USER"
# Stop here if the home dir doesn't exist
if [ \! -d $HOME ]; then
echo "$HOME doesn't exist"
exit 1
fi
MONTH=$(date +%m) MONTH=$(date +%m)
YEAR=$(date +%Y) YEAR=$(date +%Y)
su - -s /bin/bash $USER -c "maildirmake -f $YEAR $HOME/Maildir" su - -s /bin/bash $USER -c "maildirmake -f $YEAR $HOME/Maildir" 2>&1 > /dev/null
su - -s /bin/bash $USER -c "maildirmake -f $YEAR.$MONTH $HOME/Maildir" su - -s /bin/bash $USER -c "maildirmake -f $YEAR.$MONTH $HOME/Maildir"
# Lock mail delivery # Lock mail delivery
chmod +t $HOME chmod +t $HOME
cd $HOME cd $HOME

@ -69,14 +69,16 @@ foreach my $acc (@accounts){
my $initials = $acc->prop('Initials') || ''; my $initials = $acc->prop('Initials') || '';
my $dshell = $acc->prop('DesktopShell') || ''; my $dshell = $acc->prop('DesktopShell') || '';
my $preferredemail = $acc->prop('PreferredEmail') || ''; my $preferredemail = $acc->prop('PreferredEmail') || '';
my $category = $acc->prop('Category') || '';
$preferredemail = "$user\@$domain" if ($preferredemail eq ''); $preferredemail = "$user\@$domain" if ($preferredemail eq '');
my $web = $acc->prop('Url') || ''; my $web = $acc->prop('Url') || '';
my (@postalcode,@mobile,@extension,@fax,@titles,@initials,@dshell,@preferredemail,@web) = (); my (@postalcode,@mobile,@extension,@fax,@titles,@initials,@dshell,@preferredemail,@category,@web) = ();
@postalcode = ($postalcode) unless ($postalcode eq ''); @postalcode = ($postalcode) unless ($postalcode eq '');
@mobile = ($mobile) unless ($mobile eq ''); @mobile = ($mobile) unless ($mobile eq '');
@extension = ($extension) unless ($extension eq ''); @extension = ($extension) unless ($extension eq '');
@fax = ($fax) unless ($fax eq ''); @fax = ($fax) unless ($fax eq '');
@category = ($category) unless ($category eq '');
foreach ($function1, $function2, $function3, $function4){ foreach ($function1, $function2, $function3, $function4){
push @titles, $_ if ($_ ne ''); push @titles, $_ if ($_ ne '');
} }
@ -94,6 +96,7 @@ foreach my $acc (@accounts){
initials => \@initials, initials => \@initials,
desktopLoginShell => \@dshell, desktopLoginShell => \@dshell,
preferredMail => \@preferredemail, preferredMail => \@preferredemail,
businessCategory => \@category,
labeledURI => \@web labeledURI => \@web
} }
); );

@ -14,7 +14,7 @@ my $name = $ARGV [1];
die "Event name missing\n" unless (defined $event); die "Event name missing\n" unless (defined $event);
if ($event eq 'user-create'){ if ($event eq 'user-create' and defined $name){
mkpath "/home/e-smith/files/scan/$name"; mkpath "/home/e-smith/files/scan/$name";
system ("$setfacl", system ("$setfacl",
'-m', '-m',
@ -22,7 +22,7 @@ if ($event eq 'user-create'){
'--', '--',
"/home/e-smith/files/scan/$name"); "/home/e-smith/files/scan/$name");
} }
elsif ($event eq 'user-delete'){ elsif ($event eq 'user-delete' and defined $name){
rmtree "/home/e-smith/files/scan/$name"; rmtree "/home/e-smith/files/scan/$name";
} }
else { else {

@ -64,6 +64,10 @@
<trans>Société</trans> <trans>Société</trans>
</entry> </entry>
<entry> <entry>
<base>CATEGORY</base>
<trans>Catégorie</trans>
</entry>
<entry>
<base>STREET_ADDRESS</base> <base>STREET_ADDRESS</base>
<trans>Adresse</trans> <trans>Adresse</trans>
</entry> </entry>

@ -78,6 +78,10 @@ __DATA__
value="get_ldap_value('Company')"> value="get_ldap_value('Company')">
<label>COMPANY</label> <label>COMPANY</label>
</field> </field>
<field type="text" size="30" id="Category"
value="get_ldap_value('Category')">
<label>CATEGORY</label>
</field>
<field type="text" size="30" id="Street" <field type="text" size="30" id="Street"
value="get_ldap_value('Street')"> value="get_ldap_value('Street')">
<label>STREET_ADDRESS</label> <label>STREET_ADDRESS</label>

@ -213,6 +213,7 @@ sub modify_user {
'AltEmail3' => $self->{cgi}->param('AltEmail3'), 'AltEmail3' => $self->{cgi}->param('AltEmail3'),
'AltEmail4' => $self->{cgi}->param('AltEmail4'), 'AltEmail4' => $self->{cgi}->param('AltEmail4'),
'PreferredEmail' => $self->{cgi}->param('PreferredEmail'), 'PreferredEmail' => $self->{cgi}->param('PreferredEmail'),
'Category' => $self->{cgi}->param('Category'),
'Url' => $self->{cgi}->param('Url'), 'Url' => $self->{cgi}->param('Url'),
'Shell' => $self->{cgi}->param('Shell'), 'Shell' => $self->{cgi}->param('Shell'),
'DesktopShell' => $self->{cgi}->param('DesktopShell'), 'DesktopShell' => $self->{cgi}->param('DesktopShell'),

Loading…
Cancel
Save