Re: Again Local Deliveries not working - I'm LOST, really...
On Thu, Aug 09, 2001 at 03:26:16PM -0230, Martin Marconcini wrote: > > If you don't put From and To headers in your message, there won't be > any > > From > > and To headers in your message. What appears in these headers has > nothing > > to do > > with the SMTP MAIL FROM and RCPT TO commands. > > Now a question... > Why I usually do a telnet xxx 25 and send a mail like I did and I works? > > Is there any configuration? > > I mean I did mail to: email, rcpt to: email my whole life! > I swear! If you mean, "How come other MTAs let me get away with that?", it's simple. qmail speaks SMTP properly, and is not very forgiving about those that don't. The ability to handle arbitrary variations in the SMTP protocol would require a parser in qmail-smtpd, which would complicate the code unnecessarily. I have yet to see another MTA which sends mail in the format you describe, so a parser is unecessary. Another former poor SMTP speaker, GW
Re: Again Local Deliveries not working - I'm LOST, really...
Martin Marconcini <[EMAIL PROTECTED]> wrote: > > > > Try talking proper SMTP instead: > > > > 220 megadeth.dnsalias.com ESMTP > > helo megadeth.dnsalias.com > > 250 megadeth.dnsalias.com > > mail from:<[EMAIL PROTECTED]> > > 250 ok > > rcpt to:<[EMAIL PROTECTED]> [...] > This way it worked... however the mail program will say > > from: > to: [...] The addresses given in the SMTP conversation have absolutely nothing to do with the From: and To: headers you see when you view the message in your MUA. Messages can show up in your mailbox without even having From: and To: headers. If you want your MUA to "say" the right things, then compose the message properly. Charles -- --- Charles Cazabon<[EMAIL PROTECTED]> GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ ---
Re: Again Local Deliveries not working - I'm LOST, really...
Martin Marconcini <[EMAIL PROTECTED]> wrote: > Mails for accounts in my box arrive smooth. But if I try to send FROM > localhost to local ... will not. [...] > @40003b72949c101d82dc new msg 165132 > @40003b72949c10372174 info msg 165132: bytes 182 from <> qp 23545 > uid 2850 > @40003b72949c152f64ac starting delivery 42: msg 165132 to local > @megadeth.dnsalias.com > @40003b72949c1538e25c status: local 1/10 remote 0/20 > @40003b72949c15965054 delivery 42: success: That's not right. qmail logs something like 1+0+0 or various things. Are you using something weird as an MDA? What's your default delivery argument? You could be dropping messages on the floor. > /var/log/maillog (when using PHP function mail() points to > /var/qmail/bin/qmail-inject) > > Aug 9 10:42:54 jupiter sendmail[6217]: gethostbyaddr(209.99.238.152) > failed: 2 Nope, that's sendmail. What's sendmail doing here? You've got bigger issues to fix. I think you failed to install qmail properly. > Any help will be appreciated. And by the way, this used to work before I > touch anything... Conclusion: you "touched" something and broke the system. So what did you touch, and why haven't you changed it back to the way it was? Charles -- --- Charles Cazabon<[EMAIL PROTECTED]> GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ ---
RE: Again Local Deliveries not working - I'm LOST, really...
> If you don't put From and To headers in your message, there won't be any > From > and To headers in your message. What appears in these headers has nothing > to do > with the SMTP MAIL FROM and RCPT TO commands. Now a question... Why I usually do a telnet xxx 25 and send a mail like I did and I works? Is there any configuration? I mean I did mail to: email, rcpt to: email my whole life! I swear! Nevermind anyway. > > It's qmail-inject (which is linked to sendmail binary)I mean I deleted > > sendmail binady from the OpenBSD box and added a sendmail linking to > qmail's > > sendmail. The reason for this? It's in www.lifewithqmail.org. > > Those log entries come from sendmail, *not* from any qmail program. I > promise. I believe you. I will investigate further...
Re: Again Local Deliveries not working - I'm LOST, really...
On Thu, Aug 09, 2001 at 03:15:38PM -0230, Martin Marconcini wrote: > > > > Try talking proper SMTP instead: > > > > 220 megadeth.dnsalias.com ESMTP > > helo megadeth.dnsalias.com > > 250 megadeth.dnsalias.com > > mail from:<[EMAIL PROTECTED]> > > 250 ok > > rcpt to:<[EMAIL PROTECTED]> > > 250 ok > > data > > 354 go ahead > > Subject: Whatever > > > > Whatever > > . > > 250 ok 997364882 qp 23545 > > This way it worked... however the mail program will say > > from: > to: > Subject: whatever > And the msg body indeed has: > Whatever > IF I try mail from: martin rcpt to: martin > > It will happen the same... why it may not be working the other way? If you don't put From and To headers in your message, there won't be any From and To headers in your message. What appears in these headers has nothing to do with the SMTP MAIL FROM and RCPT TO commands. > > > /var/log/maillog (when using PHP function mail() points to > > > /var/qmail/bin/qmail-inject) > > > > > Aug 9 10:44:09 jupiter sendmail[20485]: f79Dgso06217: to=Martin > > > > See all that stuff that says "sendmail"? qmail doesn't seem to be involved > > here. > > It's qmail-inject (which is linked to sendmail binary)I mean I deleted > sendmail binady from the OpenBSD box and added a sendmail linking to qmail's > sendmail. The reason for this? It's in www.lifewithqmail.org. Those log entries come from sendmail, *not* from any qmail program. I promise. Chris
RE: Again Local Deliveries not working - I'm LOST, really...
> > Try talking proper SMTP instead: > > 220 megadeth.dnsalias.com ESMTP > helo megadeth.dnsalias.com > 250 megadeth.dnsalias.com > mail from:<[EMAIL PROTECTED]> > 250 ok > rcpt to:<[EMAIL PROTECTED]> > 250 ok > data > 354 go ahead > Subject: Whatever > > Whatever > . > 250 ok 997364882 qp 23545 This way it worked... however the mail program will say from: to: Subject: whatever And the msg body indeed has: Whatever IF I try mail from: martin rcpt to: martin It will happen the same... why it may not be working the other way? > > > /var/log/maillog (when using PHP function mail() points to > > /var/qmail/bin/qmail-inject) > > Aug 9 10:44:09 jupiter sendmail[20485]: f79Dgso06217: to=Martin > > See all that stuff that says "sendmail"? qmail doesn't seem to be involved > here. It's qmail-inject (which is linked to sendmail binary) I mean I deleted sendmail binady from the OpenBSD box and added a sendmail linking to qmail's sendmail. The reason for this? It's in www.lifewithqmail.org. Now, messages arrive, that means qmail seems to be properly configured... what could be happending? Thanks for your answer! Martin.
Re: Again Local Deliveries not working - I'm LOST, really...
On Thu, Aug 09, 2001 at 02:34:06PM -0230, Martin Marconcini wrote: > Hi list: I am experiencing the same trouble a few days ago... > My Qmail will accept inbound and deliver to Maildir but not from > LOCALHOST... > Box is openbsd 2.9. > Mails for accounts in my box arrive smooth. But if I try to send FROM > localhost to local ... will not. > > > Here is the log/long version: > > bash-2.05# telnet localhost 25 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > 220 megadeth.dnsalias.com ESMTP > helo megadeth.dnsalias.com > 250 megadeth.dnsalias.com > mail to [EMAIL PROTECTED] > 250 ok > rcpt to [EMAIL PROTECTED] > 250 ok > data > 354 go ahead > . > 250 ok 997364882 qp 23545 > Mail will never arrive... Try talking proper SMTP instead: 220 megadeth.dnsalias.com ESMTP helo megadeth.dnsalias.com 250 megadeth.dnsalias.com mail from:<[EMAIL PROTECTED]> 250 ok rcpt to:<[EMAIL PROTECTED]> 250 ok data 354 go ahead Subject: Whatever Whatever . 250 ok 997364882 qp 23545 > /var/log/maillog (when using PHP function mail() points to > /var/qmail/bin/qmail-inject) > > Aug 9 10:42:54 jupiter sendmail[6217]: gethostbyaddr(209.99.238.152) > failed: 2 > Aug 9 10:42:54 jupiter sendmail[6217]: f79Dgso06217: from=www, > size=276, class=0, nrcpts=1, > msgid=<[EMAIL PROTECTED]>, > relay=www@localhost > Aug 9 10:44:09 jupiter sendmail[20485]: f79Dgso06217: to=Martin > Marconcini <[EMAIL PROTECTED]>, ctladdr=www (67/67), > delay=00:01:15, xdelay=00:01:15, mailer=esmtp, pri=30276, > relay=megadeth.dnsalias.com. [209.99.238.152], dsn=4.0.0, stat=Deferred: > Connection timed out with megadeth.dnsalias.com. See all that stuff that says "sendmail"? qmail doesn't seem to be involved here. Chris
Again Local Deliveries not working - I'm LOST, really...
Hi list: I am experiencing the same trouble a few days ago... My Qmail will accept inbound and deliver to Maildir but not from LOCALHOST... Box is openbsd 2.9. Mails for accounts in my box arrive smooth. But if I try to send FROM localhost to local ... will not. Here is the log/long version: bash-2.05# telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 megadeth.dnsalias.com ESMTP helo megadeth.dnsalias.com 250 megadeth.dnsalias.com mail to [EMAIL PROTECTED] 250 ok rcpt to [EMAIL PROTECTED] 250 ok data 354 go ahead . 250 ok 997364882 qp 23545 Mail will never arrive... This time I will post every piece of log/control file... thanks. /var/log/qmail/current @40003b72949c101d82dc new msg 165132 @40003b72949c10372174 info msg 165132: bytes 182 from <> qp 23545 uid 2850 @40003b72949c152f64ac starting delivery 42: msg 165132 to local @megadeth.dnsalias.com @40003b72949c1538e25c status: local 1/10 remote 0/20 @40003b72949c15965054 delivery 42: success: @40003b72949c16d0c83c status: local 0/10 remote 0/20 @40003b72949c16e67704 end msg 165132 /var/log/qmail/ @40003b7292e524747754 tcpserver: ok 20928 0:209.99.238.152:25 pb1.pair.com:216.92.131.4::22410 @40003b7292e825fd51a4 tcpserver: end 20928 status 0 @40003b7292e826006e84 tcpserver: status: 0/20 @40003b7294800544a3f4 tcpserver: status: 1/20 @40003b729480058c72c4 tcpserver: pid 24758 from 127.0.0.1 @40003b72948007491acc tcpserver: ok 24758 0:127.0.0.1:25 localhost:127.0.0.1::25094 @40003b7295542e74e414 tcpserver: end 24758 status 0 @40003b7295542e8f9bec tcpserver: status: 0/20 /var/log/qmail/qmail-pop3d/current @40003b72943c007cfa24 tcpserver: status: 0/40 @40003b7295702fa1d70c tcpserver: status: 1/40 @40003b7295702fc948b4 tcpserver: pid 25741 from 192.168.0.77 @40003b7295702fd114cc tcpserver: ok 25741 0:192.168.0.1:110 :192.168.0.77::3791 @40003b72957110903624 tcpserver: end 25741 status 256 @40003b72957110934f1c tcpserver: status: 0/40 /var/log/maillog (when using PHP function mail() points to /var/qmail/bin/qmail-inject) Aug 9 10:42:54 jupiter sendmail[6217]: gethostbyaddr(209.99.238.152) failed: 2 Aug 9 10:42:54 jupiter sendmail[6217]: f79Dgso06217: from=www, size=276, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, relay=www@localhost Aug 9 10:44:09 jupiter sendmail[20485]: f79Dgso06217: to=Martin Marconcini <[EMAIL PROTECTED]>, ctladdr=www (67/67), delay=00:01:15, xdelay=00:01:15, mailer=esmtp, pri=30276, relay=megadeth.dnsalias.com. [209.99.238.152], dsn=4.0.0, stat=Deferred: Connection timed out with megadeth.dnsalias.com. Here is the key... however a ping to megadeth.dnsalias.com responds almost instantly. Also to Jupiter.marconcini.com.ar... I don't know what's causing this delay. I have reversing for 192.168.x.x. Obviously not to dnsalias.com... Here are my control files: bash-2.05# cat defaultdomain dnsalias.com bash-2.05# cat me megadeth.dnsalias.com bash-2.05# cat rcpthosts megadeth.dnsalias.com marconcini.com.ar localhost jupiter.megadeth.dnsalias.com jupiter.marconcini.com.ar (I added these two today) bash-2.05# cat defaultdelivery ./Maildir/ bash-2.05# cat locals megadeth.dnsalias.com marconcini.com.ar localhost jupiter.megadeth.dnsalias.com jupiter.marconcini.com.ar (I also added these) bash-2.05# cat plusdomain dnsalias.com bash-2.05# ./qmailctl stat /service/qmail-send: up (pid 31163) 24915 seconds /service/qmail-send/log: up (pid 27572) 15 seconds /service/qmail-smtpd: up (pid 27476) 24915 seconds /service/qmail-smtpd/log: up (pid 9291) 15 seconds /service/qmail-pop3d: up (pid 18246) 24915 seconds /service/qmail-pop3d/log: up (pid 1581) 14 seconds messages in queue: 0 messages in queue but not yet preprocessed: 0 Well I guess that's all. One more thing. If you send a message to [EMAIL PROTECTED] it will arrive perfectly. But the problem is from localhost. (I added localhost to rcpthosts and locals, and it worked for a few days/hours?). Any ideas? Any other log I am missing? Mails are LOST forever... I don't know where they go. Any help will be appreciated. And by the way, this used to work before I touch anything... Regards, Martin Marconcini www.marconcini.com.ar "Life must be lived looking forward and can be understood only looking backward." Soren Kierkegaard