File: fake-pop3d.html

package info (click to toggle)
tinydyndns 0.4.2.debian1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,432 kB
  • sloc: ansic: 10,256; sh: 291; makefile: 42
file content (50 lines) | stat: -rw-r--r-- 1,331 bytes parent folder | download | duplicates (4)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>tinydyndns - fake-pop3d</title>
</head>
<body>
<a href="http://smarden.org/pape/">G. Pape</a><br>
<a href="index.html">tinydyndns</a>
<hr>
<h1>tinydyndns - fake-pop3d</h1>
<hr>
Since the POP mailbox used by the <i>pop-before-dyndns</i> service never
contains mail, there is no need to run a real pop3 server, and for
having a <tt>Maildir/</tt> at all.
You can test to replace the <tt>pop3front-maildir</tt> in
<tt>/etc/tinydyn/pop/run</tt> with this
<a href="fake-pop3d.sh">fake-pop3d</a> script:
<pre>
 #!/bin/sh
 echo '+OK '
 read input
 if [ "$input" = 'LIST' ]; then
   echo '+OK'
   echo '.'
 elif [ "$input" = 'STAT' ]; then
   echo '+OK 0 0'
 fi
 read input
 echo '+OK'
 exit 0
</pre>
An example <tt>/etc/tinydyn/pop/run</tt> script:
<pre>
 #!/bin/sh
 exec softlimit -m 4000000 envdir ./env tcpserver -vRH a.b.c.d 110 \
   pop3front-auth dyn.smarden.org \
     cvm-pwfile sh -c '
       echo "login: $USER: $TCPREMOTEIP" >&7
       cd /etc/tinydyn/root
       setlock data.cdb \
       tinydyndns-update $USER.dyn.smarden.org $TCPREMOTEIP >&7 2>&1
       cd /etc/tinydyn/pop
       exec /etc/tinydyn/pop/fake-pop3d
     ' 2>&1 7>&1
</pre>
<hr>
<address><a href="mailto:pape@smarden.org">
Gerrit Pape &lt;pape@smarden.org&gt;
</a></address>
</body>
</html>