[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Botnow


1c1

> my $dovecotpath = "/etc/dovecot/users.txt";
38a40
>       unveil($dovecotpath, "rwc") or die "Unable to unveil $!";
41a44
>       unveil("$dovecotpath.bak", "rwc") or die "Unable to unveil $!";
206c209
< $staff on IRC and by email.
---
> $staff on IRC and by email. Please reply to email to verify your account!
238c241
<       my $line = "${username}\@$mailhostname:${encrypted}::::::userdb_quota_rule=*:storage=1G";
---
>       my $line = "${username}\@$mailhostname:${encrypted}";
242a246
>       `doas sh -c 'echo $line >> $dovecotpath'`;
246c250
<       `doas smtpctl update table virtuals`;
---
>       `doas smtpctl update table vusers`;
248c252
<       `doas rcctl reload dovecot smtpd`;
---
>       `doas rcctl restart dovecot smtpd`;
254c258,259
<       my @virtuals = main::readarray($virtualspath);
---
>       my @dovecotpath = main::readarray($dovecotpath);
>       my @vusers = main::readarray($virtualspath);
257c262,263
<       @virtuals = grep !/^${username}\@${mailhostname}/, @virtuals;
---
>       @dovecotpath = grep !/^${username}\@${mailhostname}/, @dovecotpath;
>       @vusers = grep !/^${username}\@${mailhostname}/, @vusers;
261a268
>       `doas touch $dovecotpath.bak`;
264c271
<       `doas chmod g+w $passwdpath.bak $virtualspath.bak $senderspath.bak`;
---
>       `doas chmod g+w $passwdpath.bak $dovecotpath.bak $virtualspath.bak $senderspath.bak`;
267c274,276
<       main::writefile("$virtualspath.bak", join("\n", @virtuals)."\n");
---
>       main::writefile("$dovecotpath.bak", join("\n", @dovecotpath)."\n");
>       copy "${dovecotpath}.bak", $dovecotpath;
>       main::writefile("$virtualspath.bak", join("\n", @vusers)."\n");
273c282
<       `doas smtpctl update table virtuals`;
---
>       `doas smtpctl update table vusers`;
275c284
<       `doas rcctl reload dovecot smtpd`;
---
>       `doas rcctl restart dovecot smtpd`;

--
Thanks,

SplinTer
splinter@xxxxxxxxxxxxx
IRCNow Network
https://www.nastycode.com/    For all your UNIX/IRC Needs
https://www.partnaz-n-crime.com/    For all your UNIX/IRC Needs
https://waterboy.nastycode.com/    FREE Waterboy Gospel Lyrics