[NCLUG] Mail Routing Wierdness

Sean Reifschneider jafo-nclug at tummy.com
Thu Nov 29 22:59:47 MST 2001


On Thu, Nov 29, 2001 at 04:51:59PM -0700, Michael Dwyer wrote:
>This denial is apparently RFC-compliant.  Which would mean that our
>mailer is not sending RFC compliant envelopes.  Does anyone know if
>QMail can be trusted to follow spec to the letter like this?  That is,
>does anyone know how QMail does its SMTP conversations?

qmail-remote.c, qmail's SMTP client, line 233:

   substdio_puts(&smtpto,"MAIL FROM:<");
   substdio_put(&smtpto,sender.s,sender.len);
   substdio_puts(&smtpto,">\r\n");

and line 242:

   for (i = 0;i < reciplist.len;++i) {
      substdio_puts(&smtpto,"RCPT TO:<");
      substdio_put(&smtpto,reciplist.sa[i].s,reciplist.sa[i].len);
      substdio_puts(&smtpto,">\r\n");

So, it looks like qmail does bracket the address.  And it looks like the
mail server is taking this format:

   220 kingfw01.administaff.com Generic SMTP handler
   helo sixthdimension.com
   250 kingfw01.administaff.com talking to c1803733-a.ftclns1.co.home.com
   ([24.22.171.67])
   mail from:<mdwyer at sixthdimension.com>
   250 mdwyer at sixthdimension.com OK
   RCPT TO:<postmaster at administaff.com>
   250 postmaster at administaff.com OK

Sean
-- 
 It is far from clear whether "good intentions plus stupidity" or "evil
 intentions plus intelligence" have wrought more harm in the world.
                 --- Domer, The Logic of Failure
Sean Reifschneider, Inimitably Superfluous <jafo at tummy.com>
tummy.com - Linux Consulting since 1995. Qmail, KRUD, Firewalls, Python



More information about the NCLUG mailing list