1 |
Here's my tcp.smtp: |
2 |
|
3 |
127.0.0.1:allow,RELAYCLIENT="" |
4 |
:allow |
5 |
|
6 |
Not running qmail-scanner and I don't know anything about a LAN... this |
7 |
is a rented rackmount server, don't think it's on a LAN. |
8 |
|
9 |
Java Servlets are server-side java code, so no this isn't running on a |
10 |
client. The program is a simple e-commerce site and I'm trying to have |
11 |
the java send an email when a sale is made. I've got it working sending |
12 |
the mail to a email address hosted by the server, but can't send it to |
13 |
another server, cuz that's considered a relay. |
14 |
|
15 |
This tcp.smtp thing should be working... pretty stumped as to why it's not. |
16 |
|
17 |
Thanks, |
18 |
|
19 |
b |
20 |
|
21 |
Andrew Gaffney wrote: |
22 |
|
23 |
> |
24 |
> First, make sure that both 127.0.0.1 and your LAN IP have entries in |
25 |
> /etc/tcp.smtp. For example, mine is: |
26 |
> |
27 |
> 192.168.254.:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" |
28 |
> |
29 |
> 127.0.0.1:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" |
30 |
> |
31 |
> :allow,QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" |
32 |
> |
33 |
> Unless you're using qmail-scanner, you wouldn't need the QMAILQUEUE part. |
34 |
> |
35 |
> When you say "servlet", what do you mean (I'm not exactly familiar with |
36 |
> that term)? Is it running server-side or in a client's browser? If it is |
37 |
> running in a client's browser, then it is connecting from that IP |
38 |
> instead of your server's IP address. If it is server-side, adding |
39 |
> 127.0.0.1 to /etc/tcp.smtp may do the trick. |
40 |
> |