Ok, so I've got a command-line email utility that I'm running from DOS, and I'm trying to set up a qmail relay host.  Most mail client software (Outlook Express, etc.) on my network is able to send mails through the relay, and I'm able to send mail successfully from the host itself, but not the utility; every time I tried the tcp connection ended with status 256 and nothing came through.
 
I've discovered that this indicates the bare lf problem with some mailers, and so I'm trying to use fixcrio to resolve the problem since replacing all these non-compliant command-line utilities isn't really an answer.  The script that starts qmail is:
 
#!/bin/sh
QMAILUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
exec /usr/local/bin/softlimit -m 2000000 \
 /usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb \
 -u $QMAILUID -g $NOFILESGID 0 smtp /usr/local/bin/fixcrio \
 /var/qmail/bin/qmail-smtpd 2>&1
 
Now when I send an email from the command-line utility, this is what comes up in the log (this is the entire log, starting with a restart of qmail):
 
@400000003a4c5aa605104d84 tcpserver: status: 0/40
@400000003a4c5ab805227dc4 tcpserver: status: 1/40
@400000003a4c5ab8052786d4 tcpserver: pid 1099 from 192.168.20.27
@400000003a4c5ab80538c8cc tcpserver: ok 1099 :192.168.20.16:25 :192.168.20.27::1
228
@400000003a4c5abe3b4ea3dc tcpserver: end 1099 status 256
@400000003a4c5abe3b4f28ac tcpserver: status: 0/40
 
The interesting thing is, despite the fact that I'm still terminating with status 256 an email gets through, but it doesn't have any info in it (no from, no subject, no body).
 
Any help is greatly appreciated.

Reply via email to