Postfix server configuration

Postfix server (Debian / Ubuntu) is: configured to primary domain faix.cz listening on SMTP port 25 on home-server machine   From Internet it delivers email for following domain: faix.cz From LAN it delivers email for following domain: home.lan Every LAN computer forwards it’s mail for any user to home-server mail server and is processed to … Read more

Postfix and AntiSpam Smtp Proxy – ASSP

http://www.howtoforge.com/antispam_smtp_proxy perl -MCPAN -e shell install Compress::Zlib install Digest::MD5 install Email::Valid install File::ReadBackwards install Mail::SPF::Query install Mail::SRS install Net::DNS install Sys::Syslog install Time::HiRes cd /usr/src/ wget http://downloads.sourceforge.net/project/assp/ASSP%20V2%20multithreading/2.4.1%2014085/ASSP_2.4.1_14085_install.zip unzip ASSP_2.4.1_14085_install.zip mkdir -p /usr/share/assp/spam mkdir /usr/share/assp/notspam mkdir /usr/share/assp/errors mkdir /usr/share/assp/errors/spam mkdir /usr/share/assp/errors/notspam mv -f assp/* /usr/share/assp rm -fr ASSP_2.4.1* assp changelog.txt Install.txt MacOSX-launchd.txt quickstart.txt Win32-quickstart-guide.txt chown -R … Read more

Postfix and Greylisting

http://www.howtoforge.com/greylisting_postfix_postgrey apt-get install postgrey /etc/default/postgrey POSTGREY_OPTS="–inet=<ip>:10023 –delay=60" service postgrey start /etc/postfix/main.cf smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, check_policy_service inet:<ip>:10023 service postfix reload

Spamassassin and Postifx configuration

http://www.akadia.com/services/postfix_spamassassin.html aptitude install spamassassin spamc /etc/default/spamassassin ENABLED=1 SAHOME="/var/log/spamassassin/" OPTIONS="–create-prefs –max-children 2 –username debian-spamd -H ${SAHOME} -s ${SAHOME}spamd.log" PIDFILE="/var/run/spamd.pid" CRON=1 /etc/postfix/master.cf smtp inet n – – – – smtpd -o content_filter=spamfilter spamfilter unix – n n – – pipe flags=Rq user=debian-spamd argv=/usr/local/bin/spamfilter.sh -oi -f ${sender} ${recipient} mkdir /var/spamchk chmod 775 /var/spamchk chown debian-spamd:debian-spamd /var/spamchk /usr/local/bin/spamfilter.sh #!/bin/sh # —————————————————————– … Read more

Postfix SMTP Authentication

http://linux.about.com/od/ubusrv_doc/a/ubusg29t05.htm http://www.jimmy.co.at/weblog/?p=52 apt-get install sasl2-bin libsasl2-2 libsasl2-modules Configure Postfix to do SMTP AUTH using SASL (saslauthd): postconf -e 'smtpd_sasl_local_domain =' postconf -e 'smtpd_sasl_auth_enable = yes' postconf -e 'smtpd_sasl_security_options = noanonymous' postconf -e 'broken_sasl_auth_clients = yes' postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination' postconf -e 'inet_interfaces = all' echo 'pwcheck_method: saslauthd' > /etc/postfix/sasl/smtpd.conf echo 'mech_list: plain login' > … Read more

Postfix satellite configuration

dpkg-reconfigure postfix /etc/mailname faix.homelinux.net /etc/aliases postmaster: root webmaster: root www-data: root jan: jan.faix@gmail.com wassana: fern.cht@gmail.com root: jan.faix@gmail.com newaliases /etc/postfix/relay_passwd mail.faix.cz mail:xxxxxxxx chown root:root /etc/postfix/relay_passwd postmap /etc/postfix/relay_passwd /etc/postfix/main.cf myorigin = /etc/mailname smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no append_dot_mydomain = no readme_directory = no myhostname = home-desktop alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mydestination … Read more

Linux mini-howto

# Linux je operační systém s monolitickým jádrem. Moduly jsou objektové soubory, dynamické části jádra. Umožňují rozšířit za běhu funkce stávajícího jádra (LKM = Linux Loadable Kernel Module). # daemons basic operations /etc/init.d/apache status /etc/init.d/apache restart # filter file content cat /var/log/… | grep (192.168….) -v 9190 | grep 192.168…. | more tail -f /var/log/… … Read more