for f in $MAILDIR/new/*
do
sendmail user@domain <$f
done
2009. november 16., hétfő
2009. november 9., hétfő
postfix mysql black/whitelist
/etc/postfix/main.cf:
smtpd_helo_restrictions = mysql:/etc/postfix/mysql_blacklist.cf
/etc/postfix/mysql_blacklist.cf:
hosts = 127.0.0.1
user = user
password = password
dbname = dbname
table = bl_mail
select_field = bl_type
where_field = address
smtpd_helo_restrictions = mysql:/etc/postfix/mysql_blacklist.cf
/etc/postfix/mysql_blacklist.cf:
hosts = 127.0.0.1
user = user
password = password
dbname = dbname
table = bl_mail
select_field = bl_type
where_field = address
2009. szeptember 15., kedd
shaperd
/etc/shaperd/shaperd.conf
log level = info
packet forwarding = ipq
daemon = yes
pidfile = /var/run/shaperd.pid
class informatika_up {
ipv4 classifier proto=all saddr=10.1.1.46
bandwidth = 1 mbyte/s
}
class informatika_down {
ipv4 classifier proto=all daddr=10.1.1.46
bandwidth = 1 mbyte/s
}
iptables -A FORWARD -s 10.1.1.46 -j QUEUE
iptables -A FORWARD -d 10.1.1.46 -j QUEUE
log level = info
packet forwarding = ipq
daemon = yes
pidfile = /var/run/shaperd.pid
class informatika_up {
ipv4 classifier proto=all saddr=10.1.1.46
bandwidth = 1 mbyte/s
}
class informatika_down {
ipv4 classifier proto=all daddr=10.1.1.46
bandwidth = 1 mbyte/s
}
iptables -A FORWARD -s 10.1.1.46 -j QUEUE
iptables -A FORWARD -d 10.1.1.46 -j QUEUE
modprobe ip_queue
echo 65535 > /proc/sys/net/ipv4/ip_queue_maxlen
2009. augusztus 17., hétfő
watch sql
watch -n 0,1 'mysql -u squid -psquid squid -B -e "select from_unixtime(timestamp),username,cache_status,req_uri from (select * from access_log_friss order by timestamp desc limit 0, 40) as s2 order by timestamp asc"'
ctrl+s pillanatnyi állapot megállítása
ctrl+s pillanatnyi állapot megállítása
2009. április 26., vasárnap
postfix smarthost smtp auth
This document describes 5 easy steps to setup your Postfix email server as smarthost to relay on DNS Exit mail relay server for all email sending.
The mail relay service from dnsExit.com can be found at here.
1. Create password maps file (it assigns username/passwords to specified mail servers). You can choose any name, let's say it is /etc/postfix/relay_passwd. It's content should be as follows:
relay.dnsexit.com USERNAME:PASSWORD
Note: Replace USERNAME and PASSWORD with your DNS EXIT mail relay username and PASSWORD.
2. Set proper permissions for that file:
# chown root:root /etc/postfix/relay_passwd
# chmod 600 /etc/postfix/relay_passwd
3. Create hash from maps file (remember to do it each time you change your maps file):
# postmap /etc/postfix/relay_passwd
4. Configure your /etc/postfix/main.cf:
relayhost = [relay.dnsexit.com]
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/relay_passwd
smtp_sasl_security_options =
Note: If your ISP blocks outgoing port 25. You can choose to use alternative SMTP ports by appending the port at the end:
relayhost = [relay.dnsexit.com]:26
5. Reload or restart your postfix:
# /etc/init.d/postfix restart
Feliratkozás:
Bejegyzések (Atom)