1 |
Ben Munat wrote: |
2 |
> I'm really, really hoping that someone on this list is a qmail wizard... |
3 |
> I'm completely stuck. |
4 |
> |
5 |
> I've written a Java Servlet application which I'm running on my gentoo |
6 |
> server. When a transaction is completed, the servlet uses JavaMail to |
7 |
> send an email regarding the transaction. The problem is that I keep |
8 |
> getting "553 sorry, that domain isn't in ... rcpthosts". |
9 |
> |
10 |
> I've read up extensivley on lifewithqmail.org and palomine.net/qmail and |
11 |
> I understand the purpose of rcpthosts. I have the domain name of the |
12 |
> server in rcpthosts, but it still doesn't work. I tried localhost, |
13 |
> 127.0.0.1, and the actual ip address of the server in rcphosts... still |
14 |
> no go. |
15 |
> |
16 |
> It would seem that one of those entries in rcpthosts would work, but |
17 |
> since it didn't I also tried setting up tcpserver to allow the |
18 |
> connection from itself. Following the palomine.net example I made a |
19 |
> tcp.smtp file like this: |
20 |
> |
21 |
> x.x.x.x:allow,RELAYCLIENT="" |
22 |
> :allow |
23 |
> |
24 |
> where x.x.x.x is my server's ip address. And I compiled it into |
25 |
> tcp.smtp.cdb. But still, it doesn't work... |
26 |
|
27 |
First, make sure that both 127.0.0.1 and your LAN IP have entries in |
28 |
/etc/tcp.smtp. For example, mine is: |
29 |
|
30 |
192.168.254.:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" |
31 |
127.0.0.1:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" |
32 |
:allow,QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" |
33 |
|
34 |
Unless you're using qmail-scanner, you wouldn't need the QMAILQUEUE part. |
35 |
|
36 |
When you say "servlet", what do you mean (I'm not exactly familiar with that |
37 |
term)? Is it running server-side or in a client's browser? If it is running in a |
38 |
client's browser, then it is connecting from that IP instead of your server's IP |
39 |
address. If it is server-side, adding 127.0.0.1 to /etc/tcp.smtp may do the trick. |
40 |
|
41 |
-- |
42 |
Andrew Gaffney |
43 |
Network Administrator |
44 |
Skyline Aeronautics, LLC. |
45 |
636-357-1548 |