aboutsummaryrefslogtreecommitdiffstats
path: root/dist-tools/test/testmail
blob: 7941892edbe34a98a1eba89f5da46d29027a6e81 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
size=${1:-0}

(
echo "This mail was generated on "`date`"."

) | mail -s "${size}k test mail from process $$" esr@ccil.org

 <<EOF
EOF
an>/tmp/ip_name fi cat /tmp/ip_name > /etc/sendmail.cw paste /tmp/ip /tmp/ip_name /tmp/local_name > /tmp/host_bottom cat /etc/hosts.top /tmp/host_bottom > /etc/hosts rm /tmp/ip /tmp/ip_name /tmp/host_bottom /tmp/local_name # Restart sendmail with new name. kill -HUP `head -1 /var/run/sendmail.pid` # Start fetchmail as root to fetch our mail. fetchmail