regexp alias w Postfixie

Chcielibyśmy aby maile zawierające w w polu adresat (to:) ciąg znaków “spam” były przekierowaywne na skrzynkę danego usera

# vi virtual-regexp
/^spam/ user
# vi main.cf
virtual_maps=hash:/usr/local/etc/postfix/virtual, regexp:/usr/local/etc/postfix/virtual-regexp
# postmap virtual-regexp
$ man regexp_table

Co dzięki temu uzyskaliśmy?
Możemy na różnych serwisach które wysyłają nam masę maili czasem potrzebnych czasem mniej, tworzyć dedykowany adres spamerski w stylu spam.facebook@, spam.twitter@ i filtrować maile tylko po adresacie (recipient) a nie wysyłającym (sender)

panic while removing files in FreeBSD 9.2

freebsd_crash

if you occured server panic on FreeBSD 9.2 using journaled soft updates you probably had not clean shutdown and there is some inconsistency (though filesystem is clean) – for better stability disable journaled soft updates:

boot into single mode and after full fsck do:

# tunefs -j disable /dev/filesystem
# reboot

or if you want to using journaled soft updates do manual fsck in single user mode without using journal

 # USE JOURNAL? [yn] n

then the server panics should not appear to the next unclean shutdown…

update FreeBSD

download sources:

# svn checkout https://svn0.eu.FreeBSD.org/base/release/9.2.0 /usr/src

compile, install kernel:

# cd /usr/src 
# make buildworld 
# make buildkernel 
# make installkernel 
# shutdown -r now

install world (single mode):

# adjkerntz -i 
# mergemaster -p 
# cd /usr/src 
# make installworld 
# mergemaster 
# make delete-old 
# reboot 
# make delete-old-libs

sync source:

# svn switch https://svn.FreeBSD.org/base/release/11.1.0 /usr/jails/src
# svn up
# svn info

Path: .
Working Copy Root Path: /usr/jails/src
URL: https://svn.freebsd.org/base/release/11.1.0
Relative URL: ^/release/11.1.0
Repository Root: https://svn.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 321515
Node Kind: directory
Schedule: normal
Last Changed Author: gjb
Last Changed Rev: 321354
Last Changed Date: 2017-07-21 22:55:38 +0200 (Fri, 21 Jul 2017)

problems with svn:
svn info – info: Display information about a local or remote item.
svn status – status (stat, st): Print the status of working copy files and directories.
svn resolve – resolve: Resolve conflicts on working copy files or directories.