Not getting mail from smtpd
Hi! I'm definitely a newbie at mail administration, so please bear with me, or point me to the appropriate document in case I missed it. I've read the TEST.* INSTALL.* and FAQ files but haven't been able to get smtpd to get the mail into my mailbox. I'm using qmail-1.03 with the large packet DNS patch on OpenBSD 2.7. I'm using procmail to deliver the mail to the mail queue. Local mail seems to be working just fine, mail shows up in /var/mail/username, and BSD Mail can read it. I have been working on the remote receive by telneting to port 25 and sending the proper SMTP protocol (following the TEST.receive doc). I've checked the log in /var/log/qmail/qmail-smtpd/current and I don't see any errors (I'm at work and the log is at home, so I can't send the log, but it seems that smtpd is fat and happy! I can get them and repost if someone thinks they're of use), in fact I seem to be seeing new text being appended to the log and everything looks like a success! But beyond that I'm not seeing anything. I've checked /var/log/maillog to no avail. Can someone point to the next step? Thanks much for any help! Cheers, Craig
Re: Not getting mail from smtpd
"Craig L. Ching" <[EMAIL PROTECTED]> wrote: >I've checked the log in >/var/log/qmail/qmail-smtpd/current and I don't see any errors (I'm at work >and the log is at home, so I can't send the log, but it seems that smtpd is >fat and happy! I can get them and repost if someone thinks they're >of use), Please do. -Dave PS: If you ever write an autobiography, I suggest you call it "I, Ching"
FW: Not getting mail from smtpd
"Craig L. Ching" <[EMAIL PROTECTED]> wrote: > > >I've checked the log in > >/var/log/qmail/qmail-smtpd/current and I don't see any > errors (I'm at work > >and the log is at home, so I can't send the log, but it > seems that smtpd is > >fat and happy! I can get them and repost if someone thinks they're > >of use), > > Please do. > Okay, will do. Can anyone post what the log should look like for a successful receive by smtpd? > -Dave > > PS: If you ever write an autobiography, I suggest you call it > "I, Ching" > Heh, heard it before, but still funny! Cheers, Craig
Re: Not getting mail from smtpd
On Fri, Jul 28, 2000 at 11:27:13AM -0500, Craig L. Ching wrote: ! Okay, will do. Can anyone post what the log should look like for a ! successful receive by smtpd? $ tail /service/smtpd/log/main/current @40003981b5cf063a798c tcpserver: status: 1/40 @40003981b5cf0649cf54 tcpserver: pid 30380 from 127.0.0.1 @40003981b5cf073abb1c tcpserver: ok 30380 localhost:127.0.0.1:25 localhost:127.0.0.1:cky:30405 @40003981b5cf2793d7f4 tcpserver: end 30380 status 0 @40003981b5cf279f1eac tcpserver: status: 0/40 $ tail /service/qmail/log/main/current @40003981b5cf1637e39c new msg 12548 @40003981b5cf16432284 info msg 12548: bytes 2104 from <[EMAIL PROTECTED]> qp 12047 uid 105 @40003981b5cf16d538f4 starting delivery 3956: msg 12548 to local cky@localhost @40003981b5cf16e3c39c status: local 1/10 remote 0/20 @40003981b5cf1ba4fcfc delivery 3956: success: did_0+0+2/ @40003981b5cf1bb890b4 status: local 0/10 remote 0/20 @40003981b5cf1bbea364 end msg 12548 Hope that helps, ---Chris K. -- Chris, the Young One |_ heartbleed (OpenBSD/i386) has now been up for Auckland, New Zealand |_ all of 30 days, 14:47:45 http://cloud9.hedgee.com/ |_ PGP: 0xCCC6114E/0x706A6AAD |_
RE: Not getting mail from smtpd
> On Fri, Jul 28, 2000 at 11:27:13AM -0500, Craig L. Ching wrote: > ! Okay, will do. Can anyone post what the log should look like for a > ! successful receive by smtpd? > > $ tail /service/smtpd/log/main/current > @40003981b5cf063a798c tcpserver: status: 1/40 > @40003981b5cf0649cf54 tcpserver: pid 30380 from 127.0.0.1 > @40003981b5cf073abb1c tcpserver: ok 30380 > localhost:127.0.0.1:25 localhost:127.0.0.1:cky:30405 > @40003981b5cf2793d7f4 tcpserver: end 30380 status 0 > @40003981b5cf279f1eac tcpserver: status: 0/40 > > $ tail /service/qmail/log/main/current > @40003981b5cf1637e39c new msg 12548 > @40003981b5cf16432284 info msg 12548: bytes 2104 from > <[EMAIL PROTECTED]> qp > 12047 uid 105 > @40003981b5cf16d538f4 starting delivery 3956: msg 12548 > to local cky@localhost > @40003981b5cf16e3c39c status: local 1/10 remote 0/20 > @40003981b5cf1ba4fcfc delivery 3956: success: did_0+0+2/ > @40003981b5cf1bb890b4 status: local 0/10 remote 0/20 > @40003981b5cf1bbea364 end msg 12548 > k, thanks! If I remember correctly (I know, this is purely speculation!), this is pretty much what my smtpd log looked like, only I'm looking in /var/log/qmail/qmail-smtpd/current. I didn't realize there were logs in /service, so maybe I'll see something different there. What should the smtpd do with the message if the log looks like this? Is it then processed by my /var/qmail/rc script? In that case (I'm using procmail right now, just trying to get this to work) should it then end up on my queue? Thanks for the help, I'm still in the "trying to understand it all" phase. I'll get my logs and repost (sounds like a good lunch thing to do!). > Hope that helps, > ---Chris K. > -- > Chris, the Young One |_ heartbleed (OpenBSD/i386) has now > been up for > Auckland, New Zealand |_ all of 30 days, 14:47:45 > http://cloud9.hedgee.com/ |_ > PGP: 0xCCC6114E/0x706A6AAD |_ > Cheers, Craig
RE: Not getting mail from smtpd
"Craig L. Ching" <[EMAIL PROTECTED]> wrote: >k, thanks! If I remember correctly (I know, this is purely speculation!), >this is pretty much what my smtpd log looked like, only I'm looking in >/var/log/qmail/qmail-smtpd/current. I didn't realize there were logs in >/service, so maybe I'll see something different there. There's not really a standard location for logs. I suspect you were looking in the right place. >What should the >smtpd do with the message if the log looks like this? qmail-smtpd doesn't log anything. The log entries posted were from tcpserver, which logs the SMTP connection, and qmail-send, which logs the delivery. If you want to see how the pieces fit together, check out: http://Web.InfoAve.Net/~dsill/lwq.html#pictures >Is it then processed >by my /var/qmail/rc script? No, the rc script just starts qmail. >In that case (I'm using procmail right now, >just trying to get this to work) should it then end up on my queue? qmail-smtpd puts the message in the queue. qmail-send passes it off to qmail-lspawn for local delivery. qmail-lspawn looks for a .qmail file or uses the default delivery specification on the qmail-start command line (from /var/qmail/rc) to determine how to deliver the message. If it's to be delivered via procmail, qmail-local execs procmail. -Dave
RE: Not getting mail from smtpd
> There's not really a standard location for logs. I suspect you were > looking in the right place. > Okay. > qmail-smtpd doesn't log anything. The log entries posted were from > tcpserver, which logs the SMTP connection, and qmail-send, which logs > the delivery. > Oh, okay. Here's my entry from /var/log/qmail/qmail-smtpd/current. This is a diff of current from before to after I did the TEST.receive: 52,56d51 < @40003981c1c90c20f524 tcpserver: status: 1/40 < @40003981c1c90c3271b4 tcpserver: pid 15431 from 192.168.0.3 < @40003981c1c90dd8559c tcpserver: ok 15431 sumo.craig-home.org:192.168.0.3:25 sumo.craig-home.org:192.168.0.3:root:28777 < @40003981c1f2287da384 tcpserver: end 15431 status 0 < @40003981c1f2288377b4 tcpserver: status: 0/40 Here's what I typed into the telnet session: sumo# telnet sumo 25 Trying 192.168.0.3... Connected to sumo. Escape character is '^]'. 220 sumo.craig-home.org ESMTP helo dude 250 sumo.craig-home.org mail [EMAIL PROTECTED] 250 ok rcpt [EMAIL PROTECTED] 250 ok data 354 go ahead Subject: Testing SMTP receive Did you get it? . 250 ok 964805092 qp 22566 quit 221 sumo.craig-home.org Connection closed by foreign host. sumo# > If you want to see how the pieces fit together, check out: > > http://Web.InfoAve.Net/~dsill/lwq.html#pictures > Yep, I've got those and am looking at them. > >Is it then processed > >by my /var/qmail/rc script? > > No, the rc script just starts qmail. > Okay. > >In that case (I'm using procmail right now, > >just trying to get this to work) should it then end up on my queue? > > qmail-smtpd puts the message in the queue. qmail-send passes > it off to Is there anyway to see what's in the queue? Where is the queue? How do I trace where the message is getting lost? Sorry for the basic questions, but I haven't seen these documented anywhere before, no doubt I've missed something. > qmail-lspawn for local delivery. qmail-lspawn looks for a .qmail file > or uses the default delivery specification on the qmail-start command > line (from /var/qmail/rc) to determine how to deliver the message. If > it's to be delivered via procmail, qmail-local execs procmail. > Thanks, this clarifies a lot for me! > -Dave > Thanks for the help! Cheers, Craig
Re: FW: Not getting mail from smtpd
"Craig L. Ching" <[EMAIL PROTECTED]> wrote: >Okay, will do. Can anyone post what the log should look like for a >successful receive by smtpd? Sure: 964802107.045958 new msg 5878737 964802107.048026 info msg 5878737: bytes 640 from <[EMAIL PROTECTED]> qp 313391 uid 49491 964802107.175420 starting delivery 9463: msg 5878737 to local [EMAIL PROTECTED] 964802107.175467 status: local 1/10 remote 0/20 964802107.345305 delivery 9463: success: did_1+0+0/ 964802107.378367 status: local 0/10 remote 0/20 964802107.378398 end msg 5878737 >Heh, heard it before, but still funny! You're too kind. Thanks for being a good sport about it. BTW, I've heard my share of "sill" puns... -Dave