blob: fed3a2a60fe4b6d068773abe4366fb70371f6155 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh
set -x
> /usr/spool/mail/test.local
echo "Forward to test.local" > /usr/spool/mail/test.forward
echo "Pipe to cat > /tmp/test.mail" > /usr/spool/mail/test.pipe
chmod 644 /usr/spool/mail/test.pipe
mail test.local <<EOF
mailed to test.local
EOF
mail test.forward <<EOF
mailed to test.forward
EOF
mail test.pipe <<EOF
mailed to test.pipe
EOF
mail dutoit!bowell!test.local <<EOF
mailed to dutoit!bowell!test.local
EOF
sleep 60
ls -l /usr/spool/mail/test.*
ls -l /tmp/test.mail
echo ">>>test.local<<<"
cat /usr/spool/mail/test.local
echo ">>>test.mail<<<"
cat /tmp/test.mail
|