Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connection died when try to send to remote domains (4.4.2 error)

Status
Not open for further replies.

lakester

IS-IT--Management
May 31, 2004
5
IT
Hi to everyone,

I've configured qmail on fedora core 2 with squirrel and vpopmail.
I've created a virtual domain and some users.
These users can connect successfully to my server via http/https.
They can send/receive mail if the recipients are in the same virtual domain I've created. They can receive mail from outside (for example from *@aol.com) but they cannot send mail to remote domains (for example they cannot send mails to john@aol.com) even if these domains
reside on a server on the same network.

Here's what I get in the /var/log/qmail/send/current log:

@4000000040b5f2011890f2b4 new msg 232698
@4000000040b5f20118913904 info msg 232698: bytes 3541 from
<myuser@myvirtualdomain.com> qp 2587 uid 502
@4000000040b5f2011d27b4fc starting delivery 67: msg 232698 to remote user@remotedomain.com
@4000000040b5f2011d27ff34 status: local 0/10 remote 2/20
@4000000040b5f2011d2835e4 delivery 66: success:
81.31.64.10_accepted_message./Remote_host_said:_250_ok_1085665783_qp_2587/
@4000000040b5f2011d28784c status: local 0/10 remote 1/20
@4000000040b5f2011d28b2e4 end msg 232674
@4000000040b5f2011d8044dc delivery 67: deferral:
Connected_to_111.111.111.111_but_connection_died._(#4.4.2)/
@4000000040b5f2011d808744 status: local 0/10 remote 0/20


myuser@myvirtualdomain.com is the email address of my user on my virtual domain, and user@remotedomain.com is the email address of the outside recipient (for example john@hotmail.com).

111.111.111.111 is the IP address of our qmail server.

for your information this is our tcp.smtp file:

10.1.1.:allow,RELAYCLIENT="",RBLSMTPD=""
111.111.111..:allow,RELAYCLIENT="",RBLSMTPD=""
:allow


111.111.111.x is the public network where our qmail server resides and
10.1.1.x is our private network.


and this is our qmail-smtp run file located at
/var/qmail/supervise/qmail-smtpd


#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`

exec /usr/local/bin/softlimit -m 4000000 /usr/local/bin/tcpserver -H -l ourhostname -v -x /etc/tcp.smtp.cdb -c 20 -R -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /usr/local/bin/rblsmtpd -b -C -r 'relays.ordb.org:Your message was rejected because the mail
server you use is configured to allow OPEN RELAY' -t 5 /var/qmail/bin/qmail-smtpd 2>&1
 
It sounds like the basic problem is... you are unable to send messages to remote servers. The thing that confuses me... if you look at the log file example you provided, "delivery 67" shows you have successfully sent a remote message.

Try this... run /var/qmail/bin/qmail-showctl and post the output here. This will show us how you've got qmail configured and will help a great deal in getting your problem solved.

For your tcp.smtp file, you may want to include...

127.0.0.1:allow,RELAYCLIENT="",RBLSMTPD=""

This will allow messages coming from the localhost to relay, which should be allowed. Depending on how you've got qmail setup, this may solve your problem.
 
By the way... there's no need to hide your IP addresses or domains. You won't be revealing any compromising information by posting it. Just don't post any of your user's actual email addresses and you should be fine.
 
please post unedited versions if you want help otherwise it's hard for us to actually determine the problem.
 
I've discoved my problem.

I put my hostname into the smtproutes file in /var/qmail/control.

Doing that when I try to send a mail to remote addresses qmail generates an internal loop and the mail will be never delivered.

Removing that file qmail is now able to send mails to the outside.

Thanks anyway! :))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top