Exim – anti-spam per domain setting

acl_check_rcpt:
blah …
blah …
blah …
deny message = rejected as $sender_host_address is blacklisted in $dnslist_domain\n$dnslist_text
domains = domain-one.com : domain-two.com : domain-three.com
dnslists = sbl-xbl.spamhaus.org

blah …
blah …
blah …

reference link : http://www.exim-new-users.co.uk/content/view/65/39/

screen in FreeBSD default to csh as suppose to bash (preferred)

After changing bash shell to a new user using chsh, screen needs ~/.bashrc for environment settings, which need “ln -s ~/.bash_profile ~/.bashrc”.

run sql/queries (postgres) within bash

e.g.

for things-to-buy in $(psql -d database-name -U username -c “select item from glossaries where priority = ‘urgent’ “;

do

blah, blah, blah …

done

secure copy with failover – rsync & ssh

e.g. rsync -av –progress -e ‘ssh -i /alternate/id/file’ sshusername@host:/directory/or/file /destination/directory/or/file

- should the copy process terminated through the half way, just run the exact command again and it will continue from the file is failed previously, without copying again starting all over again.

iTerm resize the window itself when using screen

Bookmarks –> Manage Profiles –>  Terminal Profiles –> Default

check “Disable session-initiated window resizing”.