Hello, everyone:

I'm trying to set up selective relaying. When I first installed qmail I had
the local hosts and their virtual domains in the 'rcpthosts' file. With the
system set up like this I couldn't mail out (if the e-mail I was sending
wasn't to a name in the rcpthosts file, it didn't arrive).

I have tcpserver configured using the following rules file:

24.:allow,RELAYCLIENT=""
209.:allow,RELAYCLIENT=""
192.:allow,RELAYCLIENT=""
127.:allow,RELAYCLIENT=""
:deny

(this is copied directly)

tcpserver starts with an entry in rc.local:

/usr/local/bin/tcpserver -u 503 -g 502 -c 50 0 smtp
/var/qmail/bin/qmail-smtpd \
2>&1 | /var/qmail/bin/splogger smptd 3 &

it appears in ps output (also copied directly):

USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  0.1  0.2  1148   68 ?        S    14:32   0:04 init [5]
root         2  0.0  0.0     0    0 ?        SW   14:32   0:00 [kflushd]
root         3  0.0  0.0     0    0 ?        SW   14:32   0:00 [kupdate]
root         4  0.0  0.0     0    0 ?        SW   14:32   0:00 [kpiod]
root         5  0.0  0.0     0    0 ?        SW   14:32   0:00 [kswapd]
root       118  0.0  0.0  1144    0 ?        SW   14:33   0:00 [apmd]
bin        262  0.0  0.9  1144  280 ?        S    14:33   0:00 portmap
root       314  0.0  0.7  1348  216 ?        S    14:33   0:00 syslogd
root       324  0.0  0.0  1404    0 ?        SW   14:33   0:00 [klogd]
daemon     339  0.0  0.9  1172  304 ?        S    14:33   0:00 /usr/sbin/atd
root       354  0.0  0.6  1368  208 ?        S    14:33   0:00 crond
root       373  0.0  0.5  1308  160 ?        S    14:33   0:00 inetd
root       388  0.0  0.0  1360    0 ?        SW   14:33   0:00 [lpd]
qmails     418  0.0  0.7  1168  240 ?        S    14:33   0:00 qmail-send
qmaill     421  0.0  0.6  1140  204 ?        S    14:33   0:00 splogger
qmail
root       422  0.0  1.1  1132  352 ?        S    14:33   0:00 qmail-lspawn
|pre
qmailr     423  0.0  1.1  1132  364 ?        S    14:33   0:00 qmail-rspawn
qmailq     424  0.0  0.4  1124  124 ?        S    14:33   0:00 qmail-clean
root       437  0.0  1.0  1180  332 ttyS0    S    14:33   0:00 gpm -t
MouseMan
xfs        458  0.0  3.3  2560 1016 ?        S    14:33   0:00 xfs -port -1
root       473  0.0  0.0  2160    0 ?        SW   14:33   0:00 [smbd]
root       483  0.0  1.8  1740  584 ?        S    14:33   0:00 nmbd -D
qmaild     513  0.0  0.5  1380  160 ?        S    14:33   0:00
/usr/local/bin/tc
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^
root       514  0.0  1.0  1128  324 ?        S    14:33   0:00
/var/qmail/bin/sp
root       517  0.0  0.0  1124    0 tty1     SW   14:33   0:00 [mingetty]
root       518  0.0  0.0  1124    0 tty2     SW   14:33   0:00 [mingetty]
root       519  0.0  0.0  1124    0 tty3     SW   14:33   0:00 [mingetty]
root       520  0.0  0.0  1124    0 tty4     SW   14:33   0:00 [mingetty]
root       521  0.0  0.0  1124    0 tty5     SW   14:33   0:00 [mingetty]
root       522  0.0  0.0  1124    0 tty6     SW   14:33   0:00 [mingetty]
root       523  0.0  0.0  6008    0 ?        SW   14:33   0:00 [prefdm]
root       527  0.0 13.4  8880 4148 ?        S    14:33   0:01
/etc/X11/X -auth
root       528  0.0  8.4  6172 2588 ?        S    14:33   0:00 -:0
sfbosch    559  0.0  4.1  2284 1272 ?        S    14:35   0:00 imapd
sfbosch    560  0.1  4.0  2276 1236 ?        S    14:35   0:03 imapd
root       573  0.0  2.9  1792  916 ?        S    14:39   0:01 telnetd:
dsl-ch-l
root       574  0.0  3.9  2316 1216 pts/0    S    14:39   0:00 login --
sfbosch
sfbosch    575  0.0  3.8  2060 1196 pts/0    S    14:39   0:00 -bash
root       599  0.0  3.0  2016  944 pts/0    S    14:42   0:00 su
root       600  0.0  4.0  2116 1248 pts/0    S    14:42   0:00 bash
root       612  0.0  2.9  1792  916 ?        S    14:47   0:00 telnetd:
dsl-ch-l
root       613  0.0  3.9  2316 1216 pts/1    S    14:47   0:00 login --
sfbosch
sfbosch    614  0.0  3.8  2064 1192 pts/1    S    14:47   0:00 -bash
sfbosch    777  0.0  2.7  2512  860 pts/1    R    15:31   0:00 ps aux

When I use tcprulescheck, the output is consistent with the rules I have
set.

My rcpthosts file is below (copied directly):

vodacomm.ca
vodacomm.com
nucleus.com
localhost.nucleus.com
dsl-ch-l15-c80-n249-i138-cgy.nucleus.com

Now:

With the above rcpthosts file in place and the rules I have already listed,
I am unable to send mail from allowed hosts to any host that is not in the
rcpthosts file. The way I am currently working around this is to not have a
rcpthosts file, but I am uncomfortable doing this.

It seems to me I've made a mistake in the way I've configured tcpserver, but
I can't be sure and I don't know exactly where I should be looking. Any
ideas?

-Stephen Bosch-

Reply via email to