Hi,
I am having quite a fight with qmail right now. I looked through the archive
for a possible solution, but I did not find anything. If this has been
addressed before, please feel free to flame me personally as long as you
include a pointer to where I could find the answer, thanks!
I use qmail as a SMTP relay on our server. It is configured to relay only
local clients, and this much works properly.
My problem is that instead of the sender's email address, qmail-remote puts
<........lo0.......> in the initial MAIL FROM: command when it forwards an
email.
The net result of this is that most SMTP server will reject this and we are
unable to send any message because of that.
Here is a sample bounce message generated by qmail (locally):
----------
Hi. This is the qmail-send program at xyz.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
<[EMAIL PROTECTED]>:
Connected to 1.2.3.4 but sender was rejected.
Remote host said: 553 <... Unbalanced '<'
--- Below this line is a copy of the message.
Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 78837 invoked by uid 0); 6 Mar 2000 18:00:15 -0000
Date: 6 Mar 2000 18:00:15 -0000
Message-ID: <[EMAIL PROTECTED]>
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: sdf
sdf
/.
./
----------
Here is what is logged with syslog:
----------
Mar 6 14:18:57 jacuzzi qmail: 952370337.320111 new msg 1777777
Mar 6 14:18:57 jacuzzi qmail: 952370337.322243 info msg 1777777: bytes 261
from <[EMAIL PROTECTED]> qp 81726 uid 0
Mar 6 14:18:57 jacuzzi qmail: 952370337.384976 starting delivery 65: msg
1777777 to remote [EMAIL PROTECTED]
Mar 6 14:18:57 jacuzzi qmail: 952370337.386023 status: local 0/10 remote
1/20
Mar 6 14:19:10 jacuzzi qmail: 952370350.335286 delivery 65: failure:
Connected_to_1.2.3.4_but_sender_was_rejected./Remote_host_said:_553_<..._Unb
alanced_'<'/
Mar 6 14:19:10 jacuzzi qmail: 952370350.339818 status: local 0/10 remote
0/20
Mar 6 14:19:10 jacuzzi qmail: 952370350.357106 bounce msg 1777777 qp 81729
Mar 6 14:19:10 jacuzzi qmail: 952370350.374765 end msg 1777777
Mar 6 14:19:10 jacuzzi qmail: 952370350.393388 new msg 1777778
Mar 6 14:19:10 jacuzzi qmail: 952370350.394587 info msg 1777778: bytes 851
from <> qp 81729 uid 87
Mar 6 14:19:10 jacuzzi qmail: 952370350.453256 starting delivery 66: msg
1777778 to local [EMAIL PROTECTED]
Mar 6 14:19:10 jacuzzi qmail: 952370350.455154 status: local 1/10 remote
0/20
Mar 6 14:19:10 jacuzzi qmail: 952370350.481800 delivery 66: success:
did_1+0+0/
Mar 6 14:19:10 jacuzzi qmail: 952370350.502240 status: local 0/10 remote
0/20
Mar 6 14:19:10 jacuzzi qmail: 952370350.503784 end msg 1777778
----------
Here is what I saw with tcpdump/tcpshow:
---------------------------------------------------------------------------
Packet 7
TIME: 10:34:11.819549 (0.000381)
LINK: 00:50:BA:AB:66:0B -> 00:90:2B:39:80:8C type=IP
IP: XXXXXXXXXXX -> 1.2.3.4 hlen=20 TOS=00 dgramlen=74 id=1FCE
MF/DF=0/1 frag=0 TTL=64 proto=TCP cksum=D99E
TCP: port 4345 -> smtp seq=0378815384 ack=0111320541
hlen=20 (data=34) UAPRSF=011000 wnd=17520 cksum=C385 urg=0
DATA: MAIL FROM:<........lo0.........>.
---------------------------------------------------------------------------
This happens also when I try to send mail from the relay host itself. It is
not related to the email client I am using.
I am completely lost here, and I would appreciate any help!
Patrick.