I'm running qpsmtpd v 0.32.
This server is mainly an outbound email server but does handle bounces,
unsubs, and complaints. I'm probably not using qpsmtpd the way anyone
intended but it is a simple solution to my problem.  I need to rewrite
headers adding a line "X-VirtualServerGroup:" based on what IP they are
recieved on.

My configuration:
I currently have hosts_allow, add_header (my custom plugin to add a line to
the header), check_relay, rcpt_ok, and queue/smtp-forward plugins running.
I've opened up qpsmtpd to allow tons of connections and allow relaying from
any internal IP address and have it forwarding via smtp, I have increase
MAXCONN to 10000 and MAXCONNIP to 5000. These are completely overkill but I
need to accept everything sent to it.
I expect every email set to be accepted and forwarded on.

I'm seeing this work 60% of the time and the other part of the time i'm
seeing "Connection reset by peer"
Here is a snippet of the LOGS
<SNIP>
Wed Sep 13 14:42:25 2006 XXXXXXX.XXXXXXX.com[16800]: to email address : [<
[EMAIL PROTECTED]>]
Wed Sep 13 14:42:26 2006 XXXXXXX.XXXXXXX.com[16801]: from email address : [<
[EMAIL PROTECTED]>]
Wed Sep 13 14:42:26 2006 XXXXXXX.XXXXXXX.com[16801]: to email address : [<
[EMAIL PROTECTED]>]
Wed Sep 13 14:42:30 2006 XXXXXXX.XXXXXXX.com[16805]: Could not print [250
XXXXXXX.XXXXXXX.com Hi XXXXXX.XXXXXXX.com [XXX.XXX.XXX.XXX]; I am so happy
to meet you.]: Connection reset by peer
Wed Sep 13 14:42:31 2006 XXXXXXX.XXXXXXX.com[16806]: Could not print [250
XXXXXXX.XXXXXXX.com Hi XXXXXX.XXXXXXX.com [XXX.XXX.XXX.XXX]; I am so happy
to meet you.]: Connection reset by peer
</SNIP>

This error is being printed from the lib/Qpsmtpd/TcpServer.pm file line #78.
I believe the "respond" function is being called in lib/Qpsmtpd/SMTP.pm like
#166

I don't understand what is causing this to error out and reset the
connection.

Any enlightenment would be appreciated.

Brad Z.

Reply via email to